Skip to content

Browse Resource in Remote Server adding additional values #537

Open
@nerealegui

Description

@nerealegui

Describe the bug

When using the MCP Remote Server and trying to browse for a Pull Request, the path: File or directory path (string, optional) is meant to be optional, but if not filled, the prNumber is placed instead, failing to browse.

Image

Reference template

Template: repo://{owner}/{repo}/refs/pull/{prNumber}/head/contents{/path*}
Parameters:
owner: Repository owner (string, required)
repo: Repository name (string, required)
prNumber: Pull request number (string, required)
path: File or directory path (string, optional)

Affected version

Please run docker run -i --rm ghcr.io/github/github-mcp-server ./github-mcp-server --version and paste the output below

Does not apply - using remote instead https://api.githubcopilot.com/mcp/

Steps to reproduce the behavior

mcp.mov

Expected vs actual behavior

Browse PR resource repo://octodemo/copilot_agent_mode-refactored-waddle/refs/pull/2 and not add additional content after

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