使用说明
@麦迪逊堡/mcp服务器
包含TUI的monorepo(@madisonbullard/mcp-server-tui)以帮助安装 模型上下文协议 服务器。带上你自己的MCP服务器,在几分钟内将其发布到NPM或你选择的JS包管理器。
这是一个TUI实际应用的示例,用于安装 @madisonbullard/shortcut-mcp-server:
它还包含用于各种用例的MCP服务器,所有这些服务器都是通过TUI安装的。
包裹
@madisonbullard/mcp-server-tui:用于为各种客户端(Claude Desktop、Cursor、Windsurf等)安装MCP服务器的TUI@madisonbullard/shortcut-mcp-server:用于快捷方式的MCP服务器@madisonbullard/shortcut-mcp-server-installer:用于安装快捷方式MCP服务器的CLI@madisonbullard/shortcut-api-client:快捷方式API的客户端@madisonbullard/notion-mcp-server:Notion的MCP服务器@madisonbullard/notion-mcp-server-installer:用于安装Notion MCP服务器的CLI@madisonbullard/notion-api-client:Notion API的客户端@madisonbullard/coderabbit-mcp-server:Coderabbit的MCP服务器@madisonbullard/coderabbit-api-client:Coderabbit API的客户端
发展
- 安装依赖项:
bun install
- 构建您要开发的服务器的MCP服务器和CLI(此命令构建monorepo中的每个包):
bun run build
-
这将创建一个
dist您要开发的服务器所需的每个包文件夹中的文件夹。 -
运行CLI
bun run packages/shortcut-mcp-server-installer/dist/index.js # or the path to the dist folder of the CLI you want to run
- 运行MCP服务器
bun run packages/shortcut-mcp-server/dist/index.js
- 客户端(例如Claude Desktop、Cursor、Windsurf等)将在没有上述命令的情况下运行并连接到MCP服务器,因此除非您想手动向MCP服务器发出请求,否则通常不需要运行它。
编码风格
确保 bun typecheck 和 bun check 通过。你可以跑了 bun fix 以格式化代码。
在仓库中使用git钩子 .githooks 文件夹,这将使您无需等待CI告诉您忘记了这些命令,请运行以下命令:
git config core.hookspath .githooks