Summary
When calling tools that accept array-typed parameters (e.g. assignees, labels, members) through the MCP wrapper, the array is forwarded to the REST API as a JSON-encoded string rather than as a native JSON array. The REST API's Pydantic schema rejects the string at the schema layer before any business logic runs.
Steps to reproduce
- Call the MCP tool to create a work item, passing assignees=["", ""].
- Observe the request reaching the REST API.
Expected request body
json{ "assignees": ["", ""] }
Actual request body
json{ "assignees": "["", ""]" }
Result
The REST API responds with a Pydantic validation error (expected list, got str). Calling the underlying REST API directly with the correct payload shape succeeds, which confirms the bug is in the MCP wrapper's serialization layer, not in the API itself.
Summary
When calling tools that accept array-typed parameters (e.g. assignees, labels, members) through the MCP wrapper, the array is forwarded to the REST API as a JSON-encoded string rather than as a native JSON array. The REST API's Pydantic schema rejects the string at the schema layer before any business logic runs.
Steps to reproduce
Expected request body
json{ "assignees": ["", ""] }
Actual request body
json{ "assignees": "["", ""]" }
Result
The REST API responds with a Pydantic validation error (expected list, got str). Calling the underlying REST API directly with the correct payload shape succeeds, which confirms the bug is in the MCP wrapper's serialization layer, not in the API itself.