Skip to content

McpServer builder extensions result in Tool InputSchema which isn't spec compliant #342

Closed
dotnet/extensions
#6465
@PederHP

Description

@PederHP

When using the JsonSchema from AIFunction additional properties not support by MCP are present. This can break clients which expect the Tool objects to follow the spec schema fully (InputSchema does not support additional properties).

GitHub Copilot (at least some versions of it) is an example of a client which will not accept the additional properties (e.g. "title", "description"). So even a minimalist MCP Server created using the README example or SDK samples will fail with such clients.

I'll have a PR with a fix soon. Just creating this for tracking purposes.

Metadata

Metadata

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions