Skip to content

MCP schema normaliser skips a tool whose parameter is anyOf [string, string[]] (DeepWiki ask_question) #841

Description

@CybotTM

Importing https://mcp.deepwiki.com/mcp on the demo (nr-llm 0.31.1) reports "ask_question" has no usable parameter schema and was skipped — the other two tools import. Its schema: repoName: {anyOf: [{type: string}, {type: array, items: {type: string}}]}, question: string. anyOf of a scalar and its array form is a common shape in public servers; the normaliser could represent it as the array form (or the first scalar) with the description carried over, rather than dropping the tool. Refusing an unrepresentable schema is ADR-161's rule and right for genuinely foreign shapes; this one is representable. Repro: tools/list against the server above.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions