Skip to main content
Glama

generate_vscode_launch

Create a .vscode/launch.json file to configure debugging for your project by specifying project name, programming language, and entry point.

Instructions

Generates a .vscode/launch.json file for debugging.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
projectNameYes
languageYes
entryPointNo

Implementation Reference

  • The handler function that generates VSCode launch.json configuration based on project name, language (supports TypeScript/JavaScript, Python, fallback), and optional entry point.
    export function generateVSCodeLaunchHandler(args: any) {
        const { projectName, language, entryPoint } = args;
    
        let config: any;
    
        if (language === "typescript" || language === "javascript") {
            config = {
                "version": "0.2.0",
                "configurations": [
                    {
                        "type": "node",
                        "request": "launch",
                        "name": `Launch ${projectName}`,
                        "program": entryPoint || "${workspaceFolder}/dist/index.js",
                        "preLaunchTask": "Build",
                        "outFiles": ["${workspaceFolder}/dist/**/*.js"]
                    }
                ]
            };
        } else if (language === "python") {
            config = {
                "version": "0.2.0",
                "configurations": [
                    {
                        "name": `Python: ${projectName}`,
                        "type": "python",
                        "request": "launch",
                        "program": entryPoint || "${workspaceFolder}/main.py",
                        "console": "integratedTerminal"
                    }
                ]
            };
        } else {
            config = {
                "version": "0.2.0",
                "configurations": [
                    {
                        "name": `Launch ${projectName}`,
                        "type": "node",
                        "request": "launch",
                        "program": entryPoint || "${workspaceFolder}/index.js"
                    }
                ]
            };
        }
    
        return { content: [{ type: "text", text: JSON.stringify(config, null, 2) }] };
    }
  • Zod schema definition for the tool including name, description, and input parameters (projectName, language, optional entryPoint).
    export const generateVSCodeLaunchSchema = {
        name: "generate_vscode_launch",
        description: "Generates a .vscode/launch.json file for debugging.",
        inputSchema: z.object({
            projectName: z.string(),
            language: z.string(),
            entryPoint: z.string().optional()
        })
    };
  • src/server.ts:116-116 (registration)
    Tool registration in the HTTP server's toolRegistry Map.
    ["generate_vscode_launch", { schema: generateVSCodeLaunchSchema, handler: generateVSCodeLaunchHandler }],
  • src/index.ts:110-110 (registration)
    Tool registration in the main MCP server's toolRegistry Map.
    ["generate_vscode_launch", { schema: generateVSCodeLaunchSchema, handler: generateVSCodeLaunchHandler }],
Behavior2/5

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

No annotations are provided, so the description carries the full burden of behavioral disclosure. It states the tool generates a file, implying a write operation, but doesn't cover critical aspects like file overwriting behavior, permissions needed, error handling, or output format. This is a significant gap for a tool that modifies the file system.

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?

The description is a single, efficient sentence that front-loads the core action and resource. There is no wasted verbiage, making it appropriately concise and well-structured for its purpose.

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

Completeness2/5

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

Given the tool's complexity (file generation with 3 parameters), lack of annotations, 0% schema description coverage, and no output schema, the description is incomplete. It doesn't explain behavioral traits, parameter meanings, or what the tool returns, leaving the agent with insufficient context for reliable use.

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

Parameters2/5

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

The schema description coverage is 0%, so parameters are undocumented in the schema. The description adds no information about what 'projectName', 'language', or 'entryPoint' mean, their expected formats, or how they influence the generated file. It fails to compensate for the schema's lack of descriptions.

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 clearly states the verb ('Generates') and resource ('.vscode/launch.json file for debugging'), making the purpose specific and understandable. However, it doesn't distinguish this from sibling tools like 'generate_vscode_tasks' or other config generators, which would require explicit differentiation for a score 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 Guidelines2/5

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

The description provides no guidance on when to use this tool versus alternatives. It doesn't mention prerequisites (e.g., needing a VSCode project), exclusions, or comparisons to sibling tools like 'generate_vscode_tasks' or other config generators, leaving usage context unclear.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/millsydotdev/Code-MCP'

If you have feedback or need assistance with the MCP directory API, please join our Discord server