mcpField
S
SmallCloud MCP Server Demo

SmallCloud MCP Server Demo

本地服务
github.com/SmallCloudCo开发工具2100 周前更新

关于 SmallCloud MCP Server Demo

SmallCloud MCP Server Demo 是供开发者了解 Anthropic MCP SDK 的精简 Node.js 示例,可用于 Claude Desktop 等 MCP 宿主。它仅提供一个问候工具。

主要功能

  1. 01Anthropic MCP SDK 示例
  2. 02单个 `get_hello` 工具
  3. 03Node.js 服务入口
  4. 04启动与工具列表测试

适用场景

  1. 01在 Claude Desktop 中试用 MCP 服务
  2. 02检查服务启动和工具发现

MCP 相关

这是使用 Anthropic 的 Model Context Protocol SDK 构建的 MCP 服务。MCP 客户端可调用其 `get_hello` 工具获取问候消息。

配置

本地服务的配置在各客户端中通用,复制后粘贴到客户端的 MCP 配置文件即可。

暂未收录安装方式

我们还没有获取到这个服务的安装包或远程地址,请按项目 README 中的说明安装。

代码仓库

工具

还没有获取到工具列表

本地服务需要在你的电脑上运行后才能读取工具,维护者暂未提供工具列表。

详细介绍

SmallCloud MCP 服务演示

概述

使用 Anthropic 的 Model Context Protocol SDK 演示 Anthropic MCP 服务。可与 Claude Desktop 和其他 MCP Host 配合使用。

这是一个适用于 Mac OS 的演示。Windows 可能需要进行一些小幅调整。如果你希望自己的 MCP 解决方案可供他人重复使用,我会考虑创建一个包,而不是像本演示这样仅使用一个 index.js 文件。

访问 https://smallcloud.co,获取更多 AI/LLM/编码资源。

前置条件

  • Node.js(建议使用 18 或更高版本)#本示例通过 homebrow 安装
  • npm

安装

  1. 克隆代码库:

    git clone https://github.com/your-org/smallcloud-mcp-server.git
    cd smallcloud-mcp-server
    
  2. 安装依赖项:

    npm install
    

使用方法

运行服务:

node index.js
Claude Desktop 配置(MacOS)

要让 MCP 服务显示在 MacOS 上的 Claude Desktop 中,请将以下内容添加到 ~/Library/Application Support/Claude/claude_desktop_config.json:

{
  "mcpServers": {
    "smallcloud-mcp-server": {
      "command": "/opt/homebrew/bin/node",
      "args": [
        "~/Git/smallcloud-mcp-server/index.js"
      ]
    }
  }
}

注意:调整 index.js 的路径,使其与你本地代码库的位置一致。

可用工具

目前,服务包含一个演示工具:

  • get_hello:返回一条“Hello, World!”消息

开发

运行测试

运行测试套件:

npm test

目前,测试套件会检查:

  • 服务启动
  • 工具列表功能

项目结构

smallcloud-mcp-server/
│
├── index.js          # Main server implementation used by Claude Desktop. See section "Claude Desktop Configuration (MacOS)"
└── test/
    └── server.test.js # Server test suite

贡献

  1. Fork 此代码库
  2. 创建功能分支(git checkout -b feature/AmazingFeature)
  3. 提交更改(git commit -m 'Add some AmazingFeature')
  4. 推送到分支(git push origin feature/AmazingFeature)
  5. 发起 Pull Request

许可证

[在此指定你的许可证]

联系方式

[你的联系信息或项目维护者详情]

评论

支持 Markdown

第一次接触 MCP?

从协议是什么,到在客户端里装上第一个服务,这几条回答覆盖了大多数入门问题。

一个开放协议,规定了 AI 应用如何以统一方式连接外部工具与数据源。客户端负责与模型对话,MCP 服务负责提供工具、资源和提示模板,两者通过标准消息通信,同一个服务可以被不同客户端复用。