AgentDock

1.7k
Dock Agent Api
MCP Server Setup

MCP Server Setup

Add the Dock workspace to Claude Code, Cursor, or any MCP client. Streamable HTTP transport, 38 tools across eight categories, and the SKILL.md the agent reads first.

If your agent runs in an MCP client, it already speaks the protocol. Add the Dock MCP server once and the whole workspace shows up as tools the agent can call directly: read and write documents, propose tracked changes, manage citations, browse versions, and publish.

The server uses streamable HTTP transport: it is a URL, not a local process. There is nothing to install and no stdio bridge to run. The MCP client connects directly to:

https://app.agentdock.ai/api/mcp

Add the server to your MCP client settings. The key goes in the x-api-key header.

{
  "mcpServers": {
    "agentdock": {
      "type": "http",
      "url": "https://app.agentdock.ai/api/mcp",
      "headers": {
        "x-api-key": "ak_usr_YOUR_TOKEN"
      }
    }
  }
}

This is the config for Claude Code (~/.claude.json) and the same shape works for Cursor and other MCP clients. Or let the CLI print it for you:

agentdock mcp-setup

That command outputs the JSON above with your stored token already filled in.

Every call to the server requires a valid x-api-key today. Set the header and all 38 tools, documents, citations, versions, folders, prompts, and publishing, are available.

Coming soon: a keyless tier for the prompt library. The public prompt library will be reachable without a key, so an agent can browse and pull prompts with no setup. Until it ships, keep the header on every request.

Tools are grouped into eight categories. Tool names are the exact call names an agent uses.

Documents (8)

ToolDoes
list_documentsList documents, newest first
read_documentRead content as markdown or JSON
create_documentCreate a new blank document
write_documentUpdate content by sending markdown
delete_documentPermanently delete a document
duplicate_documentCopy with a (Copy) suffix
move_documentMove to a folder or back to the root
import_web_pageImport a URL as an editable document

Publishing (2)

ToolDoes
publish_documentPublish to /p/slug with SEO metadata
unpublish_documentRevert a published page to a draft

Suggestions (4)

ToolDoes
suggest_editsPropose tracked changes by find and replace
list_suggestionsList suggestions waiting for review
accept_suggestionApply a proposed change
reject_suggestionDiscard a proposal without applying it

Folders (4)

ToolDoes
list_foldersList all folders
create_folderCreate a new folder
update_folderRename or move a folder
delete_folderDelete a folder (its documents move to the root)

Versions (2)

ToolDoes
list_versionsList version history metadata
read_versionRead a specific version

Prompts (2)

ToolDoes
list_user_promptsList personal and system prompts
get_user_promptRead a prompt by ID

Settings (1)

ToolDoes
update_document_settingsSet the citation style per document

Citations (15)

In a document:

ToolDoes
add_citationAdd a citation by DOI, URL, PMID, or arXiv ID
search_citationsSearch academic sources
list_citationsList the citations in a document
remove_citationRemove a citation from a document

Library:

ToolDoes
citation_library_listList saved citations
citation_library_saveSave a citation for reuse
citation_library_getRead a saved citation by ID
citation_library_searchFull-text search the library
citation_library_deleteDelete a saved citation
citation_formatFormat a citation in a style (preview, no save)

Collections:

ToolDoes
citation_collection_listList collections
citation_collection_createCreate a collection
citation_collection_addAdd a citation to a collection
citation_collection_removeRemove a citation from a collection
citation_collection_deleteDelete a collection

That is 8 + 2 + 4 + 4 + 2 + 2 + 1 + 15 = 38 tools.

The server ships a SKILL.md the agent reads before it writes: the constraints, the house style, the document templates, and what counts as ready to publish. So the agent knows when and how to use the tools, not just that they exist. See the Overview for what the knowledge layer covers.