微基因辅助MCP服务器
](https://smithery.ai/server/@xraywu/mcp-wegene-assistant)
WeGene Assistant的MCP服务器,使用LLM分析用户的WeGene基因检测报告。
组件
资源
一旦用户获得授权,他/她帐户下的所有报告都将作为资源公开:
- 自定义wegene://URI方案,用于访问每个单独的报告
- 报表资源具有名称、描述和application/json mimetype
工具
服务器实现了一个工具:
- wegene oauth: 在浏览器中启动WeGene Open API oAuth进程
- 用户应在120秒内完成授权,以便LLM能够进一步访问报告。
- wegene获取配置文件: 阅读用户WeGene帐户下的个人资料列表
- 将返回配置文件的名称和id供LLM使用。
- wegene获取报告信息: 返回报告元信息,以便LLM知道哪些报告可用。
- 将返回报告名称、描述、端点等列表
- wegene得到报告: 在配置文件下阅读单个报告的结果
- 返回在中指定的JSON结果 WeGene的开放式API平台 - 争论 - report_endpoint:要从中检索的报表端点 - report_id:要检索的报告id - profile_id:从中检索报告的配置文件id
配置
- 您需要WeGene Open API密钥/机密才能使用此项目。
- 复制
.env.example像.env并更新文件中的密钥和秘密。
快速启动
安装
通过Smithery安装
通过以下方式自动安装克劳德桌面版WeGene助手 史密瑟里:
npx -y @smithery/cli install @xraywu/mcp-wegene-assistant --client claudeInsall本地
准备MCP服务器
- 克隆此项目
- 跑
uv sync --dev --all-extras在项目的根文件夹下
Claude桌面配置
- 在MacOS上:
~/Library/Application\ Support/Claude/claude_desktop_config.json - 在Windows上:
%APPDATA%/Claude/claude_desktop_config.json
在配置文件中添加以下内容:
{
"mcpServers": {
"wegene-assistant": {
"command": "uv",
"args": [
"--directory",
"/path/to/wegene-assistant",
"run",
"wegene-assistant"
]
}
}
}