Cortex MCP server
2026년 10월 6일 커밋OpenAPI, AsyncAPI, GraphQL, gRPC, Markdown 명세로부터 인터랙티브 API 문서, 타입이 지정된 SDK, MCP server를 생성합니다.
다른 이름 cortex-docs/cortex
- 스타
- 3,294
- Tools
- —
- 다운로드, 30일
- —
- 최신 버전
- —
- 마지막 커밋
- 2026년 10월 6일
- 라이선스
- MIT
Cortex MCP란?
Cortex은(는) MCP server입니다. OpenAPI, AsyncAPI, GraphQL, gRPC, Markdown 명세로부터 인터랙티브 API 문서, 타입이 지정된 SDK, MCP server를 생성합니다.
프로젝트 README에서 생성된 요약
Cortex MCP server 정보
Cortex는 엔지니어링 팀이 API 명세를 개발자 도구로 변환할 수 있도록 지원합니다. 단일 프로젝트 설정만으로 개발자는 OpenAPI, AsyncAPI, GraphQL, gRPC, Markdown과 같은 소스에서 인터랙티브 문서, 타입 지정 SDK, MCP server를 생성할 수 있습니다. 이를 통해 팀은 정적 HTML 사이트를 통해 사람 개발자에게 정보를 제공하고, 특화된 서버 인터페이스를 통해 AI agent에게 정보를 제공하는 단일 진실 공급원(Single Source of Truth)을 유지할 수 있습니다.
사용자는 @cortex-docs/cli를 통해 cortex init, cortex generate, cortex mcp generate와 같은 명령어로 워크플로우를 관리합니다. 이 시스템은 TypeScript, Python, Go, Java, Rust, C++를 포함하여 SDK 생성에 필요한 폭넓은 프로그래밍 언어를 지원합니다. AI 통합을 위해 mcp-serve 명령어를 사용하면 저장소에 대한 공개 읽기 권한을 사용하여 클라이언트를 현재 문서와 연결할 수 있습니다. 결과물인 MCP server는 타입이 지정된 도구, 임베디드 명세, 프로젝트 문서를 제공하여 agent에게 API 환경에 대한 전체 컨텍스트를 부여합니다.
활용 사례
- 1다국어 SDK 생성단일 명세 파일로부터 다양한 프로그래밍 언어용 타입 지정 클라이언트를 생성합니다.
- 2AI agent에게 컨텍스트 제공MCP server를 통해 AI 클라이언트에 타입 지정 도구와 임베디드 API 명세를 제공합니다.
- 3인터랙티브 API 문서 구축인터랙티브 API 참조 페이지가 포함된 정적 HTML 문서 사이트를 제작합니다.
- 4문서 배포 자동화공개 GitHub repository에서 문서 사이트를 직접 게시합니다.
프로젝트의 README를 바탕으로 작성되었습니다. 모든 활용 사례는 해당 내용의 인용문과 대조하여 확인합니다.
자동 검사
2026년 11월 13일에 실행됨전체 보고서 →아직 인증되지 않았습니다. 서버는 80점 이상의 점수, 심각한 결함 없음, 그리고 검사에 충분한 데이터를 갖추어야 합니다. 검사 방식 · 점수를 높이기 위해 수정할 항목
- 소스 저장소 연결 및 접근 가능통과
- 오픈 소스 라이선스 (OSI)통과
- 최근 1년 내 커밋 또는 릴리스통과
- 패키지 이름이 인기 패키지와 유사하지 않음검사되지 않음
- 원격 엔드포인트가 HTTPS 사용검사되지 않음
- 파괴적인 도구에 라벨 표시됨검사되지 않음
- 모델에 대한 숨겨진 지침 없음통과
- 패키지 및 해당 종속성에 중요한 보안 권고 없음검사되지 않음
README
GitHub에서 보기Cortex combines OpenAPI, AsyncAPI, GraphQL, Protocol Buffer, OpenRPC, and Markdown sources. Developers get interactive documentation, applications get typed SDKs, and AI agents get an MCP server with project context.
If Cortex helps your team, star this repository to support its development.
Try Cortex in 60 seconds
Start a local demo:
mkdir petstore
cd petstore
npm install --global @cortex-docs/cli
cortex init petstore
cortex docs serve
Open http://localhost:3012. Press Ctrl+C to stop the server.
We love open source
Keep your Markdown in Git. Add cortex.config.yml to the default branch of your public GitHub repository, then run:
npx -y @cortex-docs/cli deploy https://github.com/OWNER/REPO
npx -y @cortex-docs/cli mcp-serve https://github.com/OWNER/REPO
The first command publishes a free documentation site at PROJECT.cortexdocs.dev. The second connects AI clients to current documentation through local MCP.
Deploy requires repository write access. MCP works with public read access and checks for changes before each request.
See the open source hosting guide for configuration, custom domains, automatic updates, and limits.
Features
- Generate SDKs for TypeScript, Python, Go, Java, Kotlin, Ruby, PHP, C#, Rust, C++, and C.
- Combine multiple specification files in one generated SDK.
- Generate HTTP, WebSocket, GraphQL, gRPC, and JSON-RPC clients.
- Build static HTML documentation with interactive API reference pages.
- Generate an MCP server with typed tools, embedded specifications, SDK guides, and project documentation for AI agents.
- Add Markdown pages, SDK guides, and all API specifications to the MCP server.
- Customize generated output with sparse Eta template overrides.
- Publish generated packages and MCP servers to language registries and GitHub repositories.
Unlimited specs. Multiple ways to use it.
Generate interactive docs for exploration, typed SDKs for integration, and MCP servers for AI agents.
| Task | Split toolchain | Cortex Docs |
|---|---|---|
| Configuration | Configure SDK, documentation, and MCP generators | Declare all API sources in one project configuration |
| Generation | Coordinate separate commands and output directories | Generate all configured outputs with one command |
| Customization | Maintain templates for each generator | Override only the required Eta templates |
| Publishing | Maintain a release process for each package | Review one publish plan for registries and GitHub |
| Developer interface | Keep guides separate from API references | Combine Markdown, API references, and SDK guides |
| Agent interface | Maintain MCP servers and context separately | Generate MCP servers with specifications, SDK guides, and project documentation |
Requirements
- Node.js 20 or later
- npm 10 or later
Some generated SDKs require the normal compiler or package manager for their target language.
Configuration
cortex init creates cortex.config.yml. Relative paths start from the directory that contains this file.
project: my-api
title: My API Docs
logo: ./assets/logo.svg
theme: system
primaryColor: '#ffffff'
custom_head_html: |-
<meta name="theme-color" content="#ffffff">
<link rel="stylesheet" href="/assets/custom.css">
sources:
- title: REST API
type: openapi-spec
spec: ./specs/openapi.yaml
intro: ./docs/rest.md
languages:
- language: typescript
package_name: '@my-org/my-api'
- language: python
package_name: my-api
- title: Realtime API
type: asyncapi-spec
spec: ./specs/asyncapi.yaml
languages:
- language: typescript
package_name: '@my-org/my-api'
- title: GraphQL API
type: graphql-spec
spec: ./specs/schema.graphql
endpoint: https://api.example.com/graphql
languages:
- language: typescript
package_name: '@my-org/my-api'
output:
base_dir: ./generated
docs:
- section: Get started
sources:
- title: Quickstart
document: ./docs/quickstart.md
mcp:
package_name: '@my-org/my-api-mcp'
primaryColor sets the documentation accent color as a six-digit hex value.
custom_head_html adds trusted HTML to every documentation page. This field supports metadata, stylesheets, and analytics scripts.
Store local head resources in the project assets directory. Cortex serves these files from /assets/*.
Cortex does not sanitize this value. Add only HTML that you trust.
Add ?appearance=dark or ?appearance=light to any documentation URL to select its initial appearance. The parameter takes priority over the project theme and the visitor's stored preference.
For example, /docs/quickstart?appearance=dark opens the quickstart in dark mode. The theme button can change the appearance after the page loads.
Sources that use the same language and package_name are merged into one SDK. Cortex rejects duplicate operation and type names that would make a merge ambiguous.
See the configuration reference for all fields.
Commands
| Command | Result |
|---|---|
cortex init <name> |
Create a project and sample files. |
cortex validate |
Validate the config and every API source. |
cortex generate |
Generate configured SDKs and the MCP server. |
cortex generate --language typescript |
Generate one configured language. |
cortex generate --dry-run |
Show planned output without writing files. |
cortex docs serve |
Start the development server and watch project files. |
cortex docs build --output .cortex/docs |
Build static HTML documentation. |
cortex mcp generate |
Generate only the MCP server. |
cortex publish --dry-run |
Check package publication without uploading. |
cortex publish |
Publish enabled generated packages. |
Protocol support
| Source | Generated SDK | Documentation | Generated MCP server |
|---|---|---|---|
| OpenAPI | REST clients | Interactive API reference | Callable tools and embedded specs |
| AsyncAPI | WebSocket clients | Channel and message reference | Payload-preparation tools and specs |
| GraphQL SDL | Query, mutation, and subscription clients | Operation and type reference | Callable tools and embedded schema |
| Protocol Buffer | Unary and streaming gRPC clients | Service and message reference | Embedded .proto resources |
| OpenRPC | JSON-RPC clients | Method and schema reference | Callable tools and embedded specs |
The generated MCP server does not call gRPC methods. It exposes Protocol Buffer files as MCP resources so an agent can inspect the service contract.
Production documentation
The build command exports the documentation as static HTML, CSS, JavaScript, and data files.
cortex docs build --output .cortex/docs
Deploy the output directory to a static web host. Configure the host to resolve page URLs such as /docs/quickstart to /docs/quickstart.html.
The deployed site needs no Node.js server or access to the original configuration and specifications. Rebuild the site after source changes. Use cortex docs serve for a local preview with file watching.
MCP output
cortex mcp generate --output .cortex/mcp-server
cd .cortex/mcp-server
npm install
npm run build
npm start
The generated package contains local copies of every configured specification. It also embeds configured Markdown and generated SDK README files as tools.
Packages
The release workflow publishes @cortex-docs/cli and @cortex-docs/mcp. The CLI tarball includes the internal runtime workspaces.
| Package | Distribution | Purpose |
|---|---|---|
@cortex-docs/cli |
npm | Command-line interface and project workflow |
@cortex-docs/mcp |
npm | MCP server for the Cortex documentation |
@cortex-docs/core |
Included in CLI | Configuration loader and specification parsers |
@cortex-docs/codegen |
Included in CLI | SDK generation engine and language templates |
@cortex-docs/mcp-gen |
Included in CLI | MCP server generator |
@cortex-docs/docs-ui |
Included in CLI | Documentation runtime used by the CLI |
Documentation
Contributing and security
Read CONTRIBUTING.md and DEVELOPMENT.md before you open a pull request.
Report vulnerabilities through the private process in SECURITY.md.
License
Cortex Docs is available under the MIT License.
If Cortex saves you time, give the repository a star. It helps more developers find the project.
Cortex MCP 질문
API 명세로부터 Cortex가 무엇을 생성할 수 있나요?
Cortex는 인터랙티브 문서, 다양한 언어용 타입 지정 SDK, AI agent를 위한 MCP server를 생성할 수 있습니다.
SDK 생성 시 어떤 프로그래밍 언어를 지원하나요?
TypeScript, Python, Go, Java, Kotlin, Ruby, PHP, C#, Rust, C++, C용 SDK를 생성할 수 있습니다.
생성된 MCP server가 gRPC 호출을 지원하나요?
아니요, MCP server가 gRPC 메서드를 직접 호출하지는 않습니다. 대신 Protocol Buffer 파일을 리소스로 노출하여 agent가 서비스 계약을 검사할 수 있도록 합니다.
Cortex 로컬 데모를 어떻게 시작하나요?
npm을 통해 CLI를 설치한 후, cortex init을 실행하고 cortex docs serve 명령어를 사용하면 로컬 데모를 시작할 수 있습니다.