Skip to content

Conversation

@bocharov62-bit
Copy link

Fixes issue #25.

The JSON schema generated for tuple[str, int] in Pydantic 2 (using prefixItems) lacks an items field, which causes validation errors in some strict MCP clients (like Copilot Agent and potentially Cursor) that expect array types to always have an items property.

By changing tuple[str, int] to list[Any] (or list[str | int]), Pydantic will generate a schema with an items property, resolving the "tool parameters array type must have items" error.

This also potentially addresses issue #38 where users were unable to use port mapping functions.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant