Reason — MCP tools
Reason is Oka’s institutional intelligence layer. It exposes 19 tools over the Model Context Protocol that any MCP-compatible client can call — Claude Desktop, Claude Code, Cursor, Windsurf, VS Code Copilot, Codex, Cline, Zed, Amazon Q, Continue.dev, JetBrains, Hermes, and any other MCP client.
Auth tools (2)
| Tool | Purpose |
|---|---|
login | Authenticate via browser — opens id.oka.so, stores token locally |
whoami | Check current authentication status |
No API key needed in your config. Just connect and call login to
authenticate. See authentication details.
Write tools (7)
Agents emit structured friction events as they work:
| Tool | Purpose |
|---|---|
observe | Record a fact, pattern, or friction point |
decision | Capture a choice with rationale and alternatives |
explore | Record findings from investigating a codebase area |
deviation | Note where reality diverged from the plan |
done | Mark a task as complete with outcome signals |
learning | Distill an insight worth remembering across sessions |
feedback | Report whether a learning was useful (trains ranking) |
Every event is attributed, timestamped, and linked to a workspace. Full write tools reference →
Read tools (10)
Query accumulated organizational intelligence:
| Tool | Purpose |
|---|---|
context | Ranked institutional knowledge for a topic (flagship) |
learnings | Browse by category, status, confidence |
decisions | Query the organizational decision log |
patterns | Surface recurring behaviors across sessions |
semantic_search | Free-text vector search |
suggest | Evidence-ranked backlog suggestions |
backlog | Auto-generated PBIs from friction patterns |
priorities | Approved high-confidence work items |
consolidate | Trigger manual consolidation |
entities | Query the typed ontology graph |
Connecting a client
Any MCP-compatible client
Add Oka to your MCP config — no API key required:
{ "mcpServers": { "oka": { "command": "npx", "args": ["-y", "@oka-core/reason"] } }}Once connected, call the login tool to authenticate via your browser.
Your token is stored locally and refreshes automatically.
For headless/CI environments, set OKA_API_KEY instead:
{ "mcpServers": { "oka": { "command": "npx", "args": ["-y", "@oka-core/reason"], "env": { "OKA_API_KEY": "sk_..." } } }}Client-specific guides: Claude Code · Cursor · Windsurf · VS Code Copilot · Codex CLI · Cline · Zed · Amazon Q · Continue.dev · JetBrains · Hermes
Next steps
- Getting started — connect in 3 minutes
- Write tools — what to record and when
- Read tools — how to query organizational intelligence
@oka-core/reasonSDK reference — environment variables, configuration- Reason HTTP API — same capabilities over REST
- Cookbook — patterns for maximizing Oka’s value