返回市场
麦普快速启动

麦普快速启动

作者:dexaai13 星标更新:2024-12-13

项目介绍

MCP服务器快速入门

在60秒内设置一个模型上下文协议(MCP)服务器。

https://github.com/user-attachments/assets/19a2248a-64f4-4e0b-aedc-55eb51c7cbfe

使用方法

  1. 确保已安装Bun
  2. 克隆仓库并安装依赖项:
    git clone https://github.com/dexaai/mcp-quickstart.git mcp-quickstart && cd mcp-quickstart && bun install
    
  3. 复制服务器的绝对路径:
    realpath server.ts | pbcopy
    
  4. 打开Claude桌面应用程序配置文件:
    vim ~/Library/Application\ Support/Claude/claude_desktop_config.json
    
  5. 使用步骤3中的路径替换<path/to/repo>/server.ts添加服务器配置。
    {
      "mcpServers": {
        "weather-quickstart": {
          "command": "bun",
          "args": ["<path/to/repo>/server.ts"]
        }
      }
    }
    
  6. 重启Claude桌面应用程序并询问天气。