Skip to content

[IDEA] Specify required CLI arguments in the spec #189

@danbarr

Description

@danbarr

Some MCP servers have arguments that are required to run. For example, LaunchDarkly's needs a start arg.

It would be nice to bake these into the container, since doing so at the ToolHive registry level means it's easy for users to accidentally overwrite them due to the way CLI arg handling works with thv run (args supplied with -- <args> overwrite default args from the registry, not append).

My idea is something like adding an args array to the spec...

spec:
  package: "@launchdarkly/mcp-server"
  version: "0.4.2"
  args:
    - "start"

And these would be appended to the entrypoint command in the Dockerfile. In the above example, instead of exec npx @launchdarkly/mcp-server@latest, it would be exec npx @launchdarkly/mcp-server@latest start

I think this would have to happen at the Dockyard level since I don't think the ToolHive BuildFromProtocolSchemeWithName function has this ability (or necessarily needs it, this issue aside)?

Metadata

Metadata

Assignees

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