DG

dosco/graphjin

API 开发

本页由 AI 翻译,技术细节请以原文为准。 查看原文

3227 stars 207 forks 质量 79 趋势 47Apache-2.0

一个针对AI代理的管理图——GraphQL+MCP,覆盖你的数据库、文件、API和代码

概览

GraphJin 是一个编译器和运行时工具,为 AI 代理提供了一个治理图,覆盖了真实公司已有的系统:数据库、仓库、文件、源代码、工作流、元数据和安全策略。GraphJin 不再直接给代理原始凭证并指望它猜对,而是通过 GraphQL + MCP 暴露该图:代理在行动前先发现,验证查询,运行批准工作,观察运行时状态——每个答案在离开服务器前都会与执行账本进行核对。 它不仅仅是针对代理。GraphJin依然是一款高性能的GraphQL到数据库编译器、Go库、独立API服务、REST/OpenAPI网关和实时订阅服务器。代理的使用场景是一切汇聚的地方:同一个为你的应用服务的编译器还能为AI提供一种智能且可审计的方式,跨数据、代码和操作进行协作。

概述(AI 翻译)

GraphJin 是一个编译器和运行时工具,为 AI 代理提供了一个治理图,覆盖了真实公司已有的系统:数据库、仓库、文件、源代码、工作流、元数据和安全策略。GraphJin 不再直接给代理原始凭证并指望它猜对,而是通过 GraphQL + MCP 暴露该图:代理在行动前先发现,验证查询,运行批准工作,观察运行时状态——每个答案在离开服务器前都会与执行账本进行核对。

它不仅仅是针对代理。GraphJin依然是一款高性能的GraphQL到数据库编译器、Go库、独立API服务、REST/OpenAPI网关和实时订阅服务器。代理的使用场景是一切汇聚的地方:同一个为你的应用服务的编译器还能为AI提供一种智能且可审计的方式,跨数据、代码和操作进行协作。

支持PostgreSQL、MySQL、MongoDB、SQLite、Oracle、MSSQL、Snowflake、Redshift、BigQuery、Apache Cassandra / Amazon Keyspaces、S3/GCS/本地文件、CodeSQL源索引——以及从Claude/GPT-4到本地7B模型的模型。

为什么选择GraphJin for Agents

本页由 AI 翻译,技术细节请以原文为准。

README

以下为原文 README 节选,完整内容请查看原文。

GraphJin — One Governed Graph for Your AI Agents

GraphJin is a compiler and runtime that gives AI agents one governed graph over the systems a real company already has: databases, warehouses, files, source code, workflows, metadata, and security policy. Instead of handing an agent raw credentials and hoping it guesses correctly, GraphJin exposes that graph through GraphQL + MCP: the agent discovers before acting, validates queries, runs approved work, observes runtime status — and every answer is checked against an execution ledger before it leaves the server.

It is not only for agents. GraphJin is still a high-performance GraphQL-to-database compiler, Go library, standalone API service, REST/OpenAPI gateway, and real-time subscription server. The agent use case is where everything comes together: the same compiler that serves your apps can also give AI a smart, auditable way to work across data, code, and operations.

Works with PostgreSQL, MySQL, MongoDB, SQLite, Oracle, MSSQL, Snowflake, Redshift, BigQuery, Apache Cassandra / Amazon Keyspaces, S3/GCS/local files, CodeSQL source indexes - and models from Claude/GPT-4 to local 7B models.

Why GraphJin For Agents

  • A built-in agent, one call away - POST one instruction to /api/v1/agent (or call the ask_graphjin_agent MCP tool) and GraphJin runs the discovery loop itself - as the caller, under the caller’s permissions - and returns a typed, evidence-backed answer. See Server-Side Agent.
  • One governed surface for many systems - Query operational databases, warehouses, MongoDB, object stores, local files, CodeSQL source indexes, workflows, and GraphJin system roots through GraphQL and MCP.
  • Smart discovery before action - Agents start with query_catalog(search: ""), graphql_help, relationship evidence, examples, config recipes, and safety notes before writing or running queries.
  • Guarded action, not raw access - Source-mode access, query allow-lists, read-only boundaries, policy-aware MCP tools, local encrypted secrets, and gj_config preview/apply keep changes auditable.
在 GitHub 查看完整 README

安装

docker run -d -p 8090:8090 --tmpfs /tmp:size=1g dosco/graphjin:env-latest
新手?先看 mcpskill.org 教程 →