IOG Model Context Protocol (MCP) Server

IOG Model Context Protocol (MCP) Server

site icon
2025.04.07 0
JavaScript工具注册数据检索系统集成开发效率
IOG Model Context Protocol (MCP) Server 是一个独立的 MCP 服务器实现,可以与 Windsurf 等系统集成。它提供了工具注册、数据检索、标准 MCP 端点等功能,适用于需要集成工具和数据的开发场景。
View on GitHub

Overview

基本能力

产品定位

IOG-MCP-server 是一个独立的 MCP 服务器实现,主要用于工具注册、数据检索和与 Windsurf 等系统的集成。

核心功能

  • 工具注册:包括计算器和搜索功能。
  • 数据检索:提供访问 personas 和 products 数据的工具。
  • 标准 MCP 端点:用于工具发现和执行。
  • JSON Schema 定义:为所有工具和参数提供定义。
  • Windsurf 集成:提供与 Windsurf 连接的示例代码。

适用场景

  • 需要集成多种工具的开发环境。
  • 需要访问和管理 personas 和 products 数据的系统。
  • 与 Windsurf 等系统集成的场景。

工具列表

  • 计算器:提供基本的计算功能。
  • 搜索工具:提供数据搜索功能。
  • 数据检索工具:用于访问 personas 和 products 数据。

常见问题解答

  • 如何扩展工具注册?可以通过在 iog_mcp_server.js 中添加新工具到 tools 对象来实现。
  • 如何提供数据文件?需要准备 personas.jsonproducts.jsonIOG Products/ 目录中的详细 Markdown 文件。

使用教程

使用依赖

# 安装依赖
npm install

安装教程

# 克隆仓库或复制文件到项目
# 启动 MCP 服务器
npm start
# 或
node iog_mcp_server.js

调试方式

服务器默认运行在 http://localhost:3001。

可用端点

  • GET /mcp/tools:返回可用工具及其定义的列表。
  • POST /mcp/execute:使用提供的参数执行工具。

与 Windsurf 集成

const WindsurfMCPIntegration = require('./windsurf_integration');

async function main() {
  const integration = new WindsurfMCPIntegration();
  await integration.initialize();
  await integration.registerWithWindsurf();

  // 现在可以通过 Windsurf 使用工具
}

main();

许可证

该项目遵循 MIT 开源许可条款。