Skip to content

Add support for Inspector configuration settings in CLI mode #330

Open
@HaiyiMei

Description

@HaiyiMei

Is your feature request related to a problem? Please describe

When using the Inspector in CLI mode, there's currently no way to configure Inspector-specific settings like MCP_SERVER_REQUEST_TIMEOUT. This limitation forces users to work with default timeout values, which may not be suitable for all use cases, especially when dealing with slower MCP servers or long-running operations.

Describe the solution you'd like

Add support for passing Inspector configuration settings in CLI mode, similar to how they can be configured in the UI.

This would allow users to customize timeout values, proxy addresses, and other Inspector settings when running in CLI mode.

Describe alternatives you've considered

  • Setting environment variables for these configurations (e.g., MCP_SERVER_REQUEST_TIMEOUT=15000)
  • Creating a global configuration file that applies to both UI and CLI modes
  • Modifying source code directly for custom timeout values (not user-friendly)

Additional context

Current Inspector configurations like MCP_SERVER_REQUEST_TIMEOUT, MCP_REQUEST_TIMEOUT_RESET_ON_PROGRESS, and others defined in configurationTypes.ts should be made accessible in CLI mode. This would provide a consistent configuration experience across both UI and CLI modes and improve usability for automation and scripting scenarios.

Metadata

Metadata

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions