Skip to content

Latest commit

 

History

History
52 lines (34 loc) · 1.78 KB

index.md

File metadata and controls

52 lines (34 loc) · 1.78 KB

Home > Reference > API Reference

API Reference

KnowStack uses MCP (Model Context Protocol) as its primary interface. All interactions happen through the MCP endpoint.

Base URL

http://localhost:3100/api/v1

Tenant Resolution

Tenant context is provided via HTTP headers on every request:

Header Required Description
x-ks-org Yes Organization slug
x-ks-project Yes Project slug
x-ks-context No JSON array of additional project configs

Endpoints Overview

Method Path Description
POST /mcp MCP JSON-RPC endpoint
GET /mcp MCP SSE endpoint

The MCP endpoint provides all document, instruction, query, and memory tools. See MCP Reference for the full tool catalog.

Method Path Description
POST /mcp/admin Admin MCP JSON-RPC endpoint
GET /mcp/admin Admin MCP SSE endpoint

The Admin MCP endpoint provides organization and project management tools. No tenant headers required. See Admin MCP Reference for details.


See Also