inspector/cli
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Phil Freo 77d4963b8a
Add support for --header flags in MCP Inspector CLI
- Add --header option to both wrapper CLI (cli.ts) and main CLI (index.ts)
- Support multiple headers with "HeaderName: Value" format validation
- Pass headers to HTTP and SSE transports via requestInit.headers
- Add parseHeaderPair function for proper header parsing
- Fix output truncation issue by removing forced process.exit(0)
- Update types to include headers in Args and TransportOptions

Usage: --header "Authorization: Bearer token" --header "X-Custom: value"
2025-08-14 12:10:18 -04:00
..
scripts Update test to match new server selection behavior 2025-08-07 21:02:29 +01:00
src Add support for --header flags in MCP Inspector CLI 2025-08-14 12:10:18 -04:00
package.json bump @modelcontextprotocol/sdk version to ^1.17.2 in all package.json files 2025-08-13 11:06:13 -07:00
tsconfig.json Add CLI and config file support 2025-03-10 20:19:23 -04:00