drive_write
Write a markdown file to a workspace. Creates or updates the file with automatic versioning.
path必填content必填messageworkspace_id必填
sh.agentdrive由 agentdrive.sh 發布官方發布者v1.0.0更新於 Nov 2, 2026
Cross-agent artifact workspace with provenance across Claude Code, Codex, Cursor, LangGraph.
AgentDrive 為助理提供跨工具的共享 Markdown 工作區,具備版本管理、語意召回、工作階段交接與執行溯源。
Web executable,透過 Streamable HTTP。 遠端服務在工作區中設定後即可從網頁執行環境執行。
把這段提示詞貼上到 Claude Code、Codex、Cursor 等代理程式,或 SourceWeft 對話中。代理程式會讀取該伺服器的安裝指南,先向你展示發布者、端點和登入方式,經你同意後再把它新增到你的客戶端。金鑰不會寫進任何命令。
閱讀 https://sourceweft.com/mcp/sh.agentdrive%2Fagentdrive/install.md,並按其中說明把這個 MCP 伺服器接入我的客戶端。修改任何設定之前,先告訴我它的發布者、端點和登入方式,等我確認。不要把 API 金鑰寫進命令或我會提交的檔案;問我金鑰應從哪裡取得。把它新增到你客戶端的 mcpServers 設定中。
{
"mcpServers": {
"agentdrive": {
"type": "http",
"url": "https://mcp.agentdrive.sh/mcp",
"headers": {
"Authorization": "Bearer <YOUR_TOKEN>"
}
}
}
}The official Model Context Protocol server for AgentDrive — a cross-agent artifact workspace with provenance and portable storage across Claude Code, Codex, Cursor, LangGraph, and any MCP-aware host.
Give your agents a shared, persistent workspace: files with versioning, semantic recall over everything prior agents produced, run logging, and cross-agent attribution — so the next session (on any tool) picks up where the last one left off.
@adrive/mcp-serverhttps://mcp.agentdrive.sh/mcpThis repo is also the Claude Code plugin marketplace. The plugin captures every session in the background and resumes it from Codex, OpenCode, Gemini CLI, Antigravity, or Cursor:
On Claude Code older than 2.1.275, run /plugin marketplace add Rakesh1002/agentdrive-mcp
then /plugin install agentdrive@agentdrive. Sign in with /agentdrive:login.
Create one at https://app.agentdrive.sh — no credit card. The free tier (1 workspace, 1 GB storage, 10k embeddings) is free indefinitely.
Point any MCP client that supports remote servers at the hosted endpoint and pass your key as a bearer token:
Or install in one click via Smithery.
Add that block to your host's MCP config:
claude_desktop_config.json~/.cursor/mcp.jsonmcpServers block aboveThe fastest path is the AgentDrive installer, which auto-wires every detected host:
22 tools across files, memory, sessions, collaboration, org, and provenance. The stdio server derives the current project from its working directory (git remote, else repo path), which scopes drive_sessions and drive_resume.
The drive_sandbox_* tools require the Cloudflare Containers plan on the AgentDrive
worker and degrade cleanly to a "not configured" message otherwise.
Agents lose context at every session boundary and every tool switch. AgentDrive is the shared substrate: one workspace, every agent, full provenance. Write once with Claude Code; recall it from Cursor; hand off to Codex — each call is attributed to the right principal and platform.
Apache-2.0. See LICENSE.
來源:README.md,提交 b2a451a
Write a markdown file to a workspace. Creates or updates the file with automatic versioning.
path必填content必填messageworkspace_id必填Read a file's content from a workspace.
file_id必填workspace_id必填List files in a workspace, optionally filtered by path prefix.
prefixworkspace_id必填Generate a share link for a workspace or specific file. Optionally email-gate the link so only a specific person can access it. Humans open this link to view, comment, or edit files.
emailfile_idmax_usesexpires_inpermission必填workspace_id必填Add a comment to a file.
body必填file_id必填line_endline_startworkspace_id必填Read human comments on a file. Use this to check if humans have left feedback.
file_id必填workspace_id必填Get recent activity in a workspace (file writes, comments, shares).
workspace_id必填Invite a human to your organization by email. They will receive a verification code to join.
roleemail必填Manage per-workspace role delegation. Assign, list, or remove access for specific emails (view/comment/edit).
emailaction必填permissionworkspace_id必填View your organization details: agents, members, plan, and usage.
無需輸入參數。
Delete a file from a workspace.
file_id必填workspace_id必填View version history for a file in a workspace.
file_id必填workspace_id必填Semantic search across your org's artifacts in AgentDrive. Returns the top-N most relevant files. Use this BEFORE writing similar artifacts to avoid duplication and surface prior context.
query必填top_kfilterworkspace_idRecall persistent facts and preferences your agents have written. In v1 this returns semantic search results across artifacts; v1.5 will narrow to auto-extracted facts (preferences, decisions, key entities).
query必填top_kLog an agent run to AgentDrive's provenance store. Captures task, status, referenced/produced artifacts, and cross-platform identity (which agent on which tool). Used for retrospective context retrieval and team-wide audit.
task必填run_idstatusmetadataduration_msartifacts_producedartifacts_referencedAuto-pull the most relevant artifacts from prior agent sessions for the task you are about to do. Combines semantic relevance with recency. Call this at the START of any non-trivial task to ground the agent in prior context — replaces manual copy-paste of artifacts between sessions.
task必填limitworkspace_idList recent agent sessions for this project across harnesses (Claude Code, Codex, OpenCode, Gemini CLI, Cursor), newest first. Use to find prior work to continue.
limitprojectplatformLoad a compact handoff brief (goal, files touched, recent turns) from a prior session, by default the latest one from a different harness, so you can continue that work.
platformmax_charssession_id[EXPERIMENTAL] Clone a git repo into a per-workspace Linux sandbox. Requires Cloudflare Containers on the AgentDrive worker; gracefully degrades to a 503 with "sandbox not configured" otherwise.
url必填depthbranchworkspace_id必填[EXPERIMENTAL] Run a shell command inside the per-workspace Linux sandbox. Captures stdout/stderr (64 KB cap), exit code, duration. Requires Cloudflare Containers; degrades to 503 otherwise.
cmd必填cwdtimeout_msworkspace_id必填[EXPERIMENTAL] Read a file from the per-workspace sandbox filesystem (build artifacts, test output, logs). Requires Cloudflare Containers; degrades to 503 otherwise.
path必填workspace_id必填[EXPERIMENTAL] Stage + commit the current sandbox worktree. Surfaces as an AgentDrive artifact at commits/<sha>.json. Requires Cloudflare Containers; degrades to 503 otherwise.
message必填author_nameauthor_emailworkspace_id必填已滿足適用檢查項的 100%
該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。
/plugin install agentdrive --marketplace Rakesh1002/agentdrive-mcpURL: https://mcp.agentdrive.sh/mcpHeader: Authorization: Bearer agentdrive_live_xxx{ "mcpServers": { "agentdrive": { "command": "npx", "args": ["-y", "@adrive/mcp-server"], "env": { "AGENTDRIVE_API_KEY": "agentdrive_live_xxx" } } }}curl -fsSL agentdrive.sh/install | shnpm installnpm run build # tsc -> dist/npm test # vitest