For the complete documentation index, see /developers/llms.txt Markdown versions: append .md to any /developers/{slug} URL. Browse structure: /developers/sitemap.md This page: /developers/openapi-spec.md

New here? Start with What is Eigen Mesh? for a plain-language introduction.

OpenAPI spec

In plain terms: A standard OpenAPI file that describes Eigen Mesh's public API — the MCP endpoint your AI assistant talks to.

Eigen Mesh publishes an OpenAPI 3.1 specification at `/openapi.json`. It truthfully describes the public programmatic surface: one MCP (Model Context Protocol) endpoint that speaks JSON-RPC 2.0 over HTTP — not a REST API.

  • Spec URL (managed hosting): https://eigenmesh.xyz/openapi.json
  • Endpoint it documents: POST https://app.eigenmesh.xyz/api/mcp
  • Auth: Authorization: Bearer <MCP API key>

What the spec covers

  • The single JSON-RPC 2.0 path (/api/mcp) with tools/list and tools/call methods
  • The four public HTTP MCP tools and their real input schemas, mirrored from the tool registry:
    • capture_thought — store a raw thought
    • retrieve_thoughts — hybrid search / recent browse
    • edit_thought — natural-language edits and lifecycle changes
    • delete_thought — archive (soft-remove)
  • Bearer security scheme and the 401 / 406 error responses

Internal and admin endpoints (campaigns, admin stats, browser session routes) are intentionally not part of the public surface and are not documented in the spec.

Who this is for

  • AI agents discovering the API surface programmatically (the spec is linked from llms.txt)
  • Integrators generating typed MCP clients instead of reading prose docs

Usage

The endpoint is JSON-RPC, so generic OpenAPI REST clients are a poor fit — use an MCP client (see Connect Cursor or Claude) or post JSON-RPC payloads directly:

curl -X POST https://app.eigenmesh.xyz/api/mcp \
  -H "Authorization: Bearer $EIGEN_API_KEY" \
  -H "Content-Type: application/json" \
  -H "Accept: application/json, text/event-stream" \
  -d '{"jsonrpc":"2.0","id":1,"method":"tools/list","params":{}}'

The human-readable contract for every tool lives in MCP tools; the raw spec is the machine-readable mirror of that page.

Next steps

Agent Instructions

This documentation is published for humans and AI agents. Prefer .md URLs for structured content.

  • Index: /developers/llms.txt
  • Full export: /developers/llms-full.txt
  • Sitemap: /developers/sitemap.md
  • Raw page: append `.md` to any /developers/{slug} URL
  • Example: GET /developers/mcp-overview.md

Dynamic `?ask=` and `?goal=` query on markdown URLs is planned — see docs/planning/10-docs-query-api-design.md.