cortex-docs/cortex

Cortex - Generates interactive API documentation, typed SDKs, and MCP servers from OpenAPI, AsyncAPI, GraphQL, gRPC, OpenRPC, and Markdown.

What it solves

Cortex simplifies the process of creating developer tools from API specifications. Instead of using separate toolchains for documentation, SDKs, and AI agent interfaces, it provides a single configuration to generate all three simultaneously, ensuring consistency across different API protocols.

How it works

Cortex parses multiple API specification formats—including OpenAPI, AsyncAPI, GraphQL, gRPC (Protocol Buffers), and OpenRPC—along with Markdown files. Based on a cortex.config.yml file, it generates:

  • Typed SDKs: Clients for various languages (TypeScript, Python, Go, Java, etc.) and protocols (HTTP, WebSocket, GraphQL, gRPC, JSON-RPC).
  • Interactive Documentation: Static HTML sites that combine API references with custom Markdown guides.
  • MCP Servers: Model Context Protocol servers that provide AI agents with typed tools, embedded specifications, and project documentation.

Who it’s for

It is designed for developers and API providers who need to maintain up-to-date SDKs and documentation for their users while also making their APIs accessible to AI agents.

Highlights

  • Multi-protocol support: Handles REST, WebSockets, GraphQL, gRPC, and JSON-RPC from a single project.
  • Broad language coverage: Generates SDKs for 12 different languages, including Rust, C++, and Kotlin.
  • AI-ready: Automatically creates MCP servers to give AI agents direct access to API contracts and documentation.
  • Unified workflow: One command to validate, generate, and publish all outputs to registries or GitHub.

Related

  • Project
  • Project
  • Project
  • Project
  • Project