Skip to content

CLI: Arguments cannot be passed to a URL-based MCP server. #790

@hemanth

Description

@hemanth

Here’s a clear bug description you can use:


Bug Title:
npx @modelcontextprotocol/inspector fails with "Arguments cannot be passed to a URL-based MCP server" when invoking PayPal MCP

Description:
When attempting to inspect the PayPal MCP server using the @modelcontextprotocol/inspector CLI with a URL endpoint and headers, the command fails with the following error:

Arguments cannot be passed to a URL-based MCP server.
Arguments cannot be passed to a URL-based MCP server.

Failed with exit code: 1

This prevents usage of the MCP inspector against remote URL-based MCP servers that require headers (e.g., Authorization).

Steps to Reproduce:

  1. Run the following command:

    npx @modelcontextprotocol/inspector --cli https://mcp.paypal.com/http --transport http --method tools/list --header "Authorization: Bearer <token>"
  2. Observe the error output.

Expected Behavior:
The inspector should allow passing headers and arguments when connecting to a URL-based MCP server, enabling authenticated inspection.

Actual Behavior:
Fails immediately with Arguments cannot be passed to a URL-based MCP server.

Environment:

  • @modelcontextprotocol/inspector (latest via npx)
  • Node.js version: [add your version]
  • OS: [add OS/version]

Notes:

  • The issue appears to be a limitation or bug in how the inspector handles URL-based servers combined with CLI arguments.
  • This blocks inspection of MCP servers that require authentication.

Environment (please complete the following information):

  • OS: OSX
  • Browser: ANY (CLI)

Metadata

Metadata

Assignees

Labels

cliIssues and PRs specific to cli modeenhancementNew feature request

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions