Skip to content

AI Agents (MCP) & Recipes

DocuShark ships an MCP server (in the relay) — a precise, high-performance toolset that lets an AI agent author real documents for you: write prose, build diagrams, manage references, all surgically against the live document. Because MCP is an open standard, you drive it from whatever agent harness you already use — Claude.ai, Claude Code/Desktop, Codex, Cursor, ChatGPT, or your own — rather than learning a new one.

Connect your agent

New here?

For a step-by-step setup (with a picker that gives you the exact endpoint URL for your workspace), start with the Connect an AI Agent guide. This page is the deeper reference.

  1. Connect your agent to a relay's MCP endpoint (/mcp). The setup differs per client — see the connection matrix in the skills/CONNECTING.md guide. In short:
    • Claude Code / Claude Desktop and the OpenAI API / ChatGPT Developer Mode accept a bearer token.
    • claude.ai (web) currently uses OAuth-only connectors (no bearer field), so use Claude Desktop/Code there for now.
  2. Load a recipe. The skills library has ready-made workflows. On Claude they're auto-loading SKILL.md skills; on OpenAI you paste a recipe's body into a Custom GPT / system prompt.

The recipes

RecipeWhat it produces
architecture-rfcA design RFC with a system diagram.
document-codebase-moduleA module reference: prose + a component diagram.
diagram-from-descriptionA clean, auto-laid-out diagram from a description.
meeting-notes-to-docA structured, outlined document from raw notes.
research-writeupA cited research write-up — prose with a reference library and a study/design diagram.
attach-filesEmbed files (PDFs, images, datasets) into a document alongside the prose.
edit-tablesBuild and restructure prose tables (rows, columns, merges, headers).

Browse them in the repo: skills/.

The tool surface

The authoritative reference for every MCP tool (params, returns, the generate_diagram node/edge DSL, the Markdown prose contract) lives on the MCP Tool Reference page. Recipes target that surface; write your own against it the same way. The REST/WS wire spec is on the REST API Reference page alongside it.

Note: MCP writes target relay documents (local documents are read-only over MCP), and shape styling is set inline per shape — saved style profiles are a client-side feature not exposed over MCP.

Released under the AGPL-3.0 License.