MCP Test Project
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 Test Projectadd 2 and 3"
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 Test Project
A simple Model Context Protocol (MCP) server/client implementation for testing Hermes Agent with GitHub MCP.
Overview
This project demonstrates a basic MCP (Model Context Protocol) implementation with:
MCP Server (
src/mcp_test/server.py) - Exposes tools via stdio transportMCP Client (
src/mcp_test/client.py) - Connects to and tests MCP serversData Models (
src/mcp_test/models.py) - Pydantic models for tool calls and resultsTests (
tests/) - Unit tests for models and server functionality
Related MCP server: MCP Demo
Project Structure
mcp/
├── pyproject.toml # Project configuration (dependencies, build, tools)
├── Makefile # Development commands
├── .gitignore # Git ignore rules
├── README.md # This file
├── src/
│ └── mcp_test/
│ ├── __init__.py # Package exports
│ ├── models.py # Pydantic data models
│ ├── server.py # MCP server implementation
│ └── client.py # MCP client implementation
└── tests/
├── __init__.py # Test package
├── test_models.py # Tests for data models
└── test_server.py # Tests for server functionalityRequirements
Python 3.10+
Dependencies listed in
pyproject.toml
Installation
# Install in development mode with dev dependencies
make install
# Or manually:
pip install -e ".[dev]"Running the Server
# Using make
make run-server
# Or directly
python -m mcp_test.serverThe server runs over stdio and exposes these tools:
echo- Echo back a messageadd- Add two numbersget_server_info- Get server metadata
Running the Client
# Using make
make run-client
# Or directly
python -m mcp_test.clientThe client will connect to the server (started as a subprocess) and run test calls.
Running Tests
# Run all tests with coverage
make test
# Or directly
pytest -vCode Quality
# Run linting
make lint
# Format code
make format
# Type checking
make typecheck
# All checks
make checkDevelopment
Adding a New Tool
Add the tool definition in
server.pyin thelist_tools()handlerAdd the implementation method (e.g.,
_tool_your_tool)Add the tool call handler in
call_tool()Add a convenience method in
client.pyif neededWrite tests in
tests/test_server.py
Running a Single Test
pytest tests/test_models.py::test_tool_call_creation -vLicense
MIT License - see LICENSE file for details.
Related
This server cannot be deployed
Maintenance
Related MCP Connectors
Nifty's MCP server — exposes tasks, projects, messages, and files as tools for AI agents.
A simple MCP server built with FastMCP and python
Related MCP Servers
- FlicenseNot gradedqualityDmaintenanceA basic MCP server implementation for testing purposes. Communicates via stdio and is designed to work with MCP-compliant clients.-
- FlicenseNot gradedqualityCmaintenanceA model-agnostic MCP server exposing example tools (add1, multiply2, greet) for learning purposes, working with any LLM through stdio transport.-
- FlicenseNot gradedqualityBmaintenanceA minimal MCP server with hello and echo tools.-
- FlicenseAqualityCmaintenanceA learning-oriented MCP server that exposes basic tools (echo, add, reverse) over stdio transport to validate MCP handshake and tool calls.3-