1.0.3 • Published 9 months ago

lanhu-content-mcp v1.0.3

Weekly downloads
-
License
-
Repository
-
Last release
9 months ago

lanhu-content-mcp

一个基于Model Context Protocol (MCP)的服务器演示项目,用于处理蓝湖相关内容。

安装

npm install lanhu-content-mcp

使用方法

在代码中使用

import { McpServer } from "@modelcontextprotocol/sdk/server/mcp.js";
import { StdioServerTransport } from "@modelcontextprotocol/sdk/dist/server/stdio.js";

// 创建MCP服务器实例
const server = new McpServer({
  name: "Demo",
  version: "1.0.0"
});

// 连接服务器
const transport = new StdioServerTransport();
await server.connect(transport);

在Cursor中使用

本项目已发布到npm,可以直接在Cursor中通过MCP插件使用。插件会自动使用npx运行已发布的包,无需额外配置。

功能特性

  • 支持蓝湖API集成
  • 提供标准MCP服务器功能
  • 支持自定义工具和资源扩展

开发

# 安装依赖
npm install

# 运行开发服务器
npm start

# 运行测试
npm test

# 构建项目
npm run build

许可证

MIT

1.0.3

9 months ago

1.0.2

9 months ago

1.0.1

9 months ago

1.0.0

9 months ago