Skip to content

fix: standardize search parameter naming to 'q'#1242

Closed
soumilsuri wants to merge 1 commit into
modelcontextprotocol:mainfrom
soumilsuri:fix/1080-standardize-search-params
Closed

fix: standardize search parameter naming to 'q'#1242
soumilsuri wants to merge 1 commit into
modelcontextprotocol:mainfrom
soumilsuri:fix/1080-standardize-search-params

Conversation

@soumilsuri
Copy link
Copy Markdown

Description

This PR fixes an inconsistency in parameter naming between different search operations. Some operations were using query (specifically in SearchRepositoriesSchema) while others were using q. This caused confusion for LLMs when using these tools.

Changes

  • Changed parameter name in SearchRepositoriesSchema from query to q
  • Updated the searchRepositories() function signature to match
  • Ensures consistent naming with other search operations and GitHub's API

Testing

  • Verified schema validation works correctly with the new parameter
  • Confirmed validation fails appropriately with the old parameter name

Related Issues

Fixes #1080 (GitHub MCP Server: "q" vs "query" in parameters)

This change is a straightforward parameter naming standardization to improve consistency across the codebase.

Fix inconsistency in search parameter naming where some operations used
'query' while others used 'q'. This standardizes all search operations
to use 'q' to match GitHub's API naming convention, preventing confusion
for LLMs using the tools.
@olaservo olaservo added server-github bug Something isn't working labels Apr 18, 2025
Copy link
Copy Markdown
Member

@olaservo olaservo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A couple things:

  • This appears to be a breaking change but I don't see that called out in the description?
  • query seems more user-friendly than just q?

@cliffhall
Copy link
Copy Markdown
Member

cliffhall commented Apr 19, 2025

Deprecation Notice: Development for the github-server has been moved to GitHub in the http://github.com/github/github-mcp-server repo. PRs to github-server in this repo are no longer being merged.

@cliffhall cliffhall closed this Apr 19, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

GitHub MCP Server: "q" vs "query" in parameters

3 participants