Skip to content

MCP: 'Remove Help' resources for config volumes/labels/envs invoke wrong command #3711

@xenonnn4w

Description

@xenonnn4w

Description

In pkg/mcp/mcp.go (lines 125, 129, 133), the "Remove Help" resources for config volumes/labels/envs remove are registered with "list" instead of "config" as the first command segment:

newHelpResource(s, "Volumes Remove Help", "help for 'config volumes remove'", "list",
"volumes", "remove")
newHelpResource(s, "Labels Remove Help",  "help for 'config labels remove'",  "list",
"labels",  "remove")
newHelpResource(s, "Envs Remove Help",    "help for 'config envs remove'",    "list",
"envs",    "remove")

newHelpResource passes these args to the func CLI with --help, so reading the resource runs func list volumes remove --help (and similar) not valid commands. The actualcommands live under func config ....

Impact

MCP clients requesting these three help resources get a CLI error instead of help text. Resource URIs are also wrong (func://help/list/... vs the intended func://help/config/...).

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions