Skip to content

Guide: Enable Draft 2020-12 schema support for MCP in VS Code #118

@azwri

Description

@azwri

JSON Schema Draft 2020-12 Support for MCP Configuration in VS Code

Issue

When using the Firecrawl MCP server configuration in VS Code, the built-in JSON validator shows warnings about unsupported Draft 2020-12 schema features. This is because VS Code's built-in validator doesn't fully support JSON Schema Draft 2020-12.

Solution

Here's how to enable proper Draft 2020-12 support in VS Code for your MCP configuration:

1. Install Extension

JSON Schema Diagnostics

  • Open Extensions (Ctrl+Shift+X)
  • Search: prosser.json-schema-2020-validation
  • Click Install

2. Configure Workspace Settings

Create or update .vscode/settings.json in your workspace:

{
  "json.schemas": [
    {
      "fileMatch": ["**/mcp.json"],
      "url": "https://github.com/modelcontextprotocol/specification/raw/main/schema/mcp.json"
    }
  ],
  "json.validate.enable": false
}

Important: json.validate.enable: false disables the built-in validator to prevent false warnings. The installed extension handles validation properly.

3. Example MCP Configuration

Your mcp.json should work without warnings:

{
  "$schema": "https://github.com/modelcontextprotocol/specification/raw/main/schema/mcp.json",
  "servers": {
    "firecrawl-mcp": {
      "type": "stdio",
      "command": "npx",
      "args": ["-y", "firecrawl-mcp"],
      "env": {
        "FIRECRAWL_API_KEY": "YOUR_API_KEY"
      }
    }
  },
  "inputs": []
}

Results

✅ IntelliSense works correctly
✅ No warnings about unsupported schema features
✅ Real-time validation against MCP schema
✅ Proper autocomplete for Firecrawl MCP configuration

Troubleshooting

No IntelliSense? Reload VS Code window (Ctrl+Shift+P → "Developer: Reload Window")

Still seeing warnings? Verify json.validate.enable: false in your settings

Additional Context


This setup improves the developer experience when configuring Firecrawl MCP servers in VS Code.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions