Skip to content

Conversation

@sylwia-budzynska
Copy link
Contributor

No description provided.

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR systematically adds Field descriptions to the owner and repo parameters across all MCP tool functions in the repository context module. Previously, these parameters lacked descriptions while other parameters in the same functions had them, creating inconsistency in the API documentation.

  • Adds Field descriptions for owner parameter: "The owner of the GitHub repository"
  • Adds Field descriptions for repo parameter: "The name of the GitHub repository"
  • Updates 25 MCP tool functions to include these descriptions

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@mcp.tool()
def get_entry_points(owner: str, repo: str, location: str = Field(description="The directory of the component")):
def get_entry_points(owner: str = Field(description="The owner of the GitHub repository"),
repo: str = Field(description="The name of the GitHub repository"), location: str = Field(description="The directory of the component")):
Copy link

Copilot AI Dec 3, 2025

Choose a reason for hiding this comment

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

The location parameter should be on a new line for consistency with the formatting pattern used throughout the rest of the file. Each parameter should be on its own line when a function signature spans multiple lines.

Suggested change
repo: str = Field(description="The name of the GitHub repository"), location: str = Field(description="The directory of the component")):
repo: str = Field(description="The name of the GitHub repository"),
location: str = Field(description="The directory of the component")):

Copilot uses AI. Check for mistakes.

@mcp.tool()
def get_component_potential_results(owner: str, repo: str, component_id: int):
def get_component_potential_results(owner: str = Field(description="The owner of the GitHub repository"),
Copy link

Copilot AI Dec 3, 2025

Choose a reason for hiding this comment

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

Missing space after the comma at the end of this line. For consistency with the formatting pattern used throughout the file, there should be a space after the comma before the line continuation.

Suggested change
def get_component_potential_results(owner: str = Field(description="The owner of the GitHub repository"),
def get_component_potential_results(owner: str = Field(description="The owner of the GitHub repository"),

Copilot uses AI. Check for mistakes.
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.

2 participants