grape-kit
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
Grape-kit helps mainstream agents (opencode / CodeArts / WorkBuddy / dsh / openclaw, etc.) use Grape safely and in a structured way — an AI-native DevOps platform with multi-agent pipelines (vod → issue → coding → qa → sre).
agent (MCP stdio: opencode / CodeArts / WorkBuddy / dsh…; other MCP-capable agents wire up manually)
→ grape-kit (39 tools · native HTTP · Markdown rendering · initialize-instruction bootstrap)
→ grape server (pipelines / events / takeover session API; CLI only as 401 fallback)Capabilities (39 tools)
Pipeline control: trigger (the only A2A entry) · wait_task · task status · cancel/resume with decision gates
Issues & events: list/detail/events/my-issues · create · structured hand-back templates
Cloud-local collaboration (v0.3.2+ core): takeover sessions atomically hand cloud nodes (e.g. coding) over to your agent — a
tko_credential (12h) plus the full context bundle (prompt/env/workspace/skill/history) come back; your agent works locally and reports progress. Hand-back is two-phase:request-finishonly reports completion, and after you confirm in the conversation thefinishcall hands back the structured result (the pipeline chain never breaks).Credential semantics:
tko_is repo_session-only (keep working the node / report progress, no git credential injection).request-finishworks withtko_, but the finalfinishrequires a user-level credential (grape_); callingfinishwithtko_returns 403 by design. There is no UI confirm button — confirmation happens only in your chat with the agent.Platform requirement: weekly-11+; older platforms fall back to the legacy read-only context automatically. Full sequence: docs/20261114-takeover-architecture.md
Scenes & repos: list_scenes · apply_scene · host_repo · sync_repos · managed/member repos · project templates · project-info
Search, knowledge & skills: search (all/event/repo/agent) · skills ×3 · knowledge ×2 · dashboard
Worker onboarding: register this machine as a grape execution engine (
grape_worker_onboard)
Related MCP server: DevOps Agent Harness
Quick Start
If
--targetis omitted, the installer auto-detects agents on your machine:
None detected: interactive terminals show an agent picker; non-interactive shells error out with the supported target list.
One detected: installs directly to it.
Multiple detected: installs to all detected agents (
--target allequivalent); pass--target <agent>to pick one.
Prerequisites: Node >= 20 (no Python needed — native HTTP since v0.3.0). Credentials go through environment variables:
export GRAPE_BASE_URL=https://www.grapedev.cn
export GRAPE_API_TOKEN=grape_xxx # API Key: https://www.grapedev.cn/app/#account/profile
# Agents that sanitize env vars: file channel ~/.grape/config.json {"token":"grape_xxx","base_url":"..."}Credential priority & auth init
One entry point writes credentials; the resolution order is fixed and shared by the API client, doctor, and takeover scripts:
GRAPE_API_TOKEN_ONCE— runtime, current process only (highest)GRAPE_API_TOKEN/GRAPE_BASE_URL— environment channelGRAPE_AUTH_FILEor~/.grape/config.json(the directory can be overridden withGRAPE_HOME) — file channel
# write the file channel (mode 600, BOM stripped) and print the matching env commands
npx -y @grape-dev/grape-kit auth init --token grape_xxx --base-url https://www.grapedev.cn
npx -y @grape-dev/grape-kit doctor # shows the full runtime > env > file chain (never echoes the token)auth init writes to GRAPE_AUTH_FILE when it is set, otherwise GRAPE_HOME/config.json — the write target is always identical to the resolution target, and the file is read back and verified after writing. In doctor output the effective tier shows [ok]; missed/overridden tiers show [--] (informational, no action needed).
A plain uninstall removes only the host entry and reports any leftover credentials. Add --clean-global to delete ~/.grape (file channel + worker artifacts), the user-level GRAPE_API_TOKEN/GRAPE_BASE_URL (POSIX: the exact export lines are removed from rc files and the backup keeps only non-credential lines — a backup holding credentials would just be the token under a different name; Windows uses reg delete), and only those _npx cache entries that contain node_modules/@grape-dev. --clean-global works with or without --target (with no host traces it still runs the global cleanup), and --dry-run previews what would be deleted without touching the disk:
npx -y @grape-dev/grape-kit uninstall --clean-global --dry-run # preview first
npx -y @grape-dev/grape-kit uninstall --clean-globalOpenCode
npx -y @grape-dev/grape-kit install --target opencodeRestart the session after installation.
npx -y @grape-dev/grape-kit doctor --target opencode --probe
npm install -g @grape-dev/grape-kit # update (then restart the session)
npx -y @grape-dev/grape-kit uninstall --target opencodeCodeArts Agent (华为云码道)
npx -y @grape-dev/grape-kit install --target codeartsWrites the mcpServers entry into ~/.codeartsdoer/codearts_cli.jsonc (global) or <project>/.codeartsdoer/codearts_cli.jsonc (project-level). After install, restart the entry in CodeArts: 设置 → MCP工具 → 已安装 → grape-kit → 「重启」.
npx -y @grape-dev/grape-kit doctor --target codearts --probe
npx -y @grape-dev/grape-kit update --target codearts
npx -y @grape-dev/grape-kit uninstall --target codeartsWorkBuddy
npx -y @grape-dev/grape-kit install --target workbuddyWrites ~/.workbuddy/mcp.json (mcpServers.grape-kit, via npx — no global install) + skill to ~/.workbuddy/skills/grape-remote/. Just restart the host session — no manual "trust" step is needed (verified: the server spawns without an authorization prompt). Credentials go through environment variables — never write them into mcp.json.
npx -y @grape-dev/grape-kit doctor --target workbuddy --probe
npx -y @grape-dev/grape-kit update --target workbuddy
npx -y @grape-dev/grape-kit uninstall --target workbuddy # removes entry + skill + receipt (config backed up)DeepSeek Harness (dsh)
npx -y @grape-dev/grape-kit install --target dshWrites a managed block into $DSH_HOME/profiles/web/cordis.patch.yml (default $DSH_HOME = ~/.dsh): an insert row with id: grape-kit, name: '@deepseek-ai/dsh-mcp-client', transport: stdio, and a node command pointing at the local MCP entry (falls back to npx when the script cannot be resolved). The grape-remote skill is copied to $DSH_HOME/skills/. Only the lines between the managed markers are touched — your own patch rows stay byte-for-byte intact and every write is backed up first. Restart the dsh session afterwards to load the new patch.
@deepseek-ai/dsh-mcp-client is a web-profile asset: the installer tries a best-effort install and never blocks on failure. If it cannot install it, run:
npx @deepseek-ai/dsh plugin --profile web add @deepseek-ai/dsh-mcp-client
corepack enable pnpm # first, if pnpm is missingnpx -y @grape-dev/grape-kit doctor --target dsh --probe # managed block / skill copy / dsh-mcp-client
npx -y @grape-dev/grape-kit install --target dsh # re-assembly after upgrade (idempotent)
npx -y @grape-dev/grape-kit uninstall --target dsh # removes the managed block + skill copy onlydsh uses the MCP minimal path (all 39 tools reused unchanged). The full native Cordis plugin lives in grape-dsh; the two coexist.
openclaw (ClawHub marketplace)
openclaw plugins install clawhub:grape-kit@latestThe clawhub: prefix is the source (matching devkit's listing form). Verify with the plugin's MCP tools list (39 tools). Marketplace page: https://clawhub.ai/grape-dev/plugins/grape-kit
Version check & update (all targets)
npx -y @grape-dev/grape-kit --version # version check
npm install -g @grape-dev/grape-kit # update (then restart the agent session)
npx -y @grape-dev/grape-kit uninstall # uninstall, target auto-detected
npx -y @grape-dev/grape-kit uninstall --clean-global # also purge ~/.grape + user env vars + _npx cacheA startup version check compares against the npm registry and reminds you once when a newer release exists (24h dedupe; disable with GRAPE_KIT_SKIP_UPDATE_CHECK=1). Mirror registries (npmmirror etc.) may lag 1-3 days — use --registry https://registry.npmjs.org/ for the latest.
Then just talk to your agent:
> Which of my grape issues have pipelines running?
> Trigger the pipeline for issue #12 of acme/demo, then wait for a terminal state
> #12's coding node is running — take it over on this machine, keep the chain ← takeover_start
> Done — report to the platform, wait for my confirmation before formal hand-back ← progress + request-finish + finish (finish needs a user-level credential)
> Can't finish this node — give it back to the cloud, keep the chain ← takeover_abortCapability map after install (intro)
Every successful install ends with a capability map: 5 groups of what the agent can do for you, each with one copy-paste example question. If no credential is found yet, the same block starts with a 3-step API Key guide (where to generate it, the grape_ prefix, where to put it), so the first tool call does not die with 401.
npx -y @grape-dev/grape-kit intro # reprint the capability map at any timeintro and the install-end output share one constant, so the two cannot drift. It takes no --target — the map is host-independent and only local credential state is read; use the per-host sections above for host-specific commands.
Version history
Full release notes: CHANGELOG.md — 21 条发布记录(含 0.0.0-stage 占位包)
Version | Date | Highlights |
0.4.0 | 2026-11-23 | DeepSeek Harness (dsh) support (#21): |
0.3.10 | 2026-11-23 | Takeover hand-back dispatch closed (#19): the dispatch pointer is |
0.3.9 | 2026-11-23 | Takeover full-chain hardening (#12): takeover_start branch/MR preflight checks + warnings fully surfaced, cross-platform Node takeover scripts (report / request-finish / finish), 409 agent_mismatch hints, bundle {{CWD}} rendering, doctor credential-source line; #17 fix batch: |
0.3.8 | 2026-11-20 | Three review tools (grape_review_pass / grape_review_reject / grape_confirm_done — tools 36→39); issues table gains a "Repository" column; doctor recognizes ~/.grape/config.json file-channel credentials (no more false FAIL) |
0.3.7 | 2026-11-20 | Graphical rendering for trigger/task_status (node-chain diagram on trigger; status card + progress bar + next-step hints); README Quick Start rebuilt in devkit style (per-agent sections, Capabilities overview, lifecycle command group); uninstall receipt cleanup; Codex/hermes removed from surfaced targets |
0.3.6 | 2026-11-19 | Pipeline rendering supports the segments event-stream shape (real API payloads; no more raw-JSON fallback); stall status surfaced in the verdict line ("⚠️ suspected stall for N minutes"); segments-shape regression case added (unit tests 114→115) |
0.3.5 | 2026-11-19 | Agent auto-detection from local traces (workbuddy/codearts/officeace); interactive agent picker when none detected (no silent opencode fallback); clean-env auto-config + three-step onboarding output; agent matrix docs (CodeArts section, openclaw/ClawHub channel) |
0.3.4 | 2026-11-19 | codearts + officeace install targets (supported agents 2→4); doctor version-update line (24h dedupe, five states); installer entry-engine structural scan hardening |
0.3.3 | 2026-11-18 | check_update startup reminder + CHANGELOG generator; 401 fallback hardened |
0.3.2 | 2026-11-17 | Takeover session five tools (start/status/progress/finish/abort); #2517 client-side adaptation (abort redispatch failure alert + race warning rendering); SKILL.md dual-path semantics |
0.3.1 | 2026-11-11 | cancel three-choice decision gate · resume fact re-verification · search contract convergence · structured hand-back template |
0.3.0 | 2026-11-10 | Native HTTP transport; grape CLI/Python becomes optional (401 fallback channel) |
0.2.x | pre 2026-11-09 | 13→31 tools · worker_onboard · B1 takeover loop |
Design principles
Trigger, observe, advance, take over — nothing more: A2A orchestration is server-driven by default; the one client-side fallback is takeover_finish re-dispatching coding→qa when the platform's hand-back response carries no dispatch pointer (
next_seq=0) — and only after the hand-back itself succeeded, so a failed hand-back never pushes the next node into an un-handed-back task; a node name outside the known set is reported as unknown rather than rewritten; beyond that scope the platform's original hand-off behavior stands; takeovers use session primitives for atomic hand-over and hand-backScope is the first gate: of the 219 contract commands, the 28 session-only ones (git-repo etc.) always 403 for external tokens — excluded outright;
tko_takeover credentials are repo_session-only and revoked on completionAgent-native output: tool responses are Markdown tables / node chains / event timelines;
wait_taskpolls with stage summaries and timeout hints
Windows notes
Encoding: grape CLI / MCP output is UTF-8; PowerShell decodes it as GBK by default and shows mojibake — run
chcp 65001first, or set$OutputEncoding = [Console]::OutputEncoding = [Text.UTF8Encoding]::new().BOM: a UTF-8 BOM in
~/.grape/config.jsonmakesJSON.parsefail — save without BOM (VS Code "Save with Encoding → UTF-8"; PowerShellSet-Content -Encoding utf8NoBOM).setx does not propagate:
setx GRAPE_API_TOKEN ...only affects new processes; the current agent session will not see it — restart the host (opencode / CodeArts / WorkBuddy) or re-login the terminal after setting it.
Development & testing
npm install
npm test # 270 unit tests (fake-grape stand-in, no real server needed)
npm run smoke # real stdio JSON-RPC round-trip: initialize → tools/list → tools/callRead-only smoke against a real server:
export GRAPE_BASE_URL=https://www.grapedev.cn GRAPE_API_TOKEN=grape_xxx
node scripts/live-smoke.mjsSee CONTRIBUTING.md for the contribution flow, AGENTS.md if you are an AI coding agent working on this repo.
Roadmap
Org repo home (grape-dev/grape-kit)
Full CI gating (GitHub Actions-compatible workflow provided today; enable GitCode GoCI once generally available)
More install targets: codearts / officeace (three integration types)
dsh install target (MCP stdio managed patch); the full native Cordis plugin stays in grape-dsh — the two coexist
Links
Grape platform · grape main repo · grape-cli · grape-dsh (DSH adapter)
Takeover architecture & verification report: docs/20261114-takeover-architecture.md
Contributing: CONTRIBUTING.md · Security: SECURITY.md · Code of conduct: CODE_OF_CONDUCT.md · Support: SUPPORT.md · Agent guide: AGENTS.md
License
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
Control plane for autonomous software labor. Agents claim objectives over MCP with audit trail.
Agent communication platform for agent to agent messaging via MCP. Messages, channels, skills.
Hosted MCP memory and agent control plane for durable conversations, jobs, and operations.
- aXDeprecatedio.github.ax-platform
Agent-native collaboration network: orchestrate a team of long-running agents from any MCP client.
Related MCP Servers
- AlicenseNot gradedqualityCmaintenanceEnables agent clients to safely connect to tools and execution resources through MCP with authorization, approvals, audit, chat-context isolation, SSH/Docker access, and long-running command session tracking.MIT
- AlicenseNot gradedqualityCmaintenanceTurns any AI coding agent or MCP client into a governed DevOps engineer by exposing policy-enforced tools for Kubernetes, Docker, Jira, Git/PR, CI/CD, AWS, Terraform, and incident response, with approvals, audit logging, secret redaction, and rollback enforced outside the model.6Apache 2.0
- AlicenseNot gradedqualityBmaintenanceEnables AI coding agents to take and progress tasks, hand in completed work with evidence, and enables users to publish, search, and retrieve guides, file bugs, manage inbox/board/activity/logs, and plan tasks over MCP.MIT
- AlicenseCqualityCmaintenanceEnables any MCP client to triage cloud agents, projects, conversations, transcripts, pull requests, and files, including listing agents, reading transcripts, following runs, and sending follow-ups, using an API key or browser sign-in.29MIT