Repository navigation
feat(mcp): add secfoo mcp serve stdio server, single-source plugin builder, and server.json - #229
Open
SriRamkunamsetty wants to merge 1 commit into
Open
SriRamkunamsetty wants to merge 1 commit into
SriRamkunamsetty wants to merge 1 commit into
Conversation
| if col == "locations" and isinstance(val, str) and val.startswith("["): | ||
| try: | ||
| val = json.loads(val) | ||
| except json.JSONDecodeError: |
This was referenced Nov 30, 2026
vsn411
requested changes
Nov 30, 2026
vsn411
left a comment
Collaborator
There was a problem hiding this comment.
Thanks, this is a strong foundation for #224. The workspace-root check, view keys never uploading, keys never appearing in tool output, and the --check drift test for generated skills are exactly what we wanted.
Before we merge (#230 and #231 are stacked on this, so they'll pick up the fixes):
- Failing test on all 4 platforms.
test_mcp_serve_cli_help_and_root_forwardinglooks for--rootin Rich-formatted help, and the color codes split the string. Invoke withenv={"NO_COLOR": "1", "TERM": "dumb"}(or strip ANSI) before asserting. - Version pins.
server.json(and the plugin/mcpb manifests in #230/#231) pin0.3.2, which is the latest on PyPI and has nomcp serve, so the MCP Registry entry would install a version that can't start. Use the release that will ship this (0.3.3), and add a test that the manifest versions equalsecfoo.__about__.__version__without the.devNsuffix, so they can't drift again. run_skillblocks the server, and the host agent can spend money with it.execute_runsis synchronous inside anasync def, so the stdio server stops answering (pings included) for the length of a run. Please:- run it with
anyio.to_thread.run_sync(or make the tool sync so FastMCP offloads it); - pass a
timeout; - add a
max_cost_usdargument with a conservative default, enforced the same way as the CLI's--max-cost. The host agent, which reads untrusted repo text, chooses when to call this tool.
- run it with
SECFOO_CLOUD_API_KEYonly works forsubmit_report. Runs started byrun_skillsync throughrunner._try_cloud_sync→cloud.load_cloud_config(), which reads onlycloud.toml. Either teachcloud.load_cloud_config()the env var (one place, so the CLI, runner and MCP server agree), or drop the env var and documentsecfoo cloud loginonly. Then_read_raw_cloud_credentialscan go, along with the use of the privatecloud._portal_origin.
Small: submit_report doesn't store overall_rating for Responsible AI reports (the runner does). Copy rai_report.overall_rating into complete_run.
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.
Part of #224
Summary
un_skill, list_findings, get_run, export_findings, cloud_status) and one MCP prompt per built-in skill from load_all_skills().
Verification
uff check . & �andit -c .bandit -ll -r src/secfoo -q -> passed.