Repository navigation
[3955 by GPT-6.2 Sol] Extensions: local MCP servers from PyPI packages ("Local package (PyPI)"), pinned and hash-checked like npm - #3958
Conversation
Implemented Local package (PyPI) in Settings. Check shows the exact version, SHA-256 hash, and console script. Saving pins the package and its dependencies. The worker verifies every wheel through PyPI-only egress and fills a cold cache before launching the task container. Updated the docs and regenerated OpenAPI and `@propr/client` types. The live smoke test called `get_current_time` from a pinned PyPI server through the issue-task launch harness and checked configurations for all six supported runtimes. It used host CPython because Docker was unavailable. The Settings browser tests, API tests, and type checks passed. Acceptance criteria - AC1: met — `agent-extensions-forms.pw.ts` checks and saves the server, and `extensionPackageServers.test.ts` calls its live MCP tool through the issue-task harness. - AC2: met — `agent-extensions-forms.pw.ts` and `extensionPackageRoutes.test.ts` reject ranges, tags, URLs, and VCS references. - AC3: met — `extensionPackageServers.test.ts` verifies that a bad dependency hash produces `package_integrity_mismatch` in the task event. - AC4: met — `extensionPackageInstallEgress.test.ts` verifies that the PyPI proxy rejects other hosts and non-public addresses. - AC5: met — `pypiPackageRegistry.test.ts` verifies that source-only packages and dependencies are refused by name. - AC6: met — Existing npm checks, installs, launches, and integrity tests pass in `extensionPackageServers.test.ts`. - AC7: met — `extensionPackageServers.test.ts` verifies both opt-out labels, the eight-server limit, and write-capability gating for PyPI. ProPR-Agent: codex/gpt-6.2-sol
|
CI failed: Validate unsigned linux-x64 package, Validate unsigned linux-arm64 package Please investigate and fix these CI failures.
Failure evidence
Failure evidence
|
|
✅ Applied the requested follow-up changes in commit 2462276 Summary of ChangesFixed the dependency audit that blocked both unsigned Linux package jobs. The lockfile now resolves Both CI audit commands passed locally, along with a clean Review digestRisk-tiered paths
Diff size: 1 file changed, +39/−12 lines 🤖 Implementation Details
Undo Changes • View Task Execution 💡 ProPR Slash Commands
🤖 Generated by ProPR |
Fixed the dependency audit that blocked both unsigned Linux package jobs. The lockfile now resolves `cross-spawn` to 7.1.2, `engine.io` to 6.6.13, and both React Router packages to 7.18.7. [GitHub Actions failure](https://github.com/integry/propr/actions/runs/46619336296/job/142545709208) Both CI audit commands passed locally, along with a clean `npm ci` and 28 focused tests. The full GitHub Actions packaging job has yet to rerun. PR: #3958 Comment by: @propr-dev[bot] (ID: 7307164214) Model: GPT-6.2 Sol ProPR-Agent: codex/gpt-6.2-sol
Checks FailedValidation failed during setup, tests, CLI packaging, linting, or build checks. View Logs |
|
CI failed: Validate Changes Please investigate and fix this CI failure.
Failure evidence
|
|
✅ Applied the requested follow-up changes in commit 5f7b5d0 Processed 2 comments:
Summary of ChangesFixed the API lint with zero warnings, the API build, OpenAPI validation, and the client contract check all passed locally. Review digestRisk-tiered paths
Diff size: 1 file changed, +1/−3 lines 🤖 Implementation Details
Undo Changes • View Task Execution 💡 ProPR Slash Commands
🤖 Generated by ProPR |
Fixed the `Validate Changes` lint failure for PR #3958. Reformatting the single-field `DemoModeStatus` schema in [schemas.ts](/home/node/workspace/packages/api/openapi/schemas.ts:141) brought the file within ESLint’s 400-line limit. API lint with zero warnings, the API build, OpenAPI validation, and the client contract check all passed locally. PR: #3958 Comment by: @github-actions[bot] (ID: 7307441648) Comment by: @propr-dev[bot] (ID: 7307442435) Model: GPT-6.2 Sol ProPR-Agent: codex/gpt-6.2-sol
|
CI failed: CodeQL Please investigate and fix this CI failure.
Failure evidence
|
|
✅ Applied the requested follow-up changes in commit 0910767 Summary of ChangesFixed the SSRF finding by separating registry request paths from connection destinations. Public registry requests connect directly to a vetted IP while preserving the original hostname for HTTP and TLS. npm mirror requests use the operator-configured destination. packageRegistry.ts The local CodeQL run returned zero findings for the reported rule. Core lint, TypeScript checks, 14 focused tests, and live npm and PyPI lookups passed. The opt-in PyPI install-and-launch test was skipped. Review digestRisk-tiered paths
Diff size: 1 file changed, +24/−12 lines 🤖 Implementation Details
Undo Changes • View Task Execution 💡 ProPR Slash Commands
🤖 Generated by ProPR |
Fixed the SSRF finding by separating registry request paths from connection destinations. Public registry requests connect directly to a vetted IP while preserving the original hostname for HTTP and TLS. npm mirror requests use the operator-configured destination. [packageRegistry.ts](/home/node/workspace/packages/core/src/extensions/packageRegistry.ts:41) The local CodeQL run returned zero findings for the reported rule. Core lint, TypeScript checks, 14 focused tests, and live npm and PyPI lookups passed. The opt-in PyPI install-and-launch test was skipped. PR: #3958 Comment by: @propr-dev[bot] (ID: 7307799191) Model: GPT-6.2 Sol ProPR-Agent: codex/gpt-6.2-sol
|
/review |
|
✅ AI Code Review Complete requested by @integry Posted 1 review: |
🔍 AI Code Review — codex:gpt-6-astraOverall EvaluationThe PR implements PyPI resolution, dependency locking, verified installation, and Python launch through the existing MCP bridge. It needs changes before merge because it rejects previously valid npm configurations and inconsistently handles normalized PyPI names. ✅ Pinned dependency integrity — ✅ Restricted installation egress — Acceptance criteria:
Current-head checks report 39 passed and no failures. This review is static; no commands were run. The supplied original objective is truncated, so assessment is limited to its visible requirements and the complete acceptance criteria. Merge blockersEvery finding below was introduced by this PR and must be resolved before merging. F1: 🔴 AC6: Preserve existing npm environment configurations
F2: 🔴 Normalize PyPI names during executable selection
SuggestionsThese are optional follow-ups and are not sent to S1: 🟢 Make lifecycle coverage independent of live PyPIThe comprehensive PyPI lifecycle test is skipped unless S2: 🟢 Separate unrelated dependency updates
ScoreThe implementation has substantial integrity and egress protections, and current checks pass. Two localized compatibility defects still require correction before merge. Score: 6/10 🤖 Review Details
Copy and edit to choose records from this review: 🤖 Review by ProPR |
|
/fix all |
|
✅ Applied the requested follow-up changes in commit 99c827b
Summary of ChangesAddressed F1, F2, S1, and S2 for PR #3958.
Verification passed for 19 focused server tests, 16 UI and tooling tests, six Chromium tests, TypeScript, and OpenAPI. The opt-in live PyPI test was skipped. Captured a Settings preview of the successful npm edit. Review digestRisk-tiered paths
Diff size: 7 files changed, +264/−16 lines Visual previewnpm server saved with existing variablesSettings confirms an edit to an npm server that already uses PYTHONPATH and a saved UV_TOKEN. 🤖 Implementation Details
Undo Changes • View Task Execution 💡 ProPR Slash Commands
🤖 Generated by ProPR |
Addressed F1, F2, S1, and S2 for PR #3958. - **F1** — npm servers can keep their existing plain and secret environment variables when saved through Settings or the API. Python-specific restrictions apply only to PyPI servers. - **F2** — Check and launch use the same normalized PyPI project name to select the default console script. A regression covers an aliased project with multiple scripts. - **S1** — Routine tests now cover PyPI pinning, launch through the stdio bridge, refusal on a dependency hash mismatch, and write and opt-out gating using offline fixtures. - **S2** — The lockfile updates already sit in standalone commit `246227623` to unblock the Linux packaging audits. The nested `ws` pin satisfies the new `engine.io` dependency range. I kept those pins, and both dependency audits passed. Verification passed for 19 focused server tests, 16 UI and tooling tests, six Chromium tests, TypeScript, and OpenAPI. The opt-in live PyPI test was skipped. Captured a Settings preview of the successful npm edit. PR: #3958 Comment by: @integry (ID: 7311087851) Model: GPT-6.2 Sol ProPR-Agent: codex/gpt-6.2-sol
|
/review |
|
✅ AI Code Review Complete requested by @integry Posted 1 review: |
🔍 AI Code Review — codex:gpt-6-astraOverall EvaluationThe PR implements PyPI package selection, dependency locking, hash-checked installation, and Python launch through the existing MCP bridge. No merge-blocking defect was verified in the supplied diff. Merge readiness is conditional on completion of the pending checks. ✅ Pinned artifacts — ✅ Shared execution controls — PyPI servers use the existing package preparation and bridge paths. Added tests cover tool calls, integrity refusal, label opt-outs, and write-capability gating. Acceptance criteria, assessed statically against the supplied implementation and tests:
This was a static review; no commands or tests were run. The supplied original objective contains a truncation notice, so assessment of requirements beyond the visible objective and explicit acceptance criteria is limited. Current checks report zero failures and 23 pending; the historical lint failure is not treated as current. Merge blockersNo merge blockers. SuggestionsThese are optional follow-ups and are not sent to S3: 🟢 Make limit coverage deterministicThe PyPI eight-server-limit assertion resides inside the live test gated by S4: 🟢 Clarify ecosystem-specific variable restrictions
S5: 🟢 Separate unrelated dependency updates
ScoreThe implementation addresses all seven explicit criteria with substantial targeted coverage and no verified blocker. Confidence remains bounded by static review and pending checks. Score: 8/10 🤖 Review Details
Copy and edit to choose records from this review: 🤖 Review by ProPR |
|
❌ Failed to resolve merge conflicts from System-triggered merge conflict resolution |
|
/merge |
|
🔀 Resolved merge conflicts from Conflicting Files
Resolution SummaryResolved all six merge conflicts for PR #3958. A workspace-wide scan found no remaining merge conflict markers.
Verification: TypeScript syntax checks, the root type check, Dockerfile parsing, and Git still lists the six files as unmerged because the worktree’s read-only filesystem prevented Git from creating 🤖 Resolution Details
System-triggered merge conflict resolution |
Automatically resolved merge conflicts after merging target branch into PR branch. Resolved conflicts in: - docker/Dockerfile.app.prod - docker/Dockerfile.node - packages/api/Dockerfile.prod - packages/api/routes/extensionProfileRoutes.ts - packages/core/src/extensions/extensionProfileStore.ts - packages/core/test/extensionPackageServers.test.ts PR: #3958 Model: GPT-6.2 Sol
|
🔀 Auto-merged No conflicts were found — the merge was verified by an AI agent. 🤖 Verification Details
System-triggered merge conflict resolution |
|
/review |
|
✅ AI Code Review Complete requested by @integry Posted 1 review: |
|
CI failed: Validate Changes Please investigate and fix this CI failure.
Failure evidence
|
Checks FailedValidation failed during setup, tests, CLI packaging, linting, or build checks. View Logs |
🔍 AI Code Review — codex:gpt-6-astraOverall EvaluationThe PR adds PyPI package validation, dependency locking, hash-checked installation, and Python console-script launching through the existing extension bridge. No merge-blocking defect was verified in the supplied code. Merge readiness remains blocked by the three cancelled current-head checks; 19 checks are pending. This was a static, read-only review; no commands or tests were run. The original issue description is explicitly truncated, so requirements beyond the visible objective and acceptance criteria could not be assessed. ✅ Persistent artifact pins — Server-owned dependency locks replace client input, and cache authentication includes the dependency-lock digest. ✅ Shared extension controls — PyPI servers use the existing selection, write gating, read-only mounts, and tool-filtering bridge. Acceptance criteria, assessed from implementation and supplied tests:
The Docker, shared-contract, generated-client, and documentation changes fit the feature’s scope. No unnecessary abstraction or duplicated implementation was established from the supplied context. Merge blockersNo merge blockers. SuggestionsThese are optional follow-ups and are not sent to S6: 🟢 Exercise the shipped runtimeThe ordinary PyPI integration fixture substitutes S7: 🟢 Clarify remote runtime supportDocument that PyPI currently requires a runtime with bind mounts. The supplied S8: 🟢 Scope environment-variable documentationIn ScoreThe implementation addresses the visible acceptance criteria with substantial targeted coverage and no verified code blocker. The three cancelled current-head checks prevent a merge-ready assessment; runtime verification was limited to static inspection. Score: 7/10 🤖 Review Details
Copy and edit to choose records from this review: 🤖 Review by ProPR |
|
✅ Applied the requested follow-up changes in commit a67f1df Processed 2 comments:
Summary of ChangesFixed the Validate Changes failure on PR #3958. Three Core and API files exceeded ESLint’s 400-line limit, and CI treats lint warnings as failures. All three now pass with zero warnings. Both packages build locally, all 61 focused tests pass, and the OpenAPI and client contract checks confirm the generated API files are unchanged. Review digestRisk-tiered paths
Diff size: 3 files changed, +12/−18 lines 🤖 Implementation Details
Undo Changes • View Task Execution 💡 ProPR Slash Commands
🤖 Generated by ProPR |
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Fixed the **Validate Changes** failure on PR #3958. Three Core and API files exceeded ESLint’s 400-line limit, and CI treats lint warnings as failures. All three now pass with zero warnings. Both packages build locally, all 61 focused tests pass, and the OpenAPI and client contract checks confirm the generated API files are unchanged. PR: #3958 Comment by: @propr-dev[bot] (ID: 7314173723) Comment by: @github-actions[bot] (ID: 7314176320) Model: GPT-6.2 Sol ProPR-Agent: codex/gpt-6.2-sol
Checks FailedValidation failed during setup, tests, CLI packaging, linting, or build checks. View Logs |
|
CI failed: Validate Changes Please investigate and fix this CI failure.
Failure evidence
|
|
✅ Applied the requested follow-up changes in commit 0b4a6cf Processed 2 comments:
Summary of ChangesFixed the Validate Changes build failure in schemas.ts. Both OpenAPI helpers now register schemas directly with Zod, resolving the TypeScript errors while preserving their return types. The Core Source and API builds passed locally, both lint checks passed with zero warnings, and all 22 focused OpenAPI tests passed. The generated OpenAPI spec and client contract also passed validation. There was no visible UI change. Review digestRisk-tiered paths
Diff size: 1 file changed, +5/−3 lines 🤖 Implementation Details
Undo Changes • View Task Execution 💡 ProPR Slash Commands
🤖 Generated by ProPR |
Fixed the **Validate Changes** build failure in [schemas.ts](/home/node/workspace/packages/api/openapi/schemas.ts). Both OpenAPI helpers now register schemas directly with Zod, resolving the TypeScript errors while preserving their return types. The Core Source and API builds passed locally, both lint checks passed with zero warnings, and all 22 focused OpenAPI tests passed. The generated OpenAPI spec and client contract also passed validation. There was no visible UI change. PR: #3958 Comment by: @github-actions[bot] (ID: 7314604740) Comment by: @propr-dev[bot] (ID: 7314605567) Model: GPT-6.2 Sol ProPR-Agent: codex/gpt-6.2-sol

AI Implementation Summary
Closes #3955
Branch:
3955/gpt-6.2-sol-extensions-local-mcp-serv-20261201-0911-c8hCommits: ✅ Changes committed (64d9b65)
AI Processing Completed
Execution Details:
Summary:
Implemented Local package (PyPI) in Settings. Check shows the exact version, SHA-256 hash, and console script. Saving pins the package and its dependencies. The worker verifies every wheel through PyPI-only egress and fills a cold cache before launching the task container. Updated the docs and regenerated OpenAPI and
@propr/clienttypes.The live smoke test called
get_current_timefrom a pinned PyPI server through the issue-task launch harness and checked configurations for all six supported runtimes. It used host CPython because Docker was unavailable. The Settings browser tests, API tests, and type checks passed.Acceptance criteria
agent-extensions-forms.pw.tschecks and saves the server, andextensionPackageServers.test.tscalls its live MCP tool through the issue-task harness.agent-extensions-forms.pw.tsandextensionPackageRoutes.test.tsreject ranges, tags, URLs, and VCS references.extensionPackageServers.test.tsverifies that a bad dependency hash producespackage_integrity_mismatchin the task event.extensionPackageInstallEgress.test.tsverifies that the PyPI proxy rejects other hosts and non-public addresses.pypiPackageRegistry.test.tsverifies that source-only packages and dependencies are refused by name.extensionPackageServers.test.ts.extensionPackageServers.test.tsverifies both opt-out labels, the eight-server limit, and write-capability gating for PyPI.Review digest
Acceptance criteria (7 of 7 met, as stated by the agent)
A pure-Python MCP server pinned to an exact PyPI version can be added in Settings, passes **Check**, and its tools are callable by the agent in an issue task.—agent-extensions-forms.pw.tschecks and saves the server, andextensionPackageServers.test.tscalls its live MCP tool through the issue-task harness.A range, tag, URL or VCS reference is rejected by the form and by the API.—agent-extensions-forms.pw.tsandextensionPackageRoutes.test.tsreject ranges, tags, URLs, and VCS references.An install whose artifacts do not match the stored hashes is refused and the task reports why.—extensionPackageServers.test.tsverifies that a bad dependency hash producespackage_integrity_mismatchin the task event.An install never contacts a host other than PyPI's.—extensionPackageInstallEgress.test.tsverifies that the PyPI proxy rejects other hosts and non-public addresses.A package that needs a source build is refused with a message naming it.—pypiPackageRegistry.test.tsverifies that source-only packages and dependencies are refused by name.Existing npm package servers behave exactly as before.— Existing npm checks, installs, launches, and integrity tests pass inextensionPackageServers.test.ts.`disable-mcps` and `disable-extensions` labels, the per-run limit of 8 servers and write-capability gating apply to PyPI servers too.—extensionPackageServers.test.tsverifies both opt-out labels, the eight-server limit, and write-capability gating for PyPI.Risk-tiered paths
docker/Dockerfile.app.prod(+6/−2)docker/Dockerfile.node(+4/−0)packages/api/Dockerfile.prod(+5/−1)packages/api/openapi/clientTypes.ts(+2/−1)packages/api/openapi/routeDocsSystem.ts(+3/−1)packages/api/openapi/schemas.ts(+4/−2)packages/api/routes/extensionProfileRoutes.ts(+10/−4)packages/client/src/generated/apiTypes.ts(+54/−2)packages/core/src/extensions/extensionErrors.ts(added, +6/−0)packages/core/src/extensions/extensionPackageLibrary.ts(+33/−10)packages/core/src/extensions/extensionProfileStore.ts(+3/−2)packages/core/src/extensions/packageCache.ts(+64/−34)packages/core/src/extensions/packageInstallEgress.ts(+30/−13)packages/core/src/extensions/packageLaunch.ts(+22/−7)packages/core/src/extensions/packageRegistry.ts(+6/−3)packages/core/src/extensions/pypiPackageInstall.ts(added, +139/−0)packages/core/src/extensions/pypiPackageRegistry.ts(added, +129/−0)packages/core/src/network/egressProxy.ts(+4/−1)packages/shared/src/extensionLibrary.ts(+12/−4)packages/shared/src/extensionPackages.ts(+40/−21)propr-ui/src/api/extensionProfilesApi.ts(+10/−3)propr-ui/src/pages/SettingsPage/extensions/ExtensionPackageFields.tsx(+9/−10)propr-ui/src/pages/SettingsPage/extensions/ExtensionServerForm.tsx(+7/−5)propr-ui/src/pages/SettingsPage/extensions/extensionValidation.ts(+6/−5)propr-ui/src/pages/SettingsPage/extensions/libraryEdits.ts(+4/−4)propr-ui/src/pages/SettingsPage/extensions/packageServerUi.ts(+8/−6)docs/docs/features/agent-extensions.md(+33/−23)docs/static/openapi/propr-api.yaml(+335/−107)packages/api/test/extensionPackageRoutes.test.ts(+8/−2)packages/core/test/extensionPackageInstallEgress.test.ts(+26/−0)packages/core/test/extensionPackageServers.test.ts(+77/−7)packages/core/test/pypiPackageRegistry.test.ts(added, +92/−0)propr-ui/e2e/agent-extensions-forms.pw.ts(+50/−0)Diff size: 33 files changed, +1,241/−280 lines
View task for the run's logs and conversation.
This PR was created automatically by ProPR after processing issue #3955.
💡 Need changes?
Comment on this PR to request refinements — the AI agent monitors comments and will update the implementation based on your feedback. Keep iterating until you're satisfied!
Visual preview
PyPI package server in Settings
The Add server form after checking the pinned mcp-server-time release. It shows the resolved console script and SHA-256 hash.
Full-size original