Enhance
MCP Server

Authentication

API keys, scopes, and access control for the MCP server.

The MCP server authenticates with your Enhance instance using API keys. Keys are scoped to specific permissions and can be limited to individual projects.

Creating an API key

  1. Go to Workspace Settings > MCP
  2. Click Create API Key
  3. Copy the key immediately — it's shown only once

The key format is byg_live_<40 hex characters>. Keys are SHA-256 hashed before storage, so the raw key cannot be retrieved after creation.

Scopes

API keys use granular scopes to control which operations are permitted:

ScopeDescription
search:readSearch code, knowledge base, and issues
issues:readList and read issues
issues:writeCreate and update issues
code:readRead codebase maps and file contents
wiki:readList and read wiki pages
wiki:writeCreate and update wiki pages
dev_plans:readList and read dev plan documents
dev_plans:writeCreate and update dev plan documents

Default scopes

Keys created from the workspace settings UI include: search:read, issues:read, code:read, wiki:read.

Keys created from project settings include all scopes (read and write).

Project scoping

Keys can be:

  • Workspace-scoped — Access all projects in the workspace
  • Project-scoped — Access only specific projects

Project-scoped keys are created from the project settings page and automatically limit access to that project's data.

Key management

  • Revoke — Disabled keys are immediately rejected by the API
  • Rotate — Create a new key, update your IDE config, then revoke the old key
  • Audit — All API key usage is logged with timestamps

Security best practices

  • Use project-scoped keys when possible (principle of least privilege)
  • Rotate keys periodically
  • Don't commit keys to version control — use environment variables or .enhance.json (gitignored)
  • Revoke keys immediately if compromised