Skip to content

Sprites MCP - JSON schema formatting error #163

@lyninx

Description

@lyninx

I wanted to try out the Sprites MCP, but I wasn't able to get it working in VSCode due to a JSON parsing error. I couldn't find any documentation to rely on besides this blog post making it tricky to determine if the issue is with my configuration or with the MCP server itself.

I'm using GitHub Copilot with VSCode 1.110.1 on MacOS (arm64). I'm getting this error from Copilot after successfully completing the OAuth flow for the Sprites MCP:

Failed to validate tool mcp_sprites_policy_network_update: 
Error: tool parameters array type must have items. 
Please open an issue for the MCP server or extension which provides this tool

LLM Suggested Fix

The mcp_sprites_policy_network_update tool's input schema defines one or more parameters with "type": "array" but omits the required "items" property. Per the JSON Schema spec, an array type must include items to describe the element schema. VS Code's MCP client validates tool definitions strictly and rejects any that don't conform.

Add an "items" definition to all array-typed parameters in the mcp_sprites_policy_network_update tool schema. For example:

// Before (invalid)
{ "type": "array" }

// After (valid)
{ "type": "array", "items": { "type": "string" } }

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