A minimal Model Context Protocol (MCP) server for testing submodule integration with robotmcp_server.
- Simple Tools:
pingandgreetfor testing MCP connectivity - Integration Ready: Compatible with robotmcp_server's submodule auto-discovery
- Minimal Dependencies: Only requires
fastmcp>=2.11.3
test-mcp-server/
├── pyproject.toml # Package metadata
├── README.md # This file
├── .gitignore # Git ignore patterns
└── test_mcp/
├── __init__.py # Package init
├── integration.py # Entry point for robotmcp_server
├── tools/
│ ├── __init__.py # Tool registration hub
│ └── tools.py # Tool implementations
├── resources/
│ └── __init__.py # Resource registration
└── prompts/
└── __init__.py # Prompt registration
| Tool | Parameters | Description |
|---|---|---|
ping |
None | Returns {"message": "pong"} - tests connectivity |
greet |
name: str |
Returns {"message": "Hello, {name}!"} |
robotmcp-server add https://github.com/robotmcp/test-mcp-server.gitThis automatically:
- Clones the repository as a git submodule
- Installs dependencies from
pyproject.toml - Registers tools via
test_mcp/integration.py
To verify installation:
robotmcp-server list # Show installed modules
robotmcp-server list-tools # Show available toolsTo remove:
robotmcp-server remove test-mcp-servergit clone https://github.com/robotmcp/test-mcp-server.git
cd test-mcp-server
pip install -e .Once installed, tools are automatically registered. Verify with:
robotmcp-server list-toolsExpected output:
test_mcp:
- ping: Simple ping tool to test connectivity.
- greet: Greet a person by name.
from fastmcp import FastMCP
from test_mcp.integration import register
mcp = FastMCP("test-server")
register(mcp)The integration.py module provides the register(mcp, **kwargs) function called by robotmcp_server's submodule auto-discovery:
# test_mcp/integration.py
def register(mcp: FastMCP, **kwargs) -> None:
"""Register all test MCP tools, resources, and prompts."""
register_all_tools(mcp)
register_all_resources(mcp)
register_all_prompts(mcp)This pattern allows robotmcp_server to dynamically load and register components from submodules.
- Python >= 3.10
- fastmcp >= 2.11.3
# Clone the repository
git clone https://github.com/robotmcp/test-mcp-server.git
cd test-mcp-server
# Install in development mode
pip install -e .- Add tool functions to
test_mcp/tools/tools.py - Use the
@mcp.tool()decorator to register them - Test with
robotmcp-server list-tools
For local development, you can add directly from a local path:
# From the robotmcp_server directory
git submodule add ../path/to/test-mcp-server
robotmcp-server list-toolsCopyright (c) 2025 Contoro. All rights reserved.