-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Empty Input Schema Breaks Copilot CLI #1825
Copy link
Copy link
Closed
Labels
area:mcpMCP server configuration, discovery, connectivity, OAuth, policy, and registryMCP server configuration, discovery, connectivity, OAuth, policy, and registryarea:toolsBuilt-in tools: file editing, shell, search, LSP, git, and tool call behaviorBuilt-in tools: file editing, shell, search, LSP, git, and tool call behavior
Description
Activity
Metadata
Metadata
Assignees
Labels
area:mcpMCP server configuration, discovery, connectivity, OAuth, policy, and registryMCP server configuration, discovery, connectivity, OAuth, policy, and registryarea:toolsBuilt-in tools: file editing, shell, search, LSP, git, and tool call behaviorBuilt-in tools: file editing, shell, search, LSP, git, and tool call behavior
Describe the bug
Tools with no input parameters use an empty JSON Schema for their Input Schema. This causes Copilot CLI to reject the tool entirely and fail on any prompt when the MCP server is connected.
Error from Copilot CLI:
Affected version
0.0.365 Commit: 76d0881
Steps to reproduce the behavior
{ "type": "object", "additionalProperties": false }copilot.Result
Copilot is stuck producing this error again and again. Nothing else happens, doesn't matter what prompt to type. Only adding an input argument into the input json schema of the tool resolves the problem.
Sample (functional Input Schema)
{ "type": "object", "properties": { "dummy": { "type": "string" } }, "required": ["dummy"] }Expected behavior
Copilot doesn't have the error about MCP tool with no arguments and can continue to operate and use it.
Additional context
Seems like Copilot CLI requires every
objectschema to have apropertiesfield. An empty object schema (with onlyadditionalProperties: falseand noproperties) is rejected as invalid.