anthropics / anthropics/claude-code

MCP Calls

Open
#95,383 0 comments 0 reactions 0 assignees View on GitHub
area:mcp bug platform:macos
Dominant language
Python
Stars
145k
Forks
23.1k
PR merge metrics
PR metrics pending

Description

### Preflight Checklist

- [x] I have searched [existing issues](https://github.com/anthropics/claude-code/issues?q=is%3Aissue%20state%3Aopen%20label%3Abug) and this hasn't been reported yet
- [x] This is a single bug report (please file separate reports for different bugs)
- [x] I am using the latest version of Claude Code

### What's Wrong?

Betrifft: MCP-Tool-Calls mit mehreren optionalen Parametern werfen invalid_type: expected nonoptional, received undefined, obwohl das Tool-Schema die Parameter als optional deklariert.
Zusätzlich: bei Tools mit sich gegenseitig ausschliessenden Parametern (z.B. config/python_transform bei Home-Assistant-MCP-Tools) gibt es dadurch keinen funktionierenden Wert mehr für das jeweils andere Feld — kompletter Funktionsausfall für diese Tools.
Seit wann: 15.09.2026, persistiert über Sessions/App-Neustarts.

### What Should Happen?

It should work!

### Error Messages/Logs

```shell

```

### Steps to Reproduce

Betrifft: MCP-Tool-Calls mit mehreren optionalen Parametern werfen invalid_type: expected nonoptional, received undefined, obwohl das Tool-Schema die Parameter als optional deklariert.
Zusätzlich: bei Tools mit sich gegenseitig ausschliessenden Parametern (z.B. config/python_transform bei Home-Assistant-MCP-Tools) gibt es dadurch keinen funktionierenden Wert mehr für das jeweils andere Feld — kompletter Funktionsausfall für diese Tools.
Seit wann: 15.09.2026, persistiert über Sessions/App-Neustarts.

### Claude Model

None

### Is this a regression?

Yes, this worked in a previous version

### Last Working Version

_No response_

### Claude Code Version

latest

### Platform

Anthropic API

### Operating System

macOS

### Terminal/Shell

Terminal.app (macOS)

### Additional Information

_No response_

Contributor guide

No contributing guide indexed for this repository

Research direction

The report concerns MCP tool calls in Claude Code, especially Home Assistant MCP tools using optional and mutually exclusive parameters. Start by reproducing the invalid_type error with a tool schema containing multiple optional parameters and compare it with the declared schema. Done means valid calls no longer reject undefined optional fields and the affected alternative parameters work.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
cli
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Active
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.