Token导航 LogoToken导航

MCP Server · 运维云端

graphton (Plantoncloud Inc)

Graphton是一个声明式的LangGraph代理创建框架,用于简化MCP工具的集成,支持自动提示增强和智能循环检测,适用于生产环境。

stdio官方级别未说明来源级核验工具 0
LangGraphPythonClaude

快速开始

作者 / 组织
plantonhq
提供方
plantonhq

工具数量

0

来源目录标注

资源数量

0

来源目录标注

提示词数量

0

来源目录标注

GitHub Star

0

仓库热度

收录来源

1 个

MCP World

选型结论

graphton (Plantoncloud Inc) 属于运维云端类 MCP Server,公开资料标注 0 个工具,通过stdio 本地进程接入,适配 Claude,有可以直接复制的安装命令;接入前要先准备 OAuth 授权。

分类

运维云端

传输方式

stdio

认证方式

OAuth 授权

部署方式

公开资料未说明

安装与配置

安装命令

pip install graphton

公开命令不是通用的启动方式,拼不出可靠配置示例;请在客户端 MCP 配置里按官方文档填写 command 和 args。

上手步骤

  1. 1

    准备运行环境

    stdio 服务在本地起进程,需要先装好 对应的运行时,再按安装命令拉取依赖。

  2. 2

    安装服务

    复制下面的安装命令执行;命令里带占位符的位置换成自己的密钥或路径。

  3. 3

    写入客户端配置

    在客户端的 MCP 配置里填启动命令和参数,保存后完全退出客户端再打开,让新配置生效。

  4. 4

    验证是否可用

    连接成功后客户端会列出 0 个工具,随便调一个只读工具确认能返回结果。

接入前确认

不要直接授予不必要的文件、网络或账号权限;先核对安装命令和配置内容。

详细介绍

石墨顿

LangGraph的声明式代理创建框架

Graphton在使用MCP工具创建LangGraph代理时消除了样板。在中创建生产就绪代理 3-10行,而不是100行+.

特性

  • 声明性代理创建:最小样板-只需指定模型和行为
  • 自动提示增强:代理自动了解可用功能(规划、文件系统、MCP工具)
  • 通用MCP身份验证:支持任何具有静态和动态身份验证模式的MCP服务器配置
  • 智能环路检测:自动检测并防止自治代理中的无限循环
  • 生产就绪:适用于本地和远程LangGraph部署
  • 类型安全配置:Pydantic验证,带有有用的错误消息
  • IDE 支持:完整的自动补全和类型提示,以获得更好的开发人员体验

快速开始

安装

pip install graphton

简单代理

只需3行即可创建基本代理:

from graphton import create_deep_agent

SYSTEM_PROMPT = """You are a helpful assistant that answers questions concisely.
When answering questions:
- Be direct and to the point
- Provide accurate information
- If you're not sure, say so
"""

# Create agent with just model and prompt
agent = create_deep_agent(
    model="claude-sonnet-4.5",
    system_prompt=SYSTEM_PROMPT,
)

# Invoke the agent
result = agent.invoke({
    "messages": [{"role": "user", "content": "What is the capital of France?"}]
})

使用MCP工具的代理

将MCP工具与动态每用户身份验证集成:

from graphton import create_deep_agent
import os

# Agent with dynamic MCP authentication
agent = create_deep_agent(
    model="claude-sonnet-4.5",
    system_prompt="You are a Planton Cloud assistant helping users manage cloud resources.",
    
    # MCP integration with template variables
    mcp_servers={
        "planton-cloud": {
            "transport": "streamable_http",
            "url": "https://mcp.planton.ai/",
            "headers": {
                "Authorization": "Bearer {{USER_TOKEN}}"  # Substituted at runtime
            }
        }
    },
    mcp_tools={
        "planton-cloud": [
            "list_organizations",
            "search_cloud_resources",
            "create_cloud_resource",
        ]
    },
    
    # Optional parameters
    recursion_limit=150,
    temperature=0.3,
)

# Invoke with user-specific token
result = agent.invoke(
    {"messages": [{"role": "user", "content": "List my organizations"}]},
    config={
        "configurable": {
            "USER_TOKEN": os.getenv("PLANTON_API_KEY")
        }
    }
)

静态MCP配置

对于共享凭据,请使用静态配置(在创建时加载一次的工具):

agent = create_deep_agent(
    model="claude-sonnet-4.5",
    system_prompt="You are an API assistant.",
    
    mcp_servers={
        "public-api": {
            "transport": "http",
            "url": "https://api.example.com/mcp",
            "headers": {
                "X-API-Key": "hardcoded-key-123"  # No templates = static
            }
        }
    },
    mcp_tools={
        "public-api": ["search", "fetch"]
    }
)

# Invoke without auth config - credentials already in config
result = agent.invoke(
    {"messages": [{"role": "user", "content": "Search for Python"}]}
)

代理与子代理

将复杂任务委托给具有隔离上下文的专用子代理:

from graphton import create_deep_agent

agent = create_deep_agent(
    model="claude-sonnet-4.5",
    system_prompt="You are a research coordinator that delegates specialized tasks.",
    
    # Define specialized sub-agents
    subagents=[
        {
            "name": "deep-researcher",
            "description": "Conducts thorough research on complex topics with comprehensive analysis",
            "system_prompt": "You are a research specialist. Conduct thorough research, cite sources, and provide comprehensive analysis.",
        },
        {
            "name": "code-reviewer",
            "description": "Reviews code for quality, security, and best practices",
            "system_prompt": "You are a code review expert. Analyze code for bugs, security issues, and improvement opportunities.",
        }
    ],
    
    # Include general-purpose sub-agent for other tasks
    general_purpose_agent=True,
)

# The agent can now delegate tasks to sub-agents
result = agent.invoke({
    "messages": [{"role": "user", "content": "Research quantum computing and review the attached code"}]
})

何时使用子代理:

  • 可以委派的复杂多步骤任务
  • 独立并行任务
  • 需要集中推理而不需要上下文膨胀的任务
  • 专业领域(研究、代码审查、数据分析)

优点:

  • 上下文隔离:每个子代理都有自己的上下文窗口
  • 代币效率:主代理获得简洁的摘要,而不是完整的任务历史记录
  • 并行执行:同时启动多个子代理
  • 专业化:具有特定领域工具的不同子代理

自动提示增强

Graphton会自动增强您的指令,并了解Deep Agents的功能。这确保了代理了解他们拥有什么工具以及何时使用它们。

什么得到增强

当您提供以下简单说明时:

agent = create_deep_agent(
    model="claude-sonnet-4.5",
    system_prompt="You are a helpful research assistant.",
)

Graphton会自动添加以下内容的上下文:

  • 规划系统:用于分解复杂的多步骤任务
  • 文件系统:用于跨操作存储和管理信息
  • MCP工具:配置后,了解特定域的功能

为什么这很重要

深度代理具有强大的内置工具(规划、文件系统、子代理),但除非代理知道它们的存在,否则它们不会有效地使用它们。Graphton通过自动通知代理可用功能来弥合这一差距。

控制和灵活性

  • 默认情况下为自动:所有代理都会自动进行增强
  • 冗余是可以的:如果您的说明中已经提到了计划或文件系统,则会出现一些重叠。这是有意的——LLM优雅地处理冗余,强化比缺少关键上下文要好
  • 可以禁用:使用 auto_enhance_prompt=False 按原样传递指令
# Disable enhancement if you've already included all context
agent = create_deep_agent(
    model="claude-sonnet-4.5",
    system_prompt="Detailed instructions with all tool context...",
    auto_enhance_prompt=False,  # Use prompt as-is
)

文档

- simple_agent.py -无MCP的基本代理 - mcp_agent.py -动态MCP身份验证 - static_mcp_agent.py -静态MCP配置 - multi_auth_agent.py -具有混合身份验证的多个服务器

通用MCP身份验证

Graphton通过基于模板的令牌注入支持任何MCP服务器配置格式和身份验证方法:

