Ship Mcp

io.github.colossal1598由 GitHub 帳號 colossal1598 發布v0.2.1更新於 Oct 24, 2026

Clean TypeScript starter for MCP servers: zod-validated tools, tests, one-command dev loop.

發布方自己的服務:ship.page

已驗證STDIO僅桌面開發者工具AI 與機器學習

概覽

AI 產生的概覽

一套用來打造自有 MCP 伺服器的 TypeScript 起始範本,內含以 zod 驗證的範例工具、測試與開發循環。

可以做什麼
提供最小化的 MCP 伺服器骨架:src/index.ts 負責伺服器接線與 stdio 傳輸,src/tools.ts 把工具邏輯與接線分離,另有不必啟動伺服器即可執行的 Vitest 單元測試。內建兩個範例工具 echo 與 fetch_json,後者示範含錯誤處理的非同步操作。指令碼涵蓋啟動開發伺服器、測試、建置到 dist,以及對開發伺服器開啟官方 MCP Inspector。
適用情境
當你想用 TypeScript 撰寫新的 MCP 伺服器,並希望直接沿用可運作的 SDK 接線、結構驗證、stderr 記錄與 Inspector 設定,而不想自己重做這些前置工作時,適合使用。它是開發骨架,不是內含實用終端使用者工具的現成伺服器。
執行需求
本機需安裝 Node.js 與 npm;此套件從 npm 安裝,並以本機 stdio 程序執行。README 的快速開始使用 npx degit 複製儲存庫,接著執行 npm install、npm run dev、npm test、npm run inspect 與 npm run build。未宣告任何帳號、API 金鑰或環境變數。
安裝前請注意
此範本固定了 MCP SDK 的一個精確 beta 版本,因此在調升版本並重新執行測試之前,不會取得上游 beta 變更。README 另外推廣付費產品 Ship MCP Pro,包含授權金鑰驗證、用量計量與 HTTP 傳輸;那是另一項產品,不屬於本套件。範例工具 fetch_json 使用時會發出對外網路請求。

安裝

在 SourceWeft 中

  1. 開啟 儀表板中的 Ship Mcp,將其新增到工作區。
  2. 為需要使用其工具的對話啟用該服務。

Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。

其他 MCP 客戶端

參照 儲存庫 中的啟動說明。

README

ship-mcp

The clean TypeScript starter for building MCP servers. Zod-validated tools, unit tests, MCP Inspector wired up, one-command dev loop. Clone it, rename two strings, ship your server.

bash
npx degit colossal1598/ship-MCP my-server && cd my-server && npm i && npm run dev

Why this exists

Every MCP server starts with the same 90 minutes of setup: SDK wiring, stdio transport, schema validation, figuring out why console.log breaks the protocol (logs go to stderr — already handled here), and getting the Inspector attached. This repo is that 90 minutes, done properly, once.

What's inside

  • src/index.ts — server wiring: register tools, connect stdio transport. ~40 lines, no magic.
  • src/tools.ts — tool logic decoupled from wiring so it's unit-testable. Two examples: echo (hello-world) and fetch_json (real async tool with error handling).
  • src/tools.test.ts — Vitest tests that run without spawning the server.
  • npm run inspect — opens the official MCP Inspector against your dev server.

Quickstart

bash
npm installnpm run dev        # run the server (stdio)npm test           # unit testsnpm run inspect    # poke tools in the MCP Inspector UInpm run build      # compile to dist/

Use it from Claude Desktop / Claude Code

json
{  "mcpServers": {    "my-server": {      "command": "node",      "args": ["/absolute/path/to/dist/index.js"]    }  }}

Add your own tool (30 seconds)

ts
// src/tools.tsexport const greetInput = { name: z.string() };export async function greet({ name }: { name: string }) {  return { content: [{ type: "text" as const, text: `Hello, ${name}!` }] };}
// src/index.tsserver.registerTool("greet", { description: "Greet someone", inputSchema: greetInput }, greet);

Want to ship a paid MCP server?

Fewer than 5% of the 11,000+ MCP servers out there make money — not because the demand isn't there, but because the billing plumbing is genuinely annoying. Ship MCP Pro is this starter plus everything the free version deliberately leaves out:

  • 🔑 License-key gating — Payhip & Gumroad license verification middleware; sell keys, server validates them
  • 📊 Usage metering + per-key rate limits — free tier / paid tier out of the box
  • 🌐 Streamable HTTP transport — deploy as a remote server (Docker + Railway/Fly guides included)
  • ✅ CI pipeline, expanded test suite, production error handling
  • 📣 Launch kit — the exact directory-submission checklist + listing templates that get servers 10x more installs

One-time $49, MIT-licensed output, free updates. → Get Ship MCP Pro


MIT © Argo Navis

Note on the SDK pin: this starter pins @modelcontextprotocol/[email protected] exactly — the v2 SDK for the 2026-07-28 spec. When the stable 2.0.0 lands, bump the pin and re-run the tests; the exact pin is there so an upstream beta change can't silently break your build.

來源:README.md,提交 165d3a2

工具

0
SourceWeft 尚未在沙箱中啟動過該軟體包,因此其工具未知。

版本歷史

1
  1. v0.2.1最新Sep 16, 2026

評分

已滿足適用檢查項的 50%

該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。

  • 近 30 天內可連通25 分

    請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。

  • 已宣告認證方式10 分

    請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。

  • 已列出工具15 分

    請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。

  • 描述必需15 分
  • 圖示10 分
  • 文件15 分
  • 授權條款10 分

其他 Ship 整合