π¦
Projet FastMCP
No description available
0 installs
Trust: 30 β Low
Devtools
Ask AI about Projet FastMCP
Powered by Claude Β· Grounded in docs
I know everything about Projet FastMCP. Ask me about installation, configuration, usage, or troubleshooting.
0/500
Loading tools...
Reviews
Documentation
FastMCP DevContainer β MyDevAssistant
A simple FastMCP server that exposes developer tools (math, file access, and note creation) to AI models via the Model Context Protocol (MCP).
Prerequisites
- Python 3.12+
- uv (fast Python package manager)
Or, to use the devcontainer (no local setup needed):
Option 1 β Dev Container (recommended)
- Open the project folder in VS Code.
- When prompted, click Reopen in Container (or run the command Dev Containers: Reopen in Container from the Command Palette).
- VS Code will build the container and run the setup script automatically. When the terminal shows
FastMCP installed successfully!, you're ready.
Option 2 β Local setup
# 1. Create and activate a virtual environment
python -m venv .venv
source .venv/bin/activate # Linux / macOS
# .venv\Scripts\activate # Windows (PowerShell)
# 2. Install dependencies
pip install uv
uv pip install fastmcp ruff black
Running the server
fastmcp run src/server.py
Or directly with Python:
python src/server.py
The server communicates over stdio by default, which is how MCP clients (e.g. Claude Desktop) connect to it.
Connecting to Claude Desktop
Add the following to your Claude Desktop MCP config (usually claude_desktop_config.json):
{
"mcpServers": {
"MyDevAssistant": {
"command": "python",
"args": [
"<absolute-path-to>/src/server.py"
]
}
}
}
Replace <absolute-path-to> with the full path to this project folder.
Available tools
| Tool | Description |
|---|---|
add(a, b) | Add two numbers |
multiply(a, b) | Multiply two numbers |
list_files() | List all files in the workspace |
read_file(filename) | Read the contents of a workspace file |
create_note(title, content) | Create a markdown note in example_notes/ |
Project structure
fastmcp-devcontainer/
βββ .devcontainer/
β βββ devcontainer.json # Dev container configuration
β βββ postCreateCommand.sh # Container setup script
βββ example_notes/ # Notes created by the create_note tool
βββ src/
β βββ server.py # FastMCP server and tool definitions
βββ README.md
