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 整合