feat(upstream): bundle PinchTab OpenAPI 3 spec #110

Merged
john merged 2 commits from feat/pinchtab-openapi into main 2026-11-27 14:47:39 +00:00
Owner

Bundles src/corn/specs/pinchtab.json (OpenAPI 3.0.3 for PinchTab v0.15.2) so PinchTab can be exposed via CORN_UPSTREAM_MCP_SERVERS behind Pocket ID with per-user Bearer token auth.

  • Bundled spec (src/corn/specs/pinchtab.json): 17 typed operations (health, tabsList, navigate, tabNavigate, tabClose, snapshot, tabSnapshot, text, tabText, action, tabAction, wait, find, screenshot, tabHandoff, tabHandoffStatus, tabResume).
  • Tests (tests/test_openapi_upstream.py): OpenAPI 3 validation, filter_spec check, and end-to-end pinchtab_navigate + pinchtab_snapshot (text/plain compact) round-trip verifying Authorization: Bearer ... header.
  • Docs (deploy/README.md): Documents the CORN_UPSTREAM_MCP_SERVERS snippet for https://pinchtab.yawn.dev ("prefix": "Bearer ").
Bundles `src/corn/specs/pinchtab.json` (OpenAPI 3.0.3 for PinchTab v0.15.2) so PinchTab can be exposed via `CORN_UPSTREAM_MCP_SERVERS` behind Pocket ID with per-user Bearer token auth. - **Bundled spec (`src/corn/specs/pinchtab.json`):** 17 typed operations (`health`, `tabsList`, `navigate`, `tabNavigate`, `tabClose`, `snapshot`, `tabSnapshot`, `text`, `tabText`, `action`, `tabAction`, `wait`, `find`, `screenshot`, `tabHandoff`, `tabHandoffStatus`, `tabResume`). - **Tests (`tests/test_openapi_upstream.py`):** OpenAPI 3 validation, `filter_spec` check, and end-to-end `pinchtab_navigate` + `pinchtab_snapshot` (`text/plain` compact) round-trip verifying `Authorization: Bearer ...` header. - **Docs (`deploy/README.md`):** Documents the `CORN_UPSTREAM_MCP_SERVERS` snippet for `https://pinchtab.yawn.dev` (`"prefix": "Bearer "`).
feat(upstream): bundle PinchTab OpenAPI 3 spec for per-user browser tools
Some checks failed
Corn CI / release-check-1 (pull_request) Successful in 3s
Corn CI / release-check (pull_request) Successful in 0s
Corn CI / host (pull_request) Successful in 17s
Security / scan (pull_request) Successful in 24s
Security / security (pull_request) Successful in 0s
Review / change impact (pull_request_target) Has been cancelled
Corn CI / test (pull_request) Has been cancelled
Corn CI / release (pull_request) Has been cancelled
0d9f43a11d
john force-pushed feat/pinchtab-openapi from 0d9f43a11d
Some checks failed
Corn CI / release-check-1 (pull_request) Successful in 3s
Corn CI / release-check (pull_request) Successful in 0s
Corn CI / host (pull_request) Successful in 17s
Security / scan (pull_request) Successful in 24s
Security / security (pull_request) Successful in 0s
Review / change impact (pull_request_target) Has been cancelled
Corn CI / test (pull_request) Has been cancelled
Corn CI / release (pull_request) Has been cancelled
to 27099efd4d
Some checks failed
Corn CI / release-check-1 (pull_request) Successful in 3s
Corn CI / release-check (pull_request) Successful in 0s
Corn CI / host (pull_request) Successful in 16s
Security / scan (pull_request) Successful in 27s
Security / security (pull_request) Successful in 0s
Review / change impact (pull_request_target) Has been cancelled
Corn CI / test (pull_request) Has been cancelled
Corn CI / release (pull_request) Has been cancelled
2026-11-27 14:34:06 +00:00
Compare
john force-pushed feat/pinchtab-openapi from 27099efd4d
Some checks failed
Corn CI / release-check-1 (pull_request) Successful in 3s
Corn CI / release-check (pull_request) Successful in 0s
Corn CI / host (pull_request) Successful in 16s
Security / scan (pull_request) Successful in 27s
Security / security (pull_request) Successful in 0s
Review / change impact (pull_request_target) Has been cancelled
Corn CI / test (pull_request) Has been cancelled
Corn CI / release (pull_request) Has been cancelled
to 76c39f8ea5
Some checks failed
Corn CI / release-check-1 (pull_request) Successful in 4s
Corn CI / release-check (pull_request) Successful in 0s
Corn CI / host (pull_request) Successful in 12s
Security / scan (pull_request) Successful in 31s
Security / security (pull_request) Successful in 0s
Review / change impact (pull_request_target) Has been cancelled
Corn CI / test (pull_request) Has been cancelled
Corn CI / release (pull_request) Has been cancelled
2026-11-27 14:34:48 +00:00
Compare
john force-pushed feat/pinchtab-openapi from 76c39f8ea5
Some checks failed
Corn CI / release-check-1 (pull_request) Successful in 4s
Corn CI / release-check (pull_request) Successful in 0s
Corn CI / host (pull_request) Successful in 12s
Security / scan (pull_request) Successful in 31s
Security / security (pull_request) Successful in 0s
Review / change impact (pull_request_target) Has been cancelled
Corn CI / test (pull_request) Has been cancelled
Corn CI / release (pull_request) Has been cancelled
to 94344e3504
All checks were successful
Corn CI / host (pull_request) Successful in 16s
Corn CI / release-check-1 (pull_request) Successful in 13s
Corn CI / release-check (pull_request) Successful in 0s
Security / scan (pull_request) Successful in 31s
Security / security (pull_request) Successful in 0s
Corn CI / test (pull_request) Successful in 2m39s
Corn CI / release (pull_request) Has been skipped
Review / change impact (pull_request_target) Successful in 3m4s
2026-11-27 14:35:44 +00:00
Compare

