본문으로 건너뛰기
cccskills
무료GitHub에 공개

fastmcp-server

Build, extend, or review Python FastMCP servers using documentation for the installed version. Design operations that agents can discover and use, then check input definitions, results, error handling, and representative agent workflows.

한국어 요약은 준비 중입니다. 영어 요약을 표시하고 있습니다.

원문원문 설명 보기

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

설치 방법 보기

이럴 때 유용합니다

  • Building an MCP server with Python FastMCP
  • Adding tools, resources, or reusable prompts
  • Reviewing input definitions and error handling
  • Evaluating whether agents complete tasks through the server

포함된 파일(1)

  • SKILL.md5.5 KB

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.

리뷰

아직 리뷰가 없습니다. 사용해 본 소감을 남겨 주세요.

댓글

로그인 없이 쓸 수 있습니다. 사용 후기, 질문, 작동하지 않은 환경 등을 편하게 남겨 주세요.

아직 댓글이 없습니다. 첫 댓글을 남겨 보세요.

보내면 바로 공개됩니다. 이메일 주소나 전화번호 같은 개인 정보는 쓰지 마세요. URL은 2개까지입니다.

0 / 1,000자

이 양식은 reCAPTCHA로 보호되며 Google 개인정보처리방침 및 서비스 약관이 적용됩니다.

같은 저장소의 스킬

docs

무료

Write and revise FastMCP documentation pages with consistent structure, clear explanations, and runnable code examples. Covers accessibility, link and Python checks, and the publishing steps needed to confirm changes reach the live site.

한국어 요약은 준비 중입니다. 영어 요약을 표시하고 있습니다.

  • Documenting a new FastMCP feature
  • Reworking an existing documentation page
  • Reviewing accessibility and page consistency
PrefectHQ/fastmcp2.8만2026년 10월 21일 업데이트

Discover MCP servers and inspect their available tools from the command line, then invoke operations with typed arguments or JSON. Use local files, remote endpoints, or configured server names, and return structured output for scripts.

한국어 요약은 준비 중입니다. 영어 요약을 표시하고 있습니다.

  • Finding MCP servers configured in editors or a project
  • Inspecting available tools and input definitions
  • Calling tools on local or remote MCP servers
PrefectHQ/fastmcp2.8만2026년 10월 21일 업데이트

fix-issue

무료

Take a selected FastMCP bug from a reproducible failure to a focused fix. Check compatibility, run required validation, prepare a pull request, and follow automated checks and review feedback after publication.

한국어 요약은 준비 중입니다. 영어 요약을 표시하고 있습니다.

  • Fixing a reproducible FastMCP bug
  • Checking compatibility before publishing a fix
  • Following checks and feedback after opening a pull request
PrefectHQ/fastmcp2.8만2026년 10월 21일 업데이트

Write regression tests that catch recurring bugs in FastMCP changes using pytest. Covers reproducing failures before a fix, testing requests without a network server, and checking outgoing requests while replacing external services with test substitutes.

한국어 요약은 준비 중입니다. 영어 요약을 표시하고 있습니다.

  • Reproducing a bug before testing its fix
  • Testing MCP behavior without a network server
  • Checking requests sent to external services
PrefectHQ/fastmcp2.8만2026년 10월 21일 업데이트

release

무료

Prepare and publish FastMCP releases, from reviewing changes and crediting contributors to updating changelogs, creating release tags, checking Python package publication on PyPI, and confirming that the documentation site reflects the release.

한국어 요약은 준비 중입니다. 영어 요약을 표시하고 있습니다.

  • Previewing changes for the next FastMCP release
  • Preparing release notes and contributor credits
  • Publishing a patch or maintenance release
PrefectHQ/fastmcp2.8만2026년 10월 21일 업데이트

Evaluate an incoming FastMCP issue and its linked pull requests. Check whether the reported behavior is a supported bug, assess the proposed contribution, and recommend assigning the contributor, declining, or seeking a specific maintainer decision.

한국어 요약은 준비 중입니다. 영어 요약을 표시하고 있습니다.

  • Deciding whether to assign an external contributor
  • Assessing a pull request closed by contribution checks
  • Checking whether reported behavior is a supported bug
PrefectHQ/fastmcp2.8만2026년 10월 21일 업데이트

PrefectHQ의 스킬 모두 보기

이 스킬의 문제 신고