MCP & agents

MCP server and tools

AI agents read and extend your specifications through the Model Context Protocol (MCP). An agent works with the same access as the person whose credential it uses, and it can propose changes but never approve them.

Two ways to connect

WayForCredential
The Kstonebase MCP package, run on your computerCoding agents such as Claude Code, Cursor, Zed or Codex CLIA personal access token
The hosted endpoint https://kstonebase.com/mcpHosted LLM tools that can't run a local process, such as Claude.ai or ChatGPTA remote connector authorized in your browser

Both offer the same tools with the same names and behavior.

Set up the local package

The package is @ravitecnologia/kstonebase-mcp, an open-source package (Apache-2.0).

  1. Generate a personal access token in Settings → Developer.
  2. Copy the configuration from the Connect an MCP agent card on the same page into your agent's MCP configuration. It runs the package with npx and passes your token in KSTONEBASE_API_TOKEN.
  3. To check the token, run npx -y @ravitecnologia/kstonebase-mcp --check.

Bind a project

A .kstonebase.json file at the root of a code project names the Workspace, and optionally the Product, the agent should work in. The agent then addresses them by default in every session. The Overview of a Workspace or Product offers two starter files to download: AGENTS.md and .kstonebase.json.

  • A binding file in the older, pre-Workspace format is refused with an error that names the exact edit to make.
  • A binding never widens what the agent's credential can reach.

Warning

.kstonebase.json is plain configuration. Never put your token in it.

What an agent may do

  • List Workspaces, Products and specifications, search, and read a specification, its versions and its change history.
  • Create Products, within your plan's limit, and create specifications.
  • Start a new version of a Reviewed specification, update Draft content or a single section, request review and discard a draft.
  • Record a context entry on a specification without changing its content or version.
  • In Software Engineering Workspaces, manage Board items. This needs a credential that covers the whole Workspace.

Tool names start with a verb, for example list_products, read_specification, search_specifications, start_new_version, update_specification_content, request_review and discard_draft.

What an agent may not do

  • Approve a specification. Approval is a human decision, unless the Product Owner turned on Auto-approve agent changes. See Specification lifecycle.
  • Edit a Reviewed specification directly. The call fails with SPEC_LOCKED; the agent must call start_new_version first.
  • Go beyond its credential's scope. Anything outside the scope is answered as not found (TOKEN_SCOPE_MISMATCH).
  • Bypass plan limits. Limits apply to agents exactly as they do in the app.

Errors carry a short code and a remediation hint, for example AUTH_FAILED, TOKEN_EXPIRED, STALE_VERSION or PRODUCT_NOT_BOUND, so the agent can tell you what to fix.