agentleFS
jlowinjlowin/fastmcp/skills/fastmcp-server/SKILL.md

fastmcp-server

Skill28k starsChanged 8 days agoApache-2.0View on GitHub

Build, extend, or review MCP servers with Python FastMCP, using documentation matched to the project's version.

We split this skill into the rules it gives an agent

8 rules. About 0 are common, 3 are distinctive, and 5 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈3

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 5

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Check the project's installed FastMCP version and dependency constraints.

    line 10
  2. Very specific:

    Use the standalone fastmcp package.

    line 20
  3. Very specific:

    When using tool search or code mode, make exact named operations discoverable and explain the execution contract: what persists between …

    line 47
  4. Very specific:

    Look up FastMCP's relevant facilities as needed: context and dependencies, lifespan, authentication, composition, and transports.

    line 52
  5. Distinctive:

    When clients need a repeatable workflow across the server's capabilities, consider shipping a skill alongside those capabilities.

    line 56
  6. Very specific:

    Verify the server through FastMCP's Client, which can connect directly to a server instance for in-process testing.

    line 68
  7. Distinctive:

    When the task includes evaluating how agents use the server, test a representative workflow using the project's existing evaluation harness …

    line 81
  8. Distinctive:

    Use the target client's actual capabilities.

    line 89

≈ “Common” is an estimate: at least 1 in 5 of the 308,232 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Authoring MCP servers with FastMCP

Find the current API

Check the project's installed FastMCP version and dependency constraints. Fetch the documentation index and read the relevant pages for that version. The index includes versioned documentation; select /v3/ pages for FastMCP 3 and unversioned pages for FastMCP 4. Read individual pages through their .md URLs instead of loading llms-full.txt. For APIs newer than the installed release, check that release's source or signatures. Preserve the project's dependency constraints unless an upgrade is part of the request. For a new project, check the current stable release before choosing a dependency.

Use the standalone fastmcp package. Its API differs from mcp.server.fastmcp in the Python MCP SDK.

Author the server

Choose the MCP interface to suit what the server exposes: tools for callable operations, resources for addressable content, and prompts for reusable message templates. FastMCP derives tool schemas from Python annotations and descriptions; use Literal or enums for finite choices and Field descriptions for parameter semantics. SDK wrappers need to preserve signatures and docstrings, for example with functools.wraps, or discovery loses that information. Inspect the schema the client receives, especially after transforms or custom discovery rendering: requiredness, enum values, and nested fields can disappear from a summary.

Let the intended client tasks guide tool boundaries, descriptions, and result shape. Give clients enough context to use results and recover from errors. The right granularity depends on the service; generated API tools, custom tools, and compositions can all be appropriate.

For paginated or bounded results, expose whether the answer is complete and how to continue. An upstream failure is not an empty result. Return useful recovery information through tool errors rather than a successful-looking payload. Use ToolError, ResourceError, or PromptError from fastmcp.exceptions for intentional client-facing messages. With mask_error_details=True, ordinary exceptions such as ValueError lose their messages; do not put sensitive backend details in the explicit error types, whose messages remain visible.

When using tool search or code mode, make exact named operations discoverable and explain the execution contract: what persists between calls and what becomes the result. A short fetch/filter/return example can prevent repeated empty outputs. Check the installed implementation before describing that behavior.

Look up FastMCP's relevant facilities as needed: context and dependencies, lifespan, authentication, composition, and transports. Use the project's runtime and hosting choices to determine configuration.

When clients need a repeatable workflow across the server's capabilities, consider shipping a skill alongside those capabilities. Put task selection, operation sequencing, and recovery guidance in the skill; keep tool descriptions focused on their individual contracts. Read the version-matched Skills Provider and Experimental Skills Extension docs from the index before implementing it. SkillsDirectoryProvider exposes skill files as resources; the experimental extension adds skills/list and skills/get discovery. Check the installed release and target host's support before selecting either interface. Discovery does not activate a skill: verify that the host reads and uses it in the intended workflow. The experimental extension currently requires directly registered providers and does not support mounted or transformed skill sources.

Verify the server through FastMCP's Client, which can connect directly to a server instance for in-process testing. Check a representative operation, its client-visible schema and result, and a meaningful failure. For composed or transformed servers, verify the public names and URIs through the outer server, including resource references returned by prompts. Namespace transforms change component names and resource URIs, but do not rewrite URI text inside prompt messages. When a prompt must work both standalone and mounted, direct the client to discover the resource template instead of hardcoding the child's URI. Exercise the chosen transport when connection or deployment behavior is part of the change.

Evaluate agent workflows

When the task includes evaluating how agents use the server, test a representative workflow using the project's existing evaluation harness when available. Protocol tests show that a tool works; an agent task shows whether the interface is usable. Start from a known condition, give an agent a user-level request, and check the outcome against independent API or database evidence. For writes, check both the intended change and what should remain unchanged. A normal agent exit or a plausible final answer is not proof of success.

Use the target client's actual capabilities; exposing resources, sampling, or elicitation does not mean that client uses them. To measure the server alone, give the agent only that server's capabilities supported by the client. To measure the user's workflow, include the other capabilities the client really has. Inspect traces for discovery misses, invalid arguments, partial-data assumptions, and repeated recovery attempts before changing tool descriptions or structure. Compare task success alongside calls, latency, and context size; fewer tools or tokens alone is not the objective.

Download now (ZIP)

Trending

Less talk lately.about the whole repository

Dec 2025: 3 mentionsJan 2026: 8 mentionsFeb 2026: 2 mentionsMar 2026: 1 mentionApr 2026: 1 mentionMay 2026: 0 mentionsJun 2026: 2 mentionsJul 2026: 1 mentionAug 2026: 1 mentionSep 2026: 0 mentionsOct 2026: 1 mentionNov 2026: 0 mentions
Dec 2025Jun 2026Nov 2026
Mentions a month of the jlowin/fastmcp repository that our weekly crawl found. There is no adoption data for this file yet.

Who's talking about jlowin/fastmcp

The biggest 5 of 67 mentions linking to the repository that our crawl found. Each line is their own headline.

See all 67

Talked about on GitHub, YouTube, Bluesky, Hacker News and the web (67 times).

On GitHub · 28

23 more on GitHub

On YouTube · 20

15 more on YouTube

On Bluesky · 15

10 more on Bluesky

On the web · 1

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.