Skip to main content
๐Ÿค–๐Ÿง ๐Ÿ”—mcpSource: opendocs-core

MCP Integration Overview

Learn how to connect AI agents to OpenDocs using the Model Context Protocol.

1 min read162 words

MCP Integration Overview #

OpenDocs fully supports the Model Context Protocol (MCP), allowing AI agents to interact with your documentation directly.

What is MCP? #

MCP is a standard protocol for AI agents to discover and use tools and resources. OpenDocs implements MCP as a JSON-RPC 2.0 endpoint.

Endpoint #

text
POST /api/mcp
Content-Type: application/json

Available Tools #

listdocuments #

List and search documentation pages.

json
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "listdocuments",
    "arguments": {
      "query": "getting started",
      "limit": 10
    }
  }
}

getdocument #

Get a specific document by slug.

createdocument #

Create a new documentation page.

searchdocuments #

Full-text search across all documentation.

submitcontent #

Submit content for review from external sources.

ingesturl #

Fetch and ingest content from a URL.

Resources #

MCP resources provide read-only access to documentation:

  • docs://all - All published documents
  • docs://{slug} - Specific document by slug
  • docs://categories - All categories
  • docs://recent - Recently published documents