Skip to main content
Glama
mcp-server-nuxt

mcp-server-nuxt

by rynx-cc

check_ssr_safety

Statically scans Nuxt code to flag SSR hazards such as browser-only globals at module scope, non-deterministic rendered values, and shared composable state without a dev server.

Instructions

Statically flag SSR hazards: browser-only globals at setup top level / module scope, non-deterministic values (Date.now / Math.random / crypto.randomUUID) rendered in templates or computed, and shared ref/reactive state in composables. 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_ssr_safety"
  }
}

Input Schema

NameRequiredDescriptionDefault
pathNoOptional file or directory to limit the scan (relative to the project root).
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
Behavior3/5

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

No annotations are supplied, so the description carries the full burden. It does disclose that the analysis is purely static and requires no dev server or prepare step, which is real behavioral context. However it never states outright that the tool is read-only/does not modify files, nor how findings are reported (severity, file/line locations), leaving meaningful gaps for a tool with zero annotation coverage.

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

Conciseness4/5

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

Front-loaded with the verb and the hazard taxonomy, then closes with the static-only constraint. Dense but every clause earns its place; the slash-heavy parentheticals make it slightly harder to parse quickly but no sentence is wasted.

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

Completeness3/5

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

There is no output schema and no annotations, so the description should say more about what a scan returns — finding structure, severity, whether zero-findings is reported. It is complete on 'what it checks' but incomplete on 'what you get back' and on any prerequisites for the project state.

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?

The two parameters (path, root) are fully documented in the schema at 100% coverage, so the schema carries the semantics. The description adds nothing about how path scoping interacts with the scan or what happens when root is omitted, so the baseline 3 is appropriate.

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

Purpose5/5

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

Names a specific verb ('statically flag') and enumerates the exact hazard classes it detects: browser-only globals at setup top level / module scope, non-deterministic values (Date.now, Math.random, crypto.randomUUID) in templates or computed, and shared ref/reactive state in composables. That enumeration distinguishes it from the other checking siblings such as check_type_errors or check_nuxt4_migration without needing to name them.

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

Usage Guidelines4/5

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

The closing sentence 'Static analysis only — no DevServer or nuxi prepare' sets a clear operating boundary, telling the agent this is a no-server, no-prepare scan. It stops short of explicit when-to-use routing against siblings, but the hazard list itself makes the applicable context obvious.

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