Skip to content

Exit code for call subcommand #53

Open
@amotl

Description

@amotl

Dear Fatih,

thanks a stack for conceiving this excellent tool. We started using it within a CI pipeline to validate the CrateDB MCP Server per mcptools.sh.

While working with mcpt, we discovered the program does not provide a non-zero exit code when it calls an unknown MCP tool. That's a canonical example:

$ mcpt call unknown npx -y @modelcontextprotocol/server-filesystem ~
Error: Unknown tool: unknown

$ echo $?
0

Maybe you can do something about it, so the program can be used for validation purposes conveniently, like in our use case?

With kind regards,
Andreas.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions