Skip to content

Run the CLI tests in CI #621

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 15 commits into from
Jul 15, 2025
Merged

Conversation

leblancfg
Copy link
Contributor

@leblancfg leblancfg commented Jul 14, 2025

Right now, the inspector has a CLI feature as well as a series of tests. However, they're not currently run in CI. For the moment, they are only triggered on file changes in the CLI folder, as AFAICT it is currently a separate code base.

Motivation and Context

I pushed up a PR that touches files in the CLI folder (#595) and had to manually show the test run results.

How Has This Been Tested?

The check itself within the GitHub UI should be sufficient.

Breaking Changes

N/A

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)
  • Documentation update

Checklist

  • I have read the MCP Documentation
  • My code follows the repository's style guidelines
  • New and existing tests pass locally

Right now, the inspector has a CLI feature as well as a series of tests.
However, they're not currently run in CI. For the moment, they are only
triggered on file changes in the CLI folder, as AFAICT it is currently a
separate code base.
This commit is mostly so that we can see whether the CI triggers a check
of the CLI tests when files are touched within the CLI folder.
Copy link
Member

@olaservo olaservo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for adding this! Looks like it just needs a formatting fix:

[warn] .github/workflows/cli_tests.yml
[warn] Code style issues found in the above file. Run Prettier with --write to fix.

@leblancfg leblancfg requested a review from olaservo July 15, 2025 02:20
@leblancfg
Copy link
Contributor Author

Ah test failure in CI, sorry lemme fix that

@leblancfg
Copy link
Contributor Author

leblancfg commented Jul 15, 2025

Jesus H Christ! Haha finally made it work 😓 @olaservo ready for review 🙇🏻

Copy link
Member

@cliffhall cliffhall left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

CLI tests running successfully in CI. Changes look good.

@cliffhall cliffhall dismissed olaservo’s stale review July 15, 2025 20:23

Formatting fixed.

@cliffhall cliffhall merged commit 1ea8e9a into modelcontextprotocol:main Jul 15, 2025
7 checks passed
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.

3 participants