test-dh-mcp
0
The test-dh-mcp project demonstrates the setup and execution of an MCP server using the FastMCP implementation. It includes comprehensive instructions for server setup, tool registration, dependency management, and integration with Claude Desktop, focusing on versatility and modern development workflows.
test-dh-mcp
This project demonstrates how to define and run an MCP (Multi-Channel Protocol) server using the FastMCP implementation. It includes examples for tool registration, server/client usage, and integration with Claude Desktop and MCP Inspector.
Project Structure
- Includes a Python MCP server and client for testing tools.
Using uv
for Dependency Management
- Uses
uv
, a modern Python package manager, for dependency management. - Recommends using
pyproject.toml
anduv.lock
for managing dependencies.
Quick Start: Server
- Install dependencies: Use
venv
oruv
for installing Python dependencies. - Run the MCP Server: Can be run with SSE transport or stdio transport based on your use case.
Quick Start: Client
- Requires the MCP server to be running in SSE mode.
- Log output indicates available tools.
Claude Desktop
- Integration with Claude Desktop for using custom tools.
Deephaven Worker Configuration
- Presents configuration for Deephaven workers via JSON file.
Tool Usage
- Includes tools for echoing messages, counting gnomes in Colorado, and handling Deephaven workers and tables.
Registering Tools
- Instructions for defining new tools with the
@mcp_server.tool()
decorator.
Troubleshooting
- Tips for connecting to the server and verifying tool availability.
Is the server running?
- Command examples for checking server status.