GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing github.com — MCP tool schema optional fields become required in OpenCode (jira_add_comment) · Issue #20661 · anomalyco/opencode Closed Closed Copy link DescriptionDescriptionWhat happenedIn OpenCode
Expected behaviorFor
Environment
Evidence: raw MCP schema is correctDirect Jira MCP endpoint
"inputSchema": { "required": ["issue_key", "body"], "properties": { "visibility": { "type": "string", "default": null }, "public": { "type": "boolean", "default": null } } } Evidence: OpenCode behavior In OpenCode session data, actual tool calls include optional params even when not requested: { "tool": "jira_jira_add_comment", "input": { "issue_key": "xxx", "body": "Test", "visibility": "", "public": false } } This leads to validation error from MCP Jira: visibility must be a valid JSON object ... Suspected root cause OpenCode MCP tool adapter / tool registry path likely mutates or ignores optional/nullability in incoming inputSchema, causing optional fields to be treated as required (or aggressively auto-filled). ### Plugins /sooperset/mcp-atlassian ### OpenCode version 1.3.13 ### Steps to reproduce 1. Configure remote MCP Jira. 2. Ask model: write comment "Test" for task xxx 3. Observe tool call args include visibility/public despite not being requested. 4. Observe comment-add failure until fallback/workaround is used. ### Screenshot and/or share link <img width="1032" height="240" alt="Image" src="https://github.com/user-attachments/assets/65b4a771-6c6b-48b2-820c-746eef5aa8a5" /> ### Operating System Windows 11 ### Terminal _No response_ Reacted by Carlos Fontes, rupuin, Manan Vaghasiya, Paweł Chrobak, barkstone2, Ben Lei, ekisu and Björn Nilsved Activity
MetadataMetadataAssigneesLabelsNo labels TypeProjectsMilestoneRelationshipsDevelopmentIssue actions |
| You are visitor 01402775 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |