Smithery Ai Cookbook Ts Smithery Cli

ai.smithery由 smithery.ai 发布官方发布者v1.0.0更新于 Oct 24, 2026

A simple Typescript MCP server built using the official MCP Typescript SDK and smithery/cli. This…

发布方自己的服务:222wcnm Bilistalkermcp

已验证Streamable HTTP可网页运行云端与基础设施开发者工具

概览

AI 生成的概览

一个托管在 Smithery 上的 TypeScript MCP 示例服务器,演示如何用 Smithery CLI 构建并部署可流式 HTTP 服务器。

可以做什么
这是一个示例项目而非功能丰富的服务器:它展示如何用官方 TypeScript SDK 和 Smithery CLI 构建 MCP 服务器、以可流式 HTTP 方式托管,并保留 STDIO 以兼容旧客户端。它会处理通过 Smithery 传入的会话配置,并可通过环境变量切换传输方式。README 未列出任何具体工具,因此其能力仅限于示例实现所暴露的内容。
适用场景
适合希望获得可运行参考的开发者,用于搭建、运行并在 Smithery 上部署自己的 TypeScript MCP 服务器,或用于测试 Smithery 演练场和会话配置流程。它并非面向通用助手用途的工具。
运行要求
连接 server.smithery.ai 的远程端点,需要在 Authorization 请求头中携带 bearer 令牌。本地运行或修改示例需要 Node.js 22 或更高版本及 npm;STDIO 模式使用 API_KEY 环境变量。
安装前请注意
远程端点要求在 Authorization 请求头中提供 Smithery bearer 令牌,应将该凭据视为机密。该示例是模板,部署自己的版本前应审查并替换其代码,不要直接信任原样使用。

安装

在 SourceWeft 中

  1. 打开 控制台中的 Smithery Ai Cookbook Ts Smithery Cli,将其添加到工作区。
  2. 连接 Authorization token 凭据。它们会被私密存储,绝不会在公开页面上展示。
  3. 为需要使用其工具的对话启用该服务。

Web executable,通过 Streamable HTTP。 远程服务在工作区中配置后即可从网页运行时运行。

交给智能体安装

把这段提示词粘贴到 Claude Code、Codex、Cursor 等智能体,或 SourceWeft 对话中。智能体会读取该服务器的安装指南,先向你展示发布者、端点和登录方式,经你同意后再把它添加到你的客户端。密钥不会写进任何命令。

阅读 https://sourceweft.com/mcp/ai.smithery%2Fsmithery-ai-cookbook-ts-smithery-cli/install.md,并按其中说明把这个 MCP 服务器接入我的客户端。修改任何配置之前,先告诉我它的发布者、端点和登录方式,等我确认。不要把 API 密钥写进命令或我会提交的文件;问我密钥应从哪里获取。

查看智能体所依据的安装指南

其他 MCP 客户端

把它添加到你客户端的 mcpServers 配置中。

{
  "mcpServers": {
    "smithery-ai-cookbook-ts-smithery-cli": {
      "type": "http",
      "url": "https://server.smithery.ai/@smithery-ai/cookbook-ts-smithery-cli/mcp",
      "headers": {
        "Authorization": "Bearer <YOUR_TOKEN>"
      }
    }
  }
}

README

TypeScript MCP Server with Smithery CLI

A simple Typescript MCP server built using the official MCP Typescript SDK and smithery/cli. This example demonstrates how you can host streamable HTTP servers on Smithery using smithery/cli, with STDIO support for backwards compatibility.

See the complete guide: https://smithery.ai/docs/migrations/typescript-with-smithery-cli

Try it live on Smithery

Features:

  • Smithery CLI: Uses @smithery/cli for compiling your server and launching interactive playground
  • Smithery Session Configuration: handles user's session configuration passed via Smithery
  • HTTP Transport: Can run with both STDIO and HTTP transports using TRANSPORT env variable

Prerequisites

  • Node.js 22 or higher
  • npm package manager

Project Structure

  • src/index.ts - Main server implementation with MCP tools and session configuration
  • package.json - Node.js dependencies and scripts
  • smithery.yaml - Smithery deployment configuration

Quick Start

  1. Install dependencies:

    bash
    npm install
  2. Run the development server:

    HTTP Mode (automatically launches Smithery playground for interactive testing):

    bash
    npm run dev
    [Smithery Playground]

    Optional - STDIO Mode: If you prefer to run in STDIO mode, you can use:

    bash
    API_KEY=your-api-key npm run start:stdio
  3. Deploy your own version: To deploy your own MCP server:

来源:servers/typescript/migrate_stdio_to_http/server_with_smithery_cli/README.md,提交 2bf1e95

工具

0
SourceWeft 尚未读取此服务器的工具。

版本历史

1
  1. v1.0.0最新Sep 16, 2026

评分

已满足适用检查项的 85%

该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。

  • 近 30 天内可连通必需25 分
  • 已声明认证方式必需10 分
  • 已列出工具必需15 分

    请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。

  • 描述必需15 分
  • 图标10 分
  • 文档15 分
  • 许可证10 分

其他 Smithery 集成