Repository navigation
Add read-only local MCP session discovery - #57
Conversation
|
Warning Review limit reached
Reviews can continue after your included limit without a manual trigger. An admin must approve usage-based billing. Next included review available in 37 minutes. View limit detailsLimit details: You’ve used all 2 included reviews currently available. Your 68 included PR review attempts over the past 7 days set your current allowance at 2 reviews per hour. The included review limit has been reached and this organization has disabled usage-based review continuation. Wait for reviews to reset or ask a billing admin to change After included review limits. Review configuration: ⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Team Run ID: 📒 Files selected for processing (6)
Comment |
|
@codex review |
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
Codex Review: Didn't find any major issues. Can't wait for the next one! Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@codex address that feedback". |
Change
Add
polymorfa_session_listto the local stdio MCP server as a bounded read-only discovery tool. It requires an explicit project UUID and the selected CLI organization API key withsessions:read. It uses the typed SDK and returns session ID, name, stored status and test-mode flag, plus safe request metadata. Phone numbers, message data, credentials and the raw API response are excluded. Project tokens do not silently fall back to an active API-key profile; errors return generic text so upstream response bodies cannot leak into MCP output.Messaging sends, webhook mutations, broad toolsets and hosted MCP parity remain separate because their approval and authority contracts need individual treatment. Public docs are in monorepo PR #400, which must merge before this CLI PR.
Five-part assessment
GET /platform/sessions?projectId=route enforcessessions:readand organization/project scope.@polymorfa/sdk@0.1.0-dev.20260926005918already exposes typedsessions.list.Verification
Node 22 format, lint, typecheck, build and full suite passed (919 tests, 4 skipped). Protocol tests verify discovery registration and read-only annotation; a local HTTP test verifies exact project filtering and credential use while excluding phone and secret data. Project-token fallback and error redaction are covered.
Need help on this PR? Tag
@codesmithwith what you need. Autofix is disabled.