{
  "name": "mcp_config_generator",
  "title": "MCP config generator",
  "description": "Writes MCP server configuration for Claude Desktop, Claude Code, Cursor, VS Code and Codex from one description of the server. Give command (and args, env) for a local server, or url (and headers) for a remote one. Returns each client's file location and paste-ready snippet.",
  "page": "https://construct.computer/tools/mcp-config-generator/",
  "endpoint": "https://construct.computer/api/tools/mcp-config-generator",
  "usage": "GET https://construct.computer/api/tools/mcp-config-generator?input=<URL-encoded JSON>, or POST the JSON as the request body.",
  "input_schema": {
    "type": "object",
    "properties": {
      "name": {
        "type": "string",
        "pattern": "^[A-Za-z0-9_-]{1,64}$",
        "description": "Server name: letters, numbers, - and _."
      },
      "command": {
        "description": "For a local server, the command to run, like npx.",
        "type": "string",
        "minLength": 1,
        "maxLength": 500
      },
      "args": {
        "maxItems": 50,
        "type": "array",
        "items": {
          "type": "string",
          "maxLength": 1000
        }
      },
      "env": {
        "description": "Environment variables for a local server.",
        "type": "object",
        "propertyNames": {
          "type": "string",
          "pattern": "^[A-Za-z_][A-Za-z0-9_]{0,99}$"
        },
        "additionalProperties": {
          "type": "string",
          "maxLength": 2000,
          "pattern": "^[^\\r\\n]*$"
        }
      },
      "url": {
        "description": "For a remote server, its HTTP URL. Leave command empty.",
        "type": "string",
        "format": "uri"
      },
      "headers": {
        "description": "HTTP headers for a remote server.",
        "type": "object",
        "propertyNames": {
          "type": "string",
          "pattern": "^[A-Za-z0-9-]{1,100}$"
        },
        "additionalProperties": {
          "type": "string",
          "maxLength": 2000,
          "pattern": "^[^\\r\\n]*$"
        }
      }
    },
    "required": [
      "name"
    ],
    "additionalProperties": false
  },
  "example_input": {
    "name": "filesystem",
    "command": "npx",
    "args": [
      "-y",
      "@modelcontextprotocol/server-filesystem",
      "/Users/you/Documents"
    ]
  },
  "example_request": "https://construct.computer/api/tools/mcp-config-generator?input=%7B%22name%22%3A%22filesystem%22%2C%22command%22%3A%22npx%22%2C%22args%22%3A%5B%22-y%22%2C%22%40modelcontextprotocol%2Fserver-filesystem%22%2C%22%2FUsers%2Fyou%2FDocuments%22%5D%7D"
}