{
  "markdown": "# TypeScript MCP Server with Custom Container\n\nA simple TypeScript MCP server built using the official [MCP TypeScript SDK](https://github.com/modelcontextprotocol/typescript-sdk), Express, and custom Docker container. This example demonstrates how you can host HTTP servers on Smithery using custom containers, with STDIO support for backwards compatibility.\n\nSee the complete guide: https://smithery.ai/docs/migrations/typescript-custom-container\n\n**[Try it live on Smithery](https://smithery.ai/server/@smithery-ai/cookbook-ts-custom-container)**\n\n## Features:\n\n- **CORS**: CORS headers for browser-based MCP clients\n- **Smithery Session Configuration**: handles user's session configuration passed via Smithery ([learn more](https://smithery.ai/docs/build/session-config))\n- **Request Logging Middleware**: Custom middleware for debugging HTTP requests and responses\n- **Server Transport**: Can run with both STDIO and HTTP transports using `TRANSPORT` env variable\n\n## Prerequisites\n\n- Node.js 22 or higher\n- npm package manager\n\n## Project Structure\n\n- `src/index.ts` - Main Express server with MCP HTTP transport\n- `package.json` - Node.js dependencies and scripts\n- `smithery.yaml` - Smithery deployment and session configuration\n- `Dockerfile` - Dockerfile to host server in Smithery\n\n## Quick Start\n\n1. **Install dependencies:**\n   ```bash\n   npm install\n   ```\n\n2. **Run the development server:**\n\n   **HTTP Mode:**\n   ```bash\n   npm run dev\n   ```\n   This will start the server on port 8081.\n\n3. **Test interactively:**\n   Once your server is running in HTTP mode, you can test it interactively using the Smithery playground:\n   ```bash\n   npx -y @smithery/cli playground --port 8081\n   ```\n\n   <img src=\"../../../../public/smithery_playground.png\" alt=\"Smithery Playground\" width=\"800\">\n\n4. **Deploy your own version:**\n   To deploy your own MCP server:\n   - Connect your repository at [https://smithery.ai/new](https://smithery.ai/new)",
  "bytes": 1949,
  "sha": "b2e466ad77c5e9e4469ad0dc40722c625ca4fd9e0237145be779dce661f4e93b",
  "repo_slug": "callmybot/cookbook-mcp-server",
  "fonte": "repo",
  "truncated": false,
  "api": "https://agentalog.com/api/listings/mcp_ai_smithery_callmybot_cookbook_mcp_serve_0edcd1f7/readme"
}