Remote-MCP 01: Inventory every stdio- and localhost-coupled assumption in the MCP server #930
Closed
opened 2026-07-26 00:29:18 -05:00 by jcwalker3
·
1 comment
No Branch/Tag Specified
master
docs/issue-930-remote-mcp-coupling-inventory
fix/issue-927-pytest-config
feat/issue-708-mcp-namespace-attachment
fix/issue-892-author-bootstrap-deadlock
fix/issue-686-detect-reject-manual-mcp
feat/issue-707-cross-project-boundaries
fix/issue-690-review-profile-switch-guard
fix/issue-704-prevent-env-workspace-bindings
fix/issue-700-durable-walls
fix/issue-672-mcp-config-drift
fix/issue-689-deterministic-mcp-namespace
fix/issue-678-codex-mcp-reconnect
feat/issue-649-sentry-console-correlation
feat/issue-666-concurrent-mcp-restart-tests
feat/issue-659-maintenance-drain-mode
feat/issue-648-notifications-console
fix/issue-670-direct-master-incident
feat/issue-644-console-recovery
feat/issue-650-providers-insights
feat/issue-669-scoped-component-recovery
docs/issue-668-mcp-ha-rolling-restart
feat/issue-667-console-restart-controls
feat/issue-665-restart-audit
feat/issue-664-break-glass-restart
feat/issue-645-linkage-console
feat/issue-643-request-preview-initiate
fix/issue-897-permission-stale-runtime-classification
feat/issue-641-runtime-session-view
feat/issue-663-restart-classes
feat/issue-661-drain-proof-hard-gate
fix/issue-854-semantic-container-exclusion
issue-640
fix/issue-682-starlette-httpx2
v1.1.0
Labels
Clear labels
allocator
anti-stomp
architecture
bug
chore
codex
concurrency
contamination
control-plane
dashboard
database
design
documentation
enhancement
gitea
glitchtip
important
incident
incident-bridge
integration
jenkins
labels
leases
mcp
mcp-health
mcp-menu
multi-project
mutating
nice-to-have
observability
portability
preflight
protected-branch
queue
read-only
reconnect
recovery
refactor
release
reliability
resumable-review
reviewer
roadmap
safety
security
self-hosted
sentry
stale-runtime
status:blocked
status:in-progress
status:pr-open
status:ready
terminal-lock
testing
tracker
type:bug
type:feature
type:feature
type:guardrail
visibility
workflow
workflow-hardening
workflow-hardening
Controller-owned work allocator
Prevent concurrent LLM session stomping
Architecture / structural design
OpenAI Codex client / workflow session surface
Concurrent session safety
Workflow or session contamination incident
MCP control-plane coordination and allocation authority
MCP operational dashboard/queue view
Internal coordination storage (SQLite/Postgres)
Design / investigation, no implementation
Docs / runbooks
New feature or improvement
Gitea MCP workflow
GlitchTip integration
Operational or process incident requiring durable audit trail
Sentry-to-Gitea incident bridging
Integration testing
Jenkins integration
Label taxonomy management
Lease adopt/release/expire lifecycle
MCP server / tooling
MCP namespace and runtime health
MCP menu surface
Work spanning multiple monitoring projects or Gitea repos
Mutating action; requires gating
Observability, metrics, traces, error reporting
Cross-platform / portability
Shared preflight gates before mutation
Protected branch / stable-branch policy concern
Work queue visibility and allocation
Read-only, no mutation
MCP client reconnect/reload recovery path
Recovery paths for stale/foreign leases
Code refactor / restructure
Release / versioning
Reliability / failure handling
Persist and resume prepared review verdicts across sessions
Reviewer workflow tooling
Roadmap / umbrella issue
Safety rails and fail-closed mutation guards
Security / trust boundary
Self-hosted infrastructure integration
Sentry error monitoring integration
Stale backend daemon / runtime-vs-master parity failures
Issue is blocked
Issue is being worked on
Issue has an open pull request
Issue is ready for work
Terminal review lock (#332) path
Tests / test coverage
Issue tracker hygiene / meta
Bug or defect
Feature or enhancement
Feature or enhancement
Safety gate or guardrail
Workflow state visibility for LLMs/operators
Cross-tool workflow
LLM workflow coordination hardening
LLM workflow coordination hardening
Milestone
No items
No Milestone
Projects
Clear projects
No projects
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: Scaled-Tech-Consulting/Gitea-Tools#930
Reference in New Issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Parent epic: #929.
Depends on: nothing. This is the first implementation-ready child of the epic.
Problem
The migration cannot be planned against guesses.
gitea_mcp_server.pyis roughly 23,700 lines and the stdio assumption is spread across the transport bind, the daemon provenance guard, the parity gate, the credential resolver, the worktree tools, and the lock and lease stores. Nobody currently has a list of what actually breaks when the process stops being local. Every later child in this epic needs that list to scope itself, so producing it is the blocking first step.Scope
Produce a committed inventory document,
docs/remote-mcp/coupling-inventory.md, that enumerates every place the server depends on being a local, client-spawned, stdio-attached process on the operator's machine.For each finding record: the file and line anchor, the category, what the code assumes today, what it would observe on a remote host, and which epic child owns the fix.
Categories to cover, at minimum:
bind_native_mcp_transport(transport="stdio")call and every downstream reader of the bound transport, includingassess_transport_for_auth_mint.GITEA_CLIENT_MANAGEDcheck, the stdio-pipe detection, the manual-launch refusal, the duplicate-role-process peer scan, andRECOGNIZED_GITEA_ENV_KEYS.GITEA_MCP_PROFILEand anything that treats "this process" as "this role".gitea_config.resolve_token,keychain_auth,assert_keychain_access_allowed, and any othergit credential fillpath.gitea_assess_master_parityand its startup-HEAD-versus-disk-HEAD comparison, plus every gate that consumesmutation_safe.branches/path assumptions,/tmppointer files, and the startup conflict-marker scan that walks the install directory.owner_pid_alive.Acceptance criteria
docs/remote-mcp/coupling-inventory.mdexists and is committed.Verification
Non-goals
Reviewer handoff — issue #930 → PR #940
[THREAD STATE LEDGER]
what is true now
docs(remote-mcp): inventory stdio- and localhost-coupled assumptions (#930)97bc190fc2f6da6893cd2b6613ba5b9992d3f379docs/issue-930-remote-mcp-coupling-inventorymaster7bf4f1258451823a55b36d2157e74f84571650887bf4f1258451823a55b36d2157e74f8457165088Closes #930jcwalker3, profileprgs-author, namespacegitea-authorreviewsis empty,approval_at_current_headis false, and no reviewer or merger lease is held.what changed
97bc190fc2f6da6893cd2b6613ba5b9992d3f379, adding exactly one file:status:pr-openlabel from the moment PR #940 was opened.what is blocked
master, reports mergeable with no conflicts, and requires no status checks.status:blockedlabel, by design — they depend on this inventory landing first.who/what acts next
prgs-reviewervia thegitea-reviewerMCP namespace.97bc190fc2f6da6893cd2b6613ba5b9992d3f379and record a verdict through the review API.prgs-authorprofile; do not merge PR #940; do not amend, rebase, or force-push the head branch; do not begin implementation of #931 through #939 before this PR lands on master; do not reuse any verdict taken against a head SHA other than97bc190fc2f6da6893cd2b6613ba5b9992d3f379.Canonical Issue State
STATE: implementation complete on branch
docs/issue-930-remote-mcp-coupling-inventory; PR #940 is in open state at head97bc190fc2f6da6893cd2b6613ba5b9992d3f379and is awaiting a first review verdict.WHO_IS_NEXT: reviewer
NEXT_ACTION: review PR #940 at head
97bc190fc2f6da6893cd2b6613ba5b9992d3f379from theprgs-reviewerprofile and record a verdict via the review API.BLOCKERS: none. Blocker classification: no blocker.
WHAT_HAPPENED: The author produced
docs/remote-mcp/coupling-inventory.md, an inventory of every place the MCP server depends on being a local, client-spawned, stdio-attached process on the operator's machine. It holds 62 findings across the seven categories the issue names, carrying 69 line anchors drawn from 20 distinct source files, each anchor taken against commit7bf4f1258451823a55b36d2157e74f8457165088. Every finding records the file and line, what the code assumes today, what the same code would observe on a remote host, a classification, and exactly one owning epic child. The work was committed as97bc190fc2f6da6893cd2b6613ba5b9992d3f379, pushed toprgs, and opened as PR #940 againstmaster.WHY: Epic #929 cannot be scoped against guesses. Every later child needs the list of what actually breaks when the server process stops being local, so producing that list is the blocking first step and the sole prerequisite of #931 through #939.
VALIDATION: 62 findings. 69 line anchors confirmed to resolve. 20 distinct source files cited. All 7 required categories carry at least one finding, so no category needed a no-coupling justification. All 9 epic children #931 through #939 are each named by at least one finding, and every finding names exactly one child.
Two mechanical checks were run against the tree before commit. First, every
`file.py:NNN`reference was extracted from the document and resolved against the checked-out tree: all 69 exist, all are in range, and each cited line matches the behavior its finding describes. Second, the table rows were parsed and re-tallied independently; the computed per-category, per-classification, category-by-classification, and per-child totals all equal the values printed in the document's own summary tables.Because this change adds one file and edits none, no pre-existing line number shifts between
7bf4f1258451823a55b36d2157e74f8457165088and the PR head, so every anchor stays accurate at the head under review. The remote branch head and the PR head are the identical SHA97bc190fc2f6da6893cd2b6613ba5b9992d3f379, confirmed viagit ls-remote prgs refs/heads/docs/issue-930-remote-mcp-coupling-inventory.SCOPE: documentation only. No production behavior changed. The issue's non-goals — choosing the remote transport, the credential provider, or the deployment target — are all left to later children.
RELATED_PRS: #940
LAST_UPDATED_BY: jcwalker3 (profile
prgs-author, namespacegitea-author, role author)NEXT_PROMPT: