
lirantal/awesome-mcp-best-practices
Developer toolsこのページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。 原文を見る
lirantal/awesome-mcp-best-practices は [https://github.com/lirantal/awesome-mcp-best-practices. からインポートされた MCP サーバーの候補です
概要
lirantal/awesome-mcp-best-practices は [https://github.com/lirantal/awesome-mcp-best-practices. からインポートされた MCP サーバーの候補です
概要(AI 翻訳)
MCP Server および MCP クライアントの構築に関する素晴らしいモデルコンテキストプロトコル (MCP) のベストプラクティスのキュレーションとオピニオンリストです。
お問い合わせ
MCP サーバー
- 1 MCP サーバー ツール
- 1.1 ツールのネーミング標準
- 1.2 アリスを命じるツール
- 1.3 用具の記述の標準
- 1.4 回答が見つからない場合
- 2つのMCPサーバー定義
- 2.1 豊富なサーバー指示を提供して下さい
- 3 MCPサーバーアーキテクチャ
- 3.1 抽象的なサーバー機能
- 3.2 ドントマップ 1:1 ツールへの API
- MCP サーバーのテスト
- MCP サーバーの展開
- MCP Server を Docker コンテナとしてパッケージ化
- MCP サーバーセキュリティ
- セキュアMCPサーバーコード
- セキュアなMCPサーバー依存関係
- 記述的な間違いを避けて下さい
- MCP サーバー性能
- キャッシュの高価なツール
- MCP サーバーエラーと保守性
- 優雅なタイムアウト ・
MCP クライアント
// TBD
お問い合わせ
#1 MCP サーバー ツール
# # # 🔵 1.1 ツールのネーミング標準
MCP Server Tools の一貫性のある互換性のある命名規則を使用して、MCP クライアントが適切に発見および呼び出されるようにします。
✕ これらのツールのネーミング条約を回避する
- スペース:
get Npm Package Info - ドット表記:
get.Npm.Package.Info - ブラケット/括弧: [[T3]
このページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。
README
以下は原文 README の抜粋です。原文を見る。
Awesome MCP Best Practices 
A curated and opinionated list of awesome Model Context Protocol (MCP) best practices as they pertain to building MCP Servers and MCP Clients.
MCP Servers
- 1 MCP Server Tools
- 2 MCP Server Definition
- 3 MCP Server Architecture
- MCP Server Testing
- MCP Server Deployment
- MCP Server Security
- MCP Server Performance
- MCP Server Errors and Observability
MCP Clients
// TBD
1 MCP Server Tools
🔵 1.1 Tool Naming Standards
Use consistent, compatible naming conventions for your MCP Server Tools to ensure they can be properly discovered and invoked by MCP Clients.
❌ Avoid These Tool Naming Conventions
- Spaces:
get Npm Package Info - Dot notation:
get.Npm.Package.Info - Brackets/parentheses:
get(Npm)PackageInfo
✅ Recommended Tool Naming Conventions
- ✅ camelCase (preferred):
getNpmPackageInfo - kebab-case:
get-npm-package-info - snake_case:
get_npm_package_info
server.tool(
"getNpmPackageInfo",
"Get information about an npm package",
{
packageName: z.string()
},
async ({ packageName }) => {
// Implementation details...
return {
content: [{ type: "text", text: output }],
};
}
);
💡 Why It Matters
Using non-standard naming conventions can prevent or disrupt MCP Clients from properly discovering and surfacing your tools to end users. GPT-4o tokenization works best with camelCase naming conventions.
🔵 1.2 Tool Naming Aliases
When the Tool name can be intereted and accessed using different naming conventions, call out aliases in the Tool’s description.
❌ Problematic Pattern
For example, a postMesage tool name might be too specific:
server.tool(
"postMessage",
"Post a message under your account",
() => {}
)
The LLM might not invoke the tool if the users ask for “share a social post on Twitter”, or “upload this picture to Instagram”.
✅ Recommended Practice
Specify aliases and elaborate description for LLMs to better understand when it is required to invoke your tool.
インストール
docker run -p 3000:3000 your-mcp-server-image