Repository navigation
action: lint a stdio server with the command input - #174
Open
abu-tahir-0 wants to merge 1 commit into
Open
abu-tahir-0 wants to merge 1 commit into
abu-tahir-0 wants to merge 1 commit into
Conversation
A repository that ships its own MCP server had no way to lint it from the Action. Setting command runs toolgauge lint instead of a scan, writes the Markdown report to the job summary, and still applies the exit code through the same gate step. SARIF upload is skipped, since lint has no SARIF report.
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
action.ymlonly knew aboutendpoint, so a repository that ships its own MCP server could not lint it in CI. Closes #146.Solution
commandinput. When set, the scan step is skipped and alintstep runstoolgauge lint --command "$COMMAND" --format markdown, writes the report to$GITHUB_STEP_SUMMARY, and records the exit code in the sameexit-codeoutput.commandtogether withendpointortargetsis refused with::error::and exit code 2 rather than silently ignoring one of them;gate,config,baseline,snapshotand SARIF upload do not apply to lint and are documented as such in the input description.steps.scan.outputs.exit-code || steps.lint.outputs.exit-code, so the job still fails on lint failures.command == ''.docs/USING.mdlists the new input.Testing
tests/harness/test_distribution.pyexecutes the lint step as the bash it is, the same way the existing tests execute the scan step:commandplusendpointyields exit code 2 and a summary saying both were given;lintcommand definition, so a typo cannot pass the test.pytest tests/harness/test_distribution.py— 14 passed.ruff check .— clean.Impact
The Action can now gate a repository's own MCP server on its tool manifest on every push, without a running endpoint.