Skip to content

Add JSON output to tool command #4

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Mar 21, 2025
Merged

Conversation

adrianlzt
Copy link
Contributor

@adrianlzt adrianlzt commented Mar 18, 2025

Fixes #3


For more details, open the Copilot Workspace session.

@adrianlzt
Copy link
Contributor Author

Example output:

❯ node --loader ts-node/esm --no-warnings=ExperimentalWarning bin/dev.js tool -j @modelcontextprotocol/server-everything add a=59 b=40
{
  "content": [
    {
      "type": "text",
      "text": "The sum of 59 and 40 is 99."
    }
  ]
}

@gavinuhma
Copy link
Collaborator

Hey @adrianlzt this looks great. Thanks!

@gavinuhma gavinuhma merged commit 3563d29 into mcpgod:main Mar 21, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

New argument to output the content in JSON
2 participants