Skip to main content
Glama
mcp-server-nuxt

mcp-server-nuxt

by rynx-cc

check_runtime_config

Statically analyze Nuxt runtimeConfig keys and useRuntimeConfig() access to report undefined, unused, or client-exposed private keys without printing values.

Instructions

Parse runtimeConfig from nuxt.config, list flattened keys with types and env vars, scan useRuntimeConfig() accesses, and report undefined/unused keys plus private keys read in client code. Never prints values. Static analysis only — no DevServer or nuxi prepare.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "check_runtime_config"
  }
}

Input Schema

NameRequiredDescriptionDefault
rootNoOptional project root override (defaults to the server project path)

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.9.1

TDQS

A3.8/5.0
Behavior4/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

With no annotations, the description carries the full burden and does add real behavioral context: it never prints values (a security-relevant guarantee), it operates purely by static analysis, and it requires no DevServer or nuxi prepare. What is missing is any statement of failure behavior on unparseable configs or whether the analysis depends on the project being installed.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Two tight sentences, front-loaded with the concrete outputs, followed by the two most important constraints (no value printing, no DevServer). Every clause carries information and nothing is padded.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a one-parameter, read-only analysis tool with no output schema, the description essentially enumerates what will be returned: flattened keys with types and env vars, undefined/unused keys, and private keys read in client code. An agent has enough to decide and call it, with only minor gaps around error and project-state assumptions.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

There is a single optional 'root' parameter whose schema description already covers 100% of its meaning (project root override, defaults to server project path). The description adds nothing about it, but the schema does the work, so the baseline of 3 applies.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description names a specific resource (runtimeConfig from nuxt.config) and concrete operations: parse, flatten keys with types and env vars, scan useRuntimeConfig() accesses, and report undefined/unused/private-in-client keys. That is far more precise than a tautology. It does not explicitly contrast itself with the nearby read_config sibling, so it stops short of 5.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Usage is implied by the analytical framing (it reports problems rather than returning config), and 'Static analysis only — no DevServer or nuxi prepare' signals a scope boundary. However, it never states when to choose this over read_config or check_ssr_safety, and gives no prerequisites or exclusions beyond the DevServer note.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.