TrueRAG GraphQL 政策
STDIO通过GraphQL API访问策略的MCP服务器
通过GraphQL API访问策略的MCP服务器
This repository contains a Model Context Protocol (MCP) server implementation for a GraphQL API that provides access to policies.
The server is built using the python SDK for MCP and uses the GQL library to interact with the GraphQL API.
git clone https://github.com/Ad-Veritas/mcp-server-trueRAG.git cd mcp-server-trueRAG
uv --version
If not, you can install it using:
# 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"
The server is configured to work against a GraphQL API for one of the TrueRag systems. Once you created the TrueRAG environment, copy the API key and endpoint from the environment variables.
Create a .env
file in the root directory of the repository and add the following lines:
GRAPHQL_API_KEY = "{your_api_key}" GRAPHQL_ENDPOINT = "{your_graphql_endpoint}"
Add the following lines to the Claude configuration file (~/Library/Application Support/Claude/claude_desktop_config.json
):
"shipping-policies": { "command": "uv", "args": [ "--directory", "{path_to_mcp_server}/mcp-server-trueRAG", "run", "fastmcp", "run", "server.py" ] }