π¦
Fastmcp Playground
No description available
0 installs
Trust: 30 β Low
Devtools
Ask AI about Fastmcp Playground
Powered by Claude Β· Grounded in docs
I know everything about Fastmcp Playground. Ask me about installation, configuration, usage, or troubleshooting.
0/500
Loading tools...
Reviews
Documentation
fastmcp-playground
This repository is a learning and practice playground for building a Model Context Protocol (MCP) server using fastMCP.
The project follows a step-by-step learning plan (Phases 0 and 1) to understand MCP concepts, set up tooling, and build a minimal but functional MCP server.
Goals
- Understand what MCP is (clients, servers, transports, tools, resources, prompts, notifications).
- Learn how an IDE/assistant discovers and interacts with MCP server tools.
- Set up a clean project environment with
uv, Python 3.12, and dependencies. - Build and test a minimal MCP server with example tools (
ping,whoami,time_now,health_check). - Configure environment variables, logging, and testing.
- Connect to an MCP-compatible client and demo the server.
Checklist
Phase 0 β Orientation
- Understand MCP basics (client, server, transports, tools, resources, prompts, notifications).
- Write 1-page summary in
docs/overview.md. - Create repo
fastmcp-playgroundand commitREADME.md.
Phase 1 β Beginner fastMCP with uv & environment
-
Install & Pin Tooling
- Install Python 3.12
- Install
uvand confirm version - Document versions in
docs/tooling.md
-
Project Init (uv)
- Run
uv init - Add dependencies (
fastmcp,pydantic-settings,httpx,ruff,pytest) - Lock dependencies (
uv lock) - Commit
pyproject.tomlanduv.lock
- Run
-
Environment & Secrets
- Create
.env.example - Add
.envlocally (ignored in git) - Document env handling in
docs/env.md
- Create
-
Hello Server (fastMCP minimal)
- Create minimal server with
ping()andwhoami()tools - Provide start script
- Verify server starts on stdio
- Create minimal server with
-
Add a Pure Function Tool
- Implement
time_now(tz)with validation - Ensure error handling works
- Implement
-
Logging & Health
- Add structured logging
- Add
health_check()tool - Save log sample in
docs/logs.txt
-
Basic Tests & Lint
- Configure
ruffandpytest - Write unit tests
- Add
make testoruv run -m pytest
- Configure
-
Client Demo
- Connect to MCP client (IDE/assistant)
- Call all tools and capture screenshots
- Write demo notes in
docs/demo.md
