Runable v1.0.0-alpha.20
Why Runable? Docs Modules Work with AI Blog About Changelog
  • 01Why Runable?
  • 02Docs
  • 03Modules
  • 04Work with AI
  • 05Blog
  • 06About
  • 07Changelog
Vue without a fixed server runtime.
Getting Started Structure Integrations Guide MCP API
  • Getting Started Structure Integrations Guide MCP API
  • Installation
  • Client Setup
  • Tools
  • Security
  • Compatibility
  • Troubleshooting

MCP Tools

Reference for the eight read-only tools exposed by the Runable MCP server.

The server exposes eight tools backed by the target project's runable/inspector. Responses use structured JSON so an agent can reason about the result without parsing terminal output.

get_project

Returns the project root, installed Runable version, SSR mode, and resolved application paths.

Use it first to verify that the MCP server targets the correct project.

{
  "rootDir": "/work/my-app",
  "runableVersion": "1.0.0-alpha.4",
  "ssr": true,
  "paths": {
    "appDir": "app",
    "generatedDir": ".app",
    "outputDir": ".output",
    "publicDir": "public"
  }
}

get_config

Returns the resolved application directory, SSR mode, base URL, site URL, DevTools setting, default head metadata, and runtime configuration.

Private runtime values are excluded. The response contains only their key names:

{
  "runtime": {
    "public": { "apiBase": "/api" },
    "privateKeys": ["databaseUrl", "sessionSecret"]
  }
}

get_routes

Returns every route currently resolved by Runable. Each item can include its name, path, page file, parent, layout, middleware, and other statically resolved metadata.

Use it before creating a page, changing navigation, or investigating a route conflict.

get_extensions

Pass one of these values as kind:

kindReturns
layoutsRegistered layout names and files
middlewaresMiddleware names, files, and global state
pluginsPlugin names, order constraints, and dependencies
modulesLocal and package modules with their configuration keys
auto-importsComponents, composables, and globals available without imports

Example input:

{ "kind": "plugins" }

resolve_route

Pass an absolute URL path:

{ "path": "/users/42?tab=profile#details" }

The tool uses the same Vue Router matching semantics as Runable and returns the matched route, extracted params, query, and hash. A miss returns { "matched": false, "match": null }.

This tool requires a Runable Inspector version that implements resolveRoute(). Other tools remain available when an older compatible Inspector lacks this optional capability.

diagnose

Runs deterministic structural checks and returns { valid, summary, issues }. Current checks cover:

  • duplicate route names and paths;
  • routes referencing missing layouts or middleware;
  • plugins depending on missing plugins;
  • duplicate layout and middleware names.

Every issue has a stable code, a severity, a direct message, and—when available—a file, route, and suggested correction. The tool does not produce subjective style warnings.

search_api

Searches the official Runable documentation bundled with the MCP package:

{ "query": "useAsyncData", "limit": 5 }

limit defaults to 5 and accepts values from 1 to 20. Search runs locally with no embeddings, vector database, or network request. Results include the documentation version and the Runable version installed in the project so the agent can detect a mismatch.

refresh

Reloads the Inspector state after project files or configuration change:

edit project → refresh → get_routes / get_config / get_extensions

Other tools do not refresh implicitly. refresh returns { "refreshed": true } and does not return project data itself.

Refresh is read-only

refresh rebuilds the MCP server's in-memory inspection state. It does not write .app, run a production build, or start the development server.

Report an issue Edit this page
Client Setup

Connect the Runable MCP server to Codex, Claude Code, Cursor, or GitHub Copilot.

Security

Understand the Runable MCP trust boundary, secret handling, transport, and project code execution.

On this page

  • 1get_project
  • 2get_config
  • 3get_routes
  • 4get_extensions
  • 5resolve_route
  • 6diagnose
  • 7search_api
  • 8refresh
Runable

The Vue framework that brings productive conventions to any backend.

Product

  • Why Runable
  • Documentation
  • Installation
  • Integrations

Project

  • About
  • Blog
  • Changelog
  • Sponsor

Community

  • GitHub
  • Issues
  • Discussions
  • Bluesky

© 2026 Runable. Released under the MIT License.

Open source Built with Vue and Runable