MCP Server
Provides tools for cloning and analyzing GitHub repositories.
Click on "Deploy 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 deployed
Maintenance
Related MCP Connectors
A comprehensive Model Context Protocol (MCP) server that enables AI assistants to interact with yo…
Nifty's MCP server — exposes tasks, projects, messages, and files as tools for AI agents.
MCP server for progressive tool usage at any scale (see https://klavis.ai)
Personal assistant MCP server with search, execute, packages, jobs, secrets, and integrations.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceA modular server that implements the Model Context Protocol standard, providing tools for interacting with GitHub, GitLab, Google Maps, Memory storage, and web automation through a unified gateway.261 npm3Apache 2.0
- FlicenseNot gradedqualityCmaintenanceAn MCP (Model Context Protocol) server implementation using HTTP SSE (Server-Sent Events) connections with built-in utility tools including echo, time, calculator, and weather query functionality.2-
- FlicenseNot gradedqualityDmaintenanceA modular server based on Model Context Protocol (MCP) that provides weather queries, mathematical calculations, and search functionalities.-
- FlicenseNot gradedqualityDmaintenanceA Model Context Protocol server built with FastMCP that features dynamic tool loading and modular management via a dedicated tool directory. It supports both stdio and HTTP transport modes, enabling efficient development and deployment of custom MCP tools.-