{"id":30357606,"url":"https://github.com/mustafaalkan64/githubmcpdemo","last_synced_at":"2025-08-19T08:17:18.150Z","repository":{"id":309268677,"uuid":"1035636438","full_name":"mustafaalkan64/GithubMCPDemo","owner":"mustafaalkan64","description":null,"archived":false,"fork":false,"pushed_at":"2025-08-10T21:52:10.000Z","size":23,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-08-10T23:36:41.286Z","etag":null,"topics":["github-mcp-server","mcp-server","open-ai"],"latest_commit_sha":null,"homepage":"","language":"C#","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mustafaalkan64.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2025-08-10T20:20:04.000Z","updated_at":"2025-08-10T21:53:13.000Z","dependencies_parsed_at":"2025-08-10T23:36:45.675Z","dependency_job_id":"44e52718-3519-4b67-a6bd-39516afdda5a","html_url":"https://github.com/mustafaalkan64/GithubMCPDemo","commit_stats":null,"previous_names":["mustafaalkan64/githubmcpdemo"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/mustafaalkan64/GithubMCPDemo","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mustafaalkan64%2FGithubMCPDemo","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mustafaalkan64%2FGithubMCPDemo/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mustafaalkan64%2FGithubMCPDemo/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mustafaalkan64%2FGithubMCPDemo/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mustafaalkan64","download_url":"https://codeload.github.com/mustafaalkan64/GithubMCPDemo/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mustafaalkan64%2FGithubMCPDemo/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":271121194,"owners_count":24702731,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-08-19T02:00:09.176Z","response_time":63,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["github-mcp-server","mcp-server","open-ai"],"created_at":"2025-08-19T08:17:11.979Z","updated_at":"2025-08-19T08:17:18.140Z","avatar_url":"https://github.com/mustafaalkan64.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Github MCP AI Integration and AI Agent\n\n**Github MCP Demo** is a sample implementation of a **Model Context Protocol (MCP) server** for GitHub that integrates with **OpenAI** to enable natural-language interactions with GitHub repositories.  \nIt demonstrates how to use MCP to bridge **GitHub data** (commits, pull requests, issues, repository content) with **chat-based AI completion**.\n\n---\n\n## 🚀 Features\n- **MCP Server for GitHub** — fetch repository data via MCP requests.\n- **Chat Completion with OpenAI** — query and interact with GitHub data conversationally.\n- **Example Tools** — list repositories, retrieve commits, read file contents, etc.\n- **Configurable** — easily point the MCP server to different GitHub repos and models.\n- **Docker Support** — run locally or in a container.\n\n---\n\n## 📂 Project Structure\nGithubMCPDemo/\n\n├── GithubMCPDemo.csproj # Project file\n\n├── Program.cs # Entry point\n\n├── Services/ # MCP server logic\n\n├── Models/ # Data models for GitHub responses\n\n├── Dockerfile # Docker build instructions\n\n├── README.md # This file\n\n---\n\n## 🛠️ Requirements\n- [.NET 9 SDK](https://dotnet.microsoft.com/en-us/download)\n- GitHub **Personal Access Token**\n- OpenAI API key\n\n---\n\n## Demo\n\n![Demo](https://github.com/mustafaalkan64/GithubMCPDemo/blob/master/DotnetCoreMCPDemo/SS/8.png)\n![Demo](https://github.com/mustafaalkan64/GithubMCPDemo/blob/master/DotnetCoreMCPDemo/SS/1.png)\n![Demo](https://github.com/mustafaalkan64/GithubMCPDemo/blob/master/DotnetCoreMCPDemo/SS/3.png)\n![Demo](https://github.com/mustafaalkan64/GithubMCPDemo/blob/master/DotnetCoreMCPDemo/SS/5.png)\n![Demo](https://github.com/mustafaalkan64/GithubMCPDemo/blob/master/DotnetCoreMCPDemo/SS/6.png)\n![Demo](https://github.com/mustafaalkan64/GithubMCPDemo/blob/master/DotnetCoreMCPDemo/SS/7.png)\n\n## ⚙️ Setup\n\n1️⃣ Clone the Repository\ngit clone https://github.com/mustafaalkan64/GithubMCPDemo.git\ncd GithubMCPDemo\n\n2️⃣ Configure Environment Variables\nCreate a .env file or export these variables:\nGITHUB_TOKEN=your_github_token\nOPENAI_API_KEY=your_openai_api_key\n\n3️⃣ Run Locally\ndotnet restore\ndotnet run\n\n4️⃣ Run with Docker\ndocker build -t github-mcp-demo .\ndocker run -e GITHUB_TOKEN=your_github_token \\\n           -e OPENAI_API_KEY=your_openai_api_key \\\n           -p 5000:5000 github-mcp-demo\n💬 Example Chat Queries\nOnce running, you can interact with the MCP server through your OpenAI client:\n\n🧩 How It Works\nMCP Server handles requests to GitHub’s REST API.\n\nOpenAI processes natural language queries and translates them into MCP commands.\n\nResponses are fed back to the user with context-aware explanations or summaries.\n\n📜 License\nThis project is licensed under the MIT License.\n\n🤝 Contributing\nContributions, issues, and feature requests are welcome!\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmustafaalkan64%2Fgithubmcpdemo","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmustafaalkan64%2Fgithubmcpdemo","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmustafaalkan64%2Fgithubmcpdemo/lists"}