MCP Server Create

Scaffold and verify a portable FastMCP 3 server project with declarative configuration, library-first logic, tests, and safe transport defaults.

batteryshark 3c89962 5 files · 5.8 KB Updated

File contents

Create a FastMCP Server

  1. Clarify the server boundary, consumers, transport, authentication owner, side effects, and whether the core logic must also serve a CLI or library.
  2. Read references/current-fastmcp.md and pin a tested FastMCP 3 minor range; do not silently copy version-sensitive APIs from memory.
  3. Run bin/mcp-server-create NAME --target-dir PATH to generate a library-first project with fastmcp.json, tests, and explicit stdio defaults.
  4. Replace the example operation with typed core functions. Keep FastMCP decorators, context, auth, and transport concerns in the thin server envelope.
  5. Add only the interaction layer the product needs: protocol elicitation for client-mediated input, Apps for embedded UI, or ordinary tool arguments for model-supplied data.
  6. Run the generated unit and in-memory protocol tests, inspect the component catalog, and exercise the real deployment transport only after local behavior is correct.

Use agents/server-reviewer.md for an independent boundary and safety review.

batteryshark/skill-tap/tree/main/skills/development/mcp/mcp-server-create commit 3c89962758

Frequently asked questions

npx skillmds@latest add batteryshark/mcp-server-create