本文へ移動
cccskills
無料GitHub で公開日本語紹介

fastmcp-server

PythonのFastMCPで、導入済みバージョンに合う資料を参照しながらMCPサーバーを作成・拡張・レビューし、ツールの設計や動作、エージェントの利用結果を検証します。

原文原文の説明を見る

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

インストール方法を見る

こんなときに便利

  • PythonでMCPサーバーを作りたいとき
  • ツールやリソース、プロンプトの追加
  • 引数定義とエラー処理のレビュー
  • エージェントの作業完了を検証したいとき

日本語での紹介

できること

PythonのFastMCPを使ったMCPサーバーの作成・拡張・レビューを支援します。導入済みバージョンと依存条件を確認し、対応する公式資料を参照して実装を進めます。実行する操作はツール、参照する内容はリソース、再利用するメッセージはプロンプトとして整理し、引数の定義、結果の形式、エラー時の案内を設計します。

こんなときに便利

既存サービスの機能をエージェントから使えるようにしたい開発者に向いています。サーバーは動くのにエージェントが操作を見つけられない場合や、取得結果の不足を見落とす場合の見直しにも役立ちます。必要に応じて、実際の作業結果をAPIやデータベースの記録と照合します。

使い方の例

  • 「このプロジェクトのFastMCPバージョンに合わせてサーバーを作って」
  • 「公開される引数定義と、失敗時の応答をレビューして」
  • 「エージェントが代表的な作業を完了できるか検証して」

注意点

独立したfastmcpパッケージが対象で、Python MCP SDKのmcp.server.fastmcpとはAPIが異なります。既存の依存条件を維持し、更新は依頼に含まれる場合に行います。認証や接続方式は実行環境に合わせます。スキル配信機能を使う場合は、導入版と接続先クライアントの対応確認が必要です。

この紹介文は、公開されている SKILL.md をもとに AI(OpenAI Codex)が作成しました。正確な仕様は下の原文を確認してください。

含まれるファイル(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 / 1000 文字

このフォームは reCAPTCHA で保護されており、Google のプライバシーポリシーと利用規約が適用されます。

同じリポジトリのスキル

docs

無料概要あり

FastMCPの公式ドキュメントを追加・改訂するスキル。既存ページに合う構成と文体、実行できるコード例、アクセシビリティ、リンク検査から公開確認まで扱います。

  • FastMCPの新機能を文書化したいとき
  • 既存の説明ページを改訂したいとき
  • 読みやすさとページ間の統一性の点検
PrefectHQ/fastmcp2.8万2026年10月21日 更新

fastmcp-client-cli

無料概要あり

コマンドラインからMCPサーバーのツールや引数を調べて実行します。設定済みサーバーの探索、ローカル・リモート接続、JSON出力による作業への組み込みを扱います。

  • エディターやプロジェクトの接続設定を探索
  • 利用可能なツールと引数定義の確認
  • ローカルやリモートのMCPツール実行
PrefectHQ/fastmcp2.8万2026年10月21日 更新

fix-issue

無料概要あり

FastMCPの不具合を再現し、影響範囲を絞った修正から互換性の確認、テスト、プルリクエスト公開後の確認まで進めるスキルです。

  • 再現できるFastMCPの不具合修正
  • 修正公開前に互換性を確認したいとき
  • プルリクエスト公開後の確認と対応
PrefectHQ/fastmcp2.8万2026年10月21日 更新

python-tests

無料概要あり

FastMCPの変更に対して、不具合の再発を防ぐpytestのテストを書くスキル。修正前の再現確認から、通信を伴わない動作検証や外部リクエストの検査まで扱います。

  • 修正前に不具合を再現したいとき
  • ネットワークなしでMCP動作を検証
  • 外部サービスへの送信内容の検査
PrefectHQ/fastmcp2.8万2026年10月21日 更新

release

無料概要あり

FastMCPのリリース内容の確認から、貢献者の記載、変更履歴の更新、タグ作成、PyPIへの公開、ドキュメントの反映確認までを一連の手順で進めます。

  • 次回リリースの変更内容を確認したいとき
  • リリースノートと貢献者表記の準備
  • パッチ版や保守版を公開したいとき
PrefectHQ/fastmcp2.8万2026年10月21日 更新

review-issue

無料概要あり

FastMCPに届いた外部の課題報告と関連する修正案を調べ、不具合の妥当性や受け入れ方針を踏まえて、担当割り当てや見送りを提案するスキルです。

  • 外部の貢献者に担当を割り当てたいとき
  • 受付条件で閉じられた修正案の確認
  • 報告された挙動が不具合か調べたいとき
PrefectHQ/fastmcp2.8万2026年10月21日 更新

PrefectHQ のスキルをすべて見る

このスキルの問題を報告する