Repository navigation
feat(mcp): bind entry-point audience at server startup - #546
Conversation
drevendev
left a comment
There was a problem hiding this comment.
Later-run maintainer review of b176806: inspected all five file patches, the complete adapter and bundle profile validation, AGENTS.md, and the current protected-master ruleset. Startup choice is constrained to the three existing profiles; only the entry-point command receives the non-public option, and complete mismatched evidence is rejected. Fixed-root and empty-argument tools remain unchanged. Quality CI 46726823613 and optional MCP CI 46726822930 are green; Python 3.11 log shows 1117 tests run, 10 skipped, including both new profile regression tests passing. SDK smoke still exercises the default profile, not non-public startup over stdio; that is a useful separate follow-up, not a real host or release receipt. No material blocking finding in this bounded development change. Same-account review, not independent approval; local tests not run.
Reader problem and change
The development MCP adapter currently always audits using the public audience. Add a validated startup
--profile public|private|internaloption; tools remain argument-free and the configured root is unchanged. Only the entry-point checker receives the non-public option. Reject mismatched report profiles and preserve requested audience on incomplete entry-point evidence. Keep default behavior, link checkers, SDK pin, immutable installation trial and releases unchanged. Related: #255.Verification
Added mock command/evidence regressions, real offline bundle profile checks on a synthetic README, and fixed server registration coverage. Inspected the exact committed source and read back all five blob SHAs. Local verification not run; hosted CI pending. Catalog unchanged.
Limitations
Development candidate only. No real host/model invocation or new SDK protocol acceptance is claimed. No remote visibility detection.