agentleFS
metaspartanmetaspartan/cybara/skills/fastmcp/SKILL.md

fastmcp

Skill38 starsChanged 5 months agoMITView on GitHub

Build, test, inspect, and deploy Python MCP servers with FastMCP.

2 other projects use a version of this.

Adopted by

Most recently taken up by

The file

We split this skill into the rules it gives an agent

7 rules. About 0 are common, 3 are distinctive, and 4 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.

  • 4

    Very specific

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

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

    Use this when the user wants to create or test a Python MCP server, wrap an API/database/CLI as MCP tools, expose resources/prompts, or …

    line 9
  2. Very specific:

    If uv is unavailable, use a project virtualenv and install fastmcp there.

    line 48
  3. Very specific:

    Add it through Cybara MCP configuration or the MCP UI.

    line 62
  4. Very specific:

    Call at least one real tool through Cybara before declaring integration complete.

    line 64
  5. Distinctive:

    Keep database examples read-only until explicitly approved.

    line 69
  6. Distinctive:

    Never expose raw shell execution as a general MCP tool.

    line 70
  7. Distinctive:

    Do not pass secrets as plain parameters unless the MCP client/server contract requires it.

    line 71

≈ “Common” is an estimate: at least 1 in 5 of the 350,495 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

FastMCP

Use this when the user wants to create or test a Python MCP server, wrap an API/database/CLI as MCP tools, expose resources/prompts, or prepare an HTTP MCP endpoint.

Server Shape

Start narrow:

  • 1-3 concrete tools first.
  • Read-only by default.
  • Explicit typed parameters.
  • JSON-safe return values.
  • Clear docstrings; the docstring is the user-facing tool description.

Good tool names: get_customer, search_tickets, describe_table, summarize_file. Weak names: run, process, do_thing.

Minimal Template

from fastmcp import FastMCP

mcp = FastMCP("Example")

@mcp.tool
def echo(text: str) -> dict:
    """Echo text back for smoke testing."""
    return {"text": text}

Local Validation

Prefer isolated runs:

uvx fastmcp version
uvx fastmcp inspect server.py:mcp
uvx fastmcp list server.py --json
uvx fastmcp call server.py echo text=hello --json

If uv is unavailable, use a project virtualenv and install fastmcp there. Do not install global Python packages unless the user asks.

HTTP Transport Smoke

uvx fastmcp run server.py:mcp --transport http --host 127.0.0.1 --port 8000
uvx fastmcp list http://127.0.0.1:8000/mcp --json
uvx fastmcp call http://127.0.0.1:8000/mcp echo text=hello --json

Cybara Integration

Once the server contract is stable:

  1. Add it through Cybara MCP configuration or the MCP UI.
  2. Confirm tools/list returns the expected tool names.
  3. Call at least one real tool through Cybara before declaring integration complete.

Safety

  • Validate paths and URLs before using them.
  • Keep database examples read-only until explicitly approved.
  • Never expose raw shell execution as a general MCP tool.
  • Do not pass secrets as plain parameters unless the MCP client/server contract requires it; prefer env/config.

Download now (ZIP)

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.