
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 Servers 및 MCP Client를 구축하는 것과 같이 멋진 Model Context Protocol (MCP) 모범 사례의 입각 및 의견 목록.
MCP 서버
- 1 MCP 서버 도구
- 1.1 공구 Naming 기준
- 1.2 공구 Naming Aliases
- 1.3 공구 묘사 기준
- 1.4 찾을 수없는 응답
- 2 MCP 서버 정의
- 2.1 Rich Server 지침 제공
- 3 MCP 서버 아키텍처
- 3.1 Abstract 서버 기능
- 3.2 Dont 맵 1:1 API 도구
- MCP 서버 테스트
- MCP 서버 배포
- MCP Server를 Docker 컨테이너로 포장
- MCP 서버 보안
- 보안 MCP 서버 코드
- MCP Server 의존성 확보
- descriptive 오류 방지
- MCP 서버 성능
- 캐시 값 비싼 도구
- MCP 서버 오류 및 관찰성
- 화려한 타임아웃
MCP 클라이언트
TBD 소개
1 MCP 서버 도구
🔵 1.1 공구 Naming 기준
MCP Server Tools]에 대한 일관성 있고 호환되는 naming Conventions를 사용하여 MCP Clients에 의해 제대로 발견되고 호출 할 수 있습니다.
❌ 이러한 도구 Naming 협약을 방지
- 공간:
get Npm Package Info - 점 표기:
get.Npm.Package.Info - 브라켓/부모:
get(Npm)PackageInfo
이 페이지는 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 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.
server.tool(
"postMessage",
"Upload, share, and post messages on social media",
() => {}
)
설치
docker run -p 3000:3000 your-mcp-server-image