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