Change review · ebe0a1b09cec → 2d04e777f12d

Call paths changed by this PR

Caller → changed symbol → callee. Each edge labels the line in the caller. One detected entry path (up to 3 hops) is included when found. Static evidence, not a runtime stack trace.

After

flowchart LR
    n0["test_bundled_pinchtab_spec_is_valid_openapi_3 - added"]
    n1["filter_spec"]
    n2["load_spec"]
    n3["test_pinchtab_bearer_token_and_tool_roundtrip - added"]
    n4["upstream_mcp_servers"]
    n5["transport_factory"]
    n6["test_pinchtab_bearer_token_and_tool_roundtrip._locals_.handler - added"]
    n7["module scope - modified"]
    n0 -->|L257| n1
    n0 -->|L254| n2
    n3 -->|L290| n4
    n3 -->|L296| n5

Changed symbols:

  • added test_bundled_pinchtab_spec_is_valid_openapi_3 — tests/test_openapi_upstream.py:251
  • added test_pinchtab_bearer_token_and_tool_roundtrip — tests/test_openapi_upstream.py:261
  • added test_pinchtab_bearer_token_and_tool_roundtrip._locals_.handler — tests/test_openapi_upstream.py:264
  • modified module scope — src/corn/__init__.py:1
Overall architecture after this change

Source: 2d04e777f12d · code-review 0.1.0-dev.1.

Generated from resolved static calls between reviewed code areas. Numbers are call sites, not request counts.
Framework registration, dynamic dispatch, and unresolved calls are not shown. This is not a deployment map.
Showing 7 of 7 inter-area edges. Edit the reviewed source instead of this generated page.

flowchart LR
    n1["Console"]
    n2["Identity"]
    n3["Linked MCP"]
    n4["NSW integrations"]
    n5["Persistence"]
    n6["REST handlers"]
    n7["Server composition"]
    n8["Shared contracts"]
    n9["Shopping"]
    n5 -->|"9"| n2
    n7 -->|"5"| n6
    n7 -->|"2"| n8
    n1 -->|"1"| n4
    n1 -->|"1"| n9
    n3 -->|"1"| n2
    n7 -->|"1"| n2

This diagram is for the linked commit. It refreshes after required checks pass for a new head.

<!-- john/release:architecture-review:v1 --> # Change review · `ebe0a1b09cec` → [`2d04e777f12d`](https://code.yawn.dev/john/corn/commit/2d04e777f12d9b8c759d264590f639438fdfa755) ## Call paths changed by this PR Caller → changed symbol → callee. Each edge labels the line in the caller. One detected entry path (up to 3 hops) is included when found. Static evidence, not a runtime stack trace. ### After ```mermaid flowchart LR n0["test_bundled_pinchtab_spec_is_valid_openapi_3 - added"] n1["filter_spec"] n2["load_spec"] n3["test_pinchtab_bearer_token_and_tool_roundtrip - added"] n4["upstream_mcp_servers"] n5["transport_factory"] n6["test_pinchtab_bearer_token_and_tool_roundtrip._locals_.handler - added"] n7["module scope - modified"] n0 -->|L257| n1 n0 -->|L254| n2 n3 -->|L290| n4 n3 -->|L296| n5 ``` Changed symbols: - **added** `test_bundled_pinchtab_spec_is_valid_openapi_3` — `tests/test_openapi_upstream.py:251` - **added** `test_pinchtab_bearer_token_and_tool_roundtrip` — `tests/test_openapi_upstream.py:261` - **added** `test_pinchtab_bearer_token_and_tool_roundtrip._locals_.handler` — `tests/test_openapi_upstream.py:264` - **modified** `module scope` — `src/corn/__init__.py:1` <details><summary>Overall architecture after this change</summary> Source: [2d04e777f12d](https://code.yawn.dev/john/corn/commit/2d04e777f12d9b8c759d264590f639438fdfa755) · `code-review 0.1.0-dev.1`. Generated from resolved static calls between reviewed code areas. Numbers are call sites, not request counts. Framework registration, dynamic dispatch, and unresolved calls are not shown. This is not a deployment map. Showing 7 of 7 inter-area edges. Edit the reviewed source instead of this generated page. ```mermaid flowchart LR n1["Console"] n2["Identity"] n3["Linked MCP"] n4["NSW integrations"] n5["Persistence"] n6["REST handlers"] n7["Server composition"] n8["Shared contracts"] n9["Shopping"] n5 -->|"9"| n2 n7 -->|"5"| n6 n7 -->|"2"| n8 n1 -->|"1"| n4 n1 -->|"1"| n9 n3 -->|"1"| n2 n7 -->|"1"| n2 ``` </details> This diagram is for the linked commit. It refreshes after required checks pass for a new head.
chore(release): prepare v0.1.1-dev.6
All checks were successful
Corn CI / host (pull_request) Successful in 15s
Corn CI / release-check-1 (pull_request) Successful in 11s
Corn CI / release-check (pull_request) Successful in 0s
Security / scan (pull_request) Successful in 26s
Security / security (pull_request) Successful in 0s
Corn CI / test (pull_request) Successful in 2m42s
Corn CI / release (pull_request) Has been skipped
Review / change impact (pull_request_target) Successful in 3m37s
2d04e777f1
john merged commit 39a37f775d into main 2026-11-27 14:47:39 +00:00
john deleted branch feat/pinchtab-openapi 2026-11-27 14:47:39 +00:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
john/corn!110
No description provided.