A minimal hello-world MCP server for MCPLambda integration testing.
This repository contains a simple MCP (Model Context Protocol) server built with FastMCP, designed as a test fixture for MCPLambda. It demonstrates the basic structure of an MCP server with tools, resources, and prompts.
| File | Purpose |
|---|---|
server.py |
FastMCP server with echo_tool tool, static/dynamic resources, and prompts |
mcplambda.yaml |
MCPLambda deployment config — run: "python server.py" |
requirements.txt |
Python dependencies (fastmcp>=2.0.0) |
echo_tool(text: str)— Echoes the input text back
echo://static— Static resource returning "Echo!"echo://{text}— Template resource that echoes dynamic text
echo— Simple prompt that echoes text
MCPLambda auto-detects the build strategy:
- No
Dockerfile→ skip - No
uv.lock/poetry.lock→ skip requirements.txtfound → strategy:pip
The server runs on port 8080 (configurable via PORT env var).
To test other build strategies, create variants:
- uv: Add
uv.lock+pyproject.tomlwith[tool.uv] - poetry: Add
poetry.lock+pyproject.tomlwith[tool.poetry] - npm: Replace
requirements.txtwithpackage.json+index.js - go: Replace with
go.mod+main.go