动态模式 (与 {{VAR}} 模板):

  • 模板替换自 config['configurable'] 在调用时
  • 根据请求加载具有用户特定身份验证的工具
  • 用于多租户系统或每用户令牌

静态模式 (无模板变量):

  • 在代理创建时加载一次工具
  • 零运行时开销
  • 用于硬编码凭据或公共服务器

支持的身份验证方法:

  • 承载令牌(OAuth、JWT)
  • API密钥
  • 基本认证
  • 自定义头
  • MCP服务器支持的任何身份验证格式

需求

  • Python 3.11或更高版本
  • 诗歌(发展)

许可证

Apache-2.0-见 许可证 详情

贡献

我们欢迎捐款!请看 贡献.md 用于开发设置和指南。

链接

  • 仓库: https://github.com/plantoncloud/graphton
  • 文档: https://github.com/plantoncloud/graphton#readme
  • 问题: https://github.com/plantoncloud/graphton/issues

工具与能力

工具数量

0

资源数量

0

提示词数量

0

能力标签

LangGraphPython本地部署代理框架MCP工具集成自动提示增强智能循环检测

支持客户端

Claude

数量来自来源目录的标注,具体工具清单以官方文档为准。

典型使用场景

看服务状态

查询容器、日志和监控指标,定位异常。

执行部署变更

在权限范围内触发发布、回滚和环境切换。

核对资源用量

汇总用量,找出闲置和超额的部分。

选择建议

值得选的地方

  • 只提供 0 个工具,职责集中,接入后不容易误操作。
  • 有现成的安装命令,不用自己找入口,照着跑就能起服务。
  • 公开说明写得比较完整,接入前能看清能力边界。

先想清楚的地方

  • stdio 方式要求本地装好 运行环境,换机器要重新装一遍。
  • 需要自备OAuth 授权,没有凭据没法直接试。
  • 第三方目录整理,版本更新和行为细节以官方仓库为准。

更适合

  • 需要在运维云端场景里让模型直接调用外部能力的人。
  • 已经在用 Claude 的用户,接入路径最短。
  • 想先快速试一下、能接受在本地跑服务的人。

不太适合

  • 完全不想在本地装环境的人。
  • 暂时拿不到OAuth 授权的人。
  • 需要厂商级 SLA 和技术支持的生产环境。

同类对比

5 个同类
MCP Server工具数传输方式安装命令收录来源最后核验
graphton (Plantoncloud Inc)

MCP World · 本页

0stdio有1 个2026-05-17
Ui Tars Desktop 8a825770

MCP World

0stdio有1 个2026-05-17
Elie222 MCP

MCP World

0未说明未标注1 个2026-05-17
Arizeai Phoenix MCP

MCP World

0stdio有3 个2026-05-17
Unity MCP 87ee506e

MCP World

42HTTP有2 个2026-05-17

按同分类和工具数量挑出最接近的几条,字段以各自详情页为准。

常见问题

5 条

graphton (Plantoncloud Inc) 怎么安装?

公开资料给出的安装命令是 pip install graphton,运行环境为 未标注。装完后按客户端要求写进 MCP 配置,重启客户端生效。

graphton (Plantoncloud Inc) 怎么在 Claude Desktop、Cursor 里配置?

它是stdio 本地进程,客户端配置里要写启动命令和参数,运行环境是 未标注;保存后完全退出客户端再打开,配置才会生效。

graphton (Plantoncloud Inc) 收费吗?

本站只整理公开资料,不代收费用,也没有标注具体价格。是否收费取决于服务本身和背后的接口额度,正式使用前按官方说明确认。

graphton (Plantoncloud Inc) 需要 API Key 吗?

公开资料标注的认证方式是OAuth 授权,也就是要先拿到凭据才能连上;凭据只填在自己本地的配置里,不要写进公开仓库。

graphton (Plantoncloud Inc) 支持哪些客户端?

公开资料标注支持 Claude;其他客户端只要能配置 MCP Server,也能用同样的命令或地址接入。

来源信息

继续浏览同类 MCP