Harden CI, restore MCP server & connector safety, add governance and locked deps - #8
Merged
CodeWithJuber merged 2 commits intoAug 11, 2026
Conversation
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.
Motivation
Description
pyproject.tomland regenerateduv.lockso the project has a single coherent build backend, pinned runtime/dev dependencies, and consistent test tooling.hub/mcp_server.pyto provide a working MCP SDKcreate_server()with strict action registry validation, tool annotations (readOnly/destructive/idempotent), bounded concurrency and deadlines, sanitized error classification, and compatibility helpers (_tools,_call_tool,_text) for older discovery codepaths.hub/base.pyandconnectors/ops/browser.pybehavior so connectors fail closed, redact secrets, validate inputs, and require explicit capabilities for sensitive actions (e.g., screenshots) underSecurityPolicy.pip-audit, CodeQL scan, Dependabot schedule, PR/issue templates,CONTRIBUTING.md,SECURITY.md,.gitignoreadditions, and MITLICENSE.action_json_schemawhere relevant.Testing
uv sync --frozen --all-groupsand confirmed environment preparation succeeded.uv run ruff format --check hub/base.py hub/mcp_server.py tests/unitanduv run ruff check hub/base.py hub/mcp_server.py tests/unitwhich passed for the curated unit suite.uv run mypyand package build withuv build, both completed without errors.uv run pytest tests/unitwhich collected 12 unit tests and reported all passing.uv export --frozen --no-dev --no-emit-project --output-file /tmp/runtime-requirements.txtthenuv run pip-audit --require-hashes --no-deps -r /tmp/runtime-requirements.txt, finding no known runtime vulnerabilities for the exported runtime set.python -m compileall -q hub connectors scriptsto ensure Python sources compile.Codex Task