分析型MCP服务器
提供结构化问题解决工具的分析型MCP服务器,增强AI能力。
快速入门
前置条件
- 安装 Node.js (v20+) 和 npm
- 获取 Exa API 密钥
安装步骤
- 克隆仓库
- 安装依赖:运行
npm install
- 设置环境变量:
- 复制
.env.example
为.env
- 编辑
.env
文件并添加 API 密钥
- 复制
- 构建项目:运行
npm run build
使用方法
- 运行高级 NLP 示例:
npm run nlp:demo
- 调用工具示例代码:
const datasetAnalysis = await analyzeDataset([1, 2, 3, 4, 5], 'summary'); const researchVerification = await researchVerification.verifyResearch({ query: 'Climate change impacts', sources: 3 }); const entities = await advancedNER.recognizeEntities("Apple Inc. is planning to open a new headquarters in Austin, Texas.");
测试
- 运行所有测试:
npm test
- 运行特定测试:如
npm run test:integration
或./tools/run-all-integration-tests.sh