Skip to content

Query must include 'is:issue' or 'is:pull-request' on search_issues #462

Open
@raffaeler

Description

@raffaeler

Describe the bug

Every time the search_issues in invoked I get this "error" (Query must include 'is:issue' or 'is:pull-request').
Anyway, the request goes on and the answer contains the results.

ModelContextProtocol.Client.McpClient[145193555]
      stdio-docker request failed for method 'tools/call': failed to search issues: GET https://api.github.com/search/issues?order=desc&page=1&per_page=1&q=AssemblyLoadContext+repo%3Adotnet%2Fruntime&sort=comments: 422 Query must include 'is:issue' or 'is:pull-request' [] (-32603).

A clear and concise description of what the bug is.

Affected version

{"name":"github-mcp-server","version":"v0.4.0"}' capabilities: '{"logging":{},"resources":{"subscribe":true,"listChanged":true},"tools":{"listChanged":true}}'

Steps to reproduce the behavior

I can see the error just because I log all the traffic, otherwise standard MCP clients normally don't bother about errors that are not blocking.
The query is "AssemblyLoadContext" on the dotnet/runtime repository.
While the repo may be not the best value passed to the mcp server (it's the LLM creating it), the error does not depend on it.

Expected vs actual behavior

The error should not occur even if it is not blocking.

Metadata

Metadata

Assignees

No one assigned

    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