Exit code for `call` subcommand · Issue #53 · f/mcptools · GitHub
Skip to content

Exit code for call subcommand #53

Open

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.

Activity

  1. f commented on May 19, 2025

    @f
    Owner

    Oh you're right! I'll implement it ASAP.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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