Skip to main content
Glama

Gerar mcp.json

generate_cursor_config

Generates JSON configuration for Cursor and VS Code to connect a stdio MCP server, using a server name and optional entry file.

Instructions

Gera o JSON para ligar um servidor stdio no Cursor (.cursor/mcp.json) e no VS Code (.vscode/mcp.json).

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

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

Input Schema

NameRequiredDescriptionDefault
nameYesNome do servidor no config
entryNoArquivo de entrada, padrão src/index.ts

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A3.5/5.0
Behavior3/5

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

With no annotations, the description carries the full behavioral burden. It usefully discloses the destination paths (.cursor/mcp.json and .vscode/mcp.json), but leaves the crucial question open: does the tool write those files or merely return the JSON text for the caller to paste? Overwrite behavior and any filesystem side effects are unstated.

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?

A single front-loaded sentence with zero filler; the parenthetical file paths earn their space by pinning down the exact outputs. Nothing is redundant or padded.

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?

For a two-parameter generator with no output schema, the definition should say what the caller receives (one JSON blob, two files, or a snippet) and whether files are actually written. Those gaps matter for a tool whose entire value is the shape of its generated artifact.

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?

Schema description coverage is 100%, with both parameters documented in the schema, so the baseline is 3. The description adds no meaning about what 'name' controls in the emitted JSON or how 'entry' shapes the generated command, but nothing is missing that the schema does not already cover.

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 gives a specific verb ('Gera') and a specific artifact (the JSON config for a stdio server), plus the exact target files in Cursor and VS Code. What is missing is differentiation from the sibling generate_mcp, which plausibly also produces MCP-related output; the agent must infer which generator covers which target.

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 only implied: an agent can infer this applies when configuring Cursor or VS Code as a client. There is no explicit when-to-use, no prerequisite statement (e.g. that a server name is required), and no routing guidance versus generate_mcp or design_mcp.

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