MCP Server
Provides tools for cloning and analyzing GitHub repositories.
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@MCP Serveranalyze GitHub repo https://github.com/example/project"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
MCP Server
A modular Model Control Protocol (MCP) server that provides tools for interacting with GitHub repositories.
Features
Modular design with extensible tool handlers
Support for both HTTP and stdio transport
GitHub repository analysis tools
Command execution capability
CORS support for cross-origin requests
Related MCP server: MCP Tools
Installation
Install the required dependencies:
pip install -r requirements.txt
Usage
HTTP Mode
Start the server in HTTP mode with optional host and port:
python server.py --http --host 0.0.0.0 --port 8000This will start the server and make it accessible at http://localhost:8000 (or the specified host/port).
Stdio Mode
Start the server in stdio mode for direct pipe-based communication:
python server.pyThis mode is used when the MCP server is called directly by a client through stdin/stdout.
Available Tools
The server provides the following tools:
get_time: Get the current time
calculate: Perform simple calculations
get_weather: Get mock weather data for a location
github_repo: Clone and analyze GitHub repositories
execute_command: Execute commands in the system shell
API Endpoints
When running in HTTP mode, the server provides the following endpoints:
GET /initialize: Initialize the connection and get available tools
GET /list_tools: List all available tools
POST /execute_tool: Execute a specific tool with arguments
Example API Usage
Execute a Tool
POST /execute_tool
Content-Type: application/json
{
"name": "github_repo",
"arguments": {
"action": "clone",
"repo_url": "https://github.com/example/repo.git"
}
}Extending the Server
To add a new tool:
Create a new handler class in the
handlersdirectory that extendsBaseHandlerImplement the
executemethod in your handlerRegister your handler in the
_setup_handlersmethod inserver.pyCreate a corresponding tool definition in the
_setup_toolsmethod
Testing
The server includes a comprehensive set of unit tests using pytest and pytest-asyncio.
Running Tests
To run the tests:
pytestFor more verbose output:
pytest -vTo run tests with code coverage:
pytest --cov=handlers --cov=utilsAdding New Tests
When adding new handlers, create corresponding test files in the tests directory:
Create a test file named
test_yourhandler.pyUse pytest fixtures from
conftest.pywhere appropriateWrite tests for all public methods in your handler
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Latest Blog Posts
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/deploypilotorg/mcp-server'
If you have feedback or need assistance with the MCP directory API, please join our Discord server