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 集成