ai.smithery/smithery-ai-cookbook-ts-smithery-cli
A simple Typescript MCP server built using the official MCP Typescript SDK and smithery/cli. This…
التثبيت
أضف هذا إلى إعدادات MCP في عميلك (Claude Desktop: claude_desktop_config.json، وCursor: .cursor/mcp.json، ويستخدم VS Code وغيره الصيغة نفسها «mcpServers»).
claude mcp add --transport http smithery-ai-cookbook-ts-smithery-cli 'https://server.smithery.ai/@smithery-ai/cookbook-ts-smithery-cli/mcp' --header 'Authorization: <Bearer token for Smithery authentication>'
{
"mcpServers": {
"smithery-ai-cookbook-ts-smithery-cli": {
"type": "http",
"url": "https://server.smithery.ai/@smithery-ai/cookbook-ts-smithery-cli/mcp",
"headers": {
"Authorization": "<Bearer token for Smithery authentication>"
}
}
}
}
التوثيق
مأخوذ من ملف README للمشروع على GitHub ويُحدَّث أسبوعيًا. تفتح الروابط على GitHub.
المحتويات
Smithery Cookbook
The Smithery Cookbook provides code examples and guides designed to help developers build MCP (Model Context Protocol) servers and clients, offering copy-able code snippets that you can easily integrate into your own projects.
Prerequisites
To make the most of the examples in this cookbook, you'll need:
- Smithery CLI: Install with
npm install -g @smithery/clito access the interactive playground and development tools - Programming language runtimes for the examples you want to explore (Python 3.12+, Node.js 18+, etc.)
- Basic understanding of the Model Context Protocol (MCP)
Quick Start
- Clone this repository:
git clone https://github.com/smithery-ai/smithery-cookbook.git cd smithery-cookbook - Choose an example and follow its README:
cd servers/python/quickstart # Follow the README.md instructions Test with Smithery Playground:
npx @smithery/cli playground --port 8081Note: Replace
8081with the port your server is running on- Deploy to Smithery (optional): Ready to share your MCP server? Deploy it here to host it on Smithery's platform.
Table of Recipes
Python Servers
- FastMCP Quickstart - Basic server with greeting tool
- FastMCP Advanced - Server with session configuration
- Migrate STDIO to HTTP - Server with custom Docker container
TypeScript Servers
- TypeScript Quickstart - Simple server with character counting tool
- TypeScript Session Config - Server with session configuration
- Migrate STDIO to HTTP - Smithery CLI - Server using Smithery CLI
- Migrate STDIO to HTTP - Custom Container - Server with custom Docker container
Development Workflow
Build and distribute your MCP servers with Smithery:
- Build your MCP server using the language and framework of your choice
- Test interactively with
npx @smithery/cli playground - Debug with real-time request/response inspection
- Deploy to Smithery's hosted platform - Deploy here
- Distribute your server gets its own page at
smithery.ai/server/{name}for others to discover and use
Explore Further
Looking for more resources to enhance your MCP development experience?
- Smithery Documentation - Complete guides and API reference
- Deploy Your MCP Server - Host your server on Smithery's platform
- Model Context Protocol Specification - Official MCP documentation
- Smithery Discord Community - Get help and share your projects
If you have ideas for new examples or guides, share them on the issues page.
License
MIT License
الأسئلة الشائعة
ما هو ai.smithery/smithery-ai-cookbook-ts-smithery-cli؟
A simple Typescript MCP server built using the official MCP Typescript SDK and smithery/cli. This…
كيف أثبّت ai.smithery/smithery-ai-cookbook-ts-smithery-cli؟
يعمل كخادم بعيد. في Claude Code: claude mcp add --transport http smithery-ai-cookbook-ts-smithery-cli 'https://server.smithery.ai/@smithery-ai/cookbook-ts-smithery-cli/mcp' --header 'Authorization: <Bearer token for Smithery authentication>'. وفي العملاء الآخرين، الصق إعداد JSON من هذه الصفحة في إعدادات MCP الخاصة بهم.
هل يحتاج ai.smithery/smithery-ai-cookbook-ts-smithery-cli إلى مفتاح API؟
نعم. يتطلب Authorization، وتضبطها في إعداداته.
هل ai.smithery/smithery-ai-cookbook-ts-smithery-cli مفتوح المصدر؟
نعم. شيفرته متاحة على GitHub بترخيص MIT.
من يصون ai.smithery/smithery-ai-cookbook-ts-smithery-cli؟
ينشره smithery-ai. يدرجه AI.tn لكنه لا يصونه ولا يوصي به.
من سجل MCP الرسمي. الإدراج ليس توصية: راجع شيفرة الخادم وصلاحياته قبل منحه الوصول إلى بياناتك.