
Model Context Protocol (MCP) Server for GraphQL Policies API

2025.04.04
0
Python策略管理GraphQL API其它
Ad-Veritas_mcp-server-trueRAG 是一个基于 Model Context Protocol (MCP) 的服务器实现,专为 GraphQL API 设计,用于提供策略访问服务。该服务器利用 python SDK for MCP 构建,并通过 GQL 库与 GraphQL API 进行交互。
View on GitHub
Overview
基本能力
产品定位
Ad-Veritas_mcp-server-trueRAG 是一个基于 MCP 协议的服务器,旨在通过 GraphQL API 提供策略访问服务。
核心功能
- 提供对 GraphQL API 的访问能力
- 支持策略查询和管理
- 使用 python SDK for MCP 构建
- 通过 GQL 库与 GraphQL API 交互
适用场景
- 需要在 MCP 环境中集成 GraphQL API 的场景
- 需要管理和查询策略信息的应用
工具列表
uv
:用于运行和管理 MCP 服务器的工具GQL
:用于与 GraphQL API 交互的库
常见问题解答
- 如何安装
uv
? - 在 macOS 和 Linux 上:
curl -LsSf https://astral.sh/uv/install.sh | sh
- 在 Windows 上:
powershell -ExecutionPolicy ByPass -c "irm https://astral.sh/uv/install.ps1 | iex"
使用教程
使用依赖
- 确保已安装
uv
工具:bash uv --version
如果未安装,可以通过以下命令安装: ```bash # On macOS and Linux. curl -LsSf https://astral.sh/uv/install.sh | sh
# On Windows. powershell -ExecutionPolicy ByPass -c "irm https://astral.sh/uv/install.ps1 | iex" ```
安装教程
- 克隆仓库:
bash git clone https://github.com/Ad-Veritas/mcp-server-trueRAG.git cd mcp-server-trueRAG
- 创建
.env
文件并配置环境变量:txt GRAPHQL_API_KEY = "{your_api_key}" GRAPHQL_ENDPOINT = "{your_graphql_endpoint}"
- 将服务器添加到 MCP 客户端(如 Claude Desktop)的配置文件中:
json "shipping-policies": { "command": "uv", "args": [ "--directory", "{path_to_mcp_server}/mcp-server-trueRAG", "run", "fastmcp", "run", "server.py" ] }
调试方式
- 确保
uv
已正确安装并配置。 - 确保
.env
文件中的 API 密钥和端点正确无误。 - 检查 MCP 客户端的配置文件是否正确引用了服务器路径。
许可证
None