Skip to content

[BUG] MCP add doesn't validate command existence before adding #661

@xyz080125

Description

@xyz080125

Project

cortex

Description

MCP server can be added with nonexistent commands - error only discovered when using the server

Error Message

Debug Logs

System Information

Windows 11

Screenshots

No response

Steps to Reproduce

"Run: cortex mcp add test -- nonexistent-cmd arg1",
"Observe success message",
"Run: cortex mcp debug test",
"Observe 'Command not found in PATH'"

Expected Behavior

Should validate command exists before adding

Actual Behavior

Adds server without validation, fails later on use

Additional Context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions