GitHubスター
1
ユーザー評価
未評価
お気に入り
0
閲覧数
87
フォーク
1
イシュー
0
GitHub Code Explorer using Model Context Protocol
This project demonstrates how to implement the Model Context Protocol (MCP) to create a GitHub code search tool that could be used by AI assistants.
What is Model Context Protocol?
Model Context Protocol is a standardized way for AI models to interact with external tools and services. It defines:
- How functions are described to AI models
- How AI models decide which functions to call
- How parameters are structured and validated
- How results are returned in a consistent format
Features
- Search for code across GitHub repositories
- View file contents from repositories
- Search for GitHub repositories
- Function discovery endpoint
- AI assistant simulation interface
Installation
- Clone this repository
- Install dependencies:
npm install - Optional: Set up a GitHub API token as the environment variable
GH_TOKENfor higher rate limits
Usage
Start the server:
npm startor for development with auto-reload:
npm run devOpen your browser and navigate to http://localhost:3000
Click "Load Available Functions" to see the API capabilities
Type a query in the input box and press Enter to simulate an AI conversation
API Endpoints
GET /api/mcp/functions- List all available functionsPOST /api/mcp- Call a function with parameters
Implementation Details
The application consists of:
- A Node.js/Express backend that wraps the GitHub API
- A browser client that simulates an AI assistant using the API
- MCP-compatible function definitions with JSON Schema
90
フォロワー
92
リポジトリ
7
Gist
0
貢献数
Ever been told to RTFM only to find there is no FM to R? MCP-RTFM helps you CREATE the F*ing Manual that people keep telling everyone to read! Transform your non-existent or unreadable docs into an intelligent, searchable knowledge base that actually answers those 'basic questions' before they're asked.