Repository navigation
Conversation
|
Preview deployment for your docs. Learn more about Mintlify Previews.
|
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
CI status on head
Not covered by CI: Spectral/OpenAPI lint (see the PR description for the local |
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. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: cd9c0396ad
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
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".
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 9e27934e44
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
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".
Adds the Account tag, the /me path, and the credential, credential_account, credential_user, and feature_availability schemas, with an API reference page and navigation entry. The endpoint is implemented in Terminal49/t49. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Calls GET /me and, in mapped format, returns a CurrentCredential with the account, the signed-in user (or null), the accounts that user can switch to, and the per-feature availability map. Regenerates the OpenAPI types and the SDK reference docs. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
whoami reports which credential the session uses, the account it is scoped to (company name, business type, plan, location, tracking slots), the other accounts a signed-in user can switch to, and a per-feature availability map with the reason when a feature is unavailable. No inputs; read-only. Updates the tool enumerations in the test suites and both connector listings. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
The stdio and preview protocol smokes hard-code the tool count. whoami brings it to 14; both now also require whoami to be listed. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
|
Rebased onto
Local on |
Summary
Adds an identity call across the three things this repo ships, backed by a new backend endpoint:
GET /meunder a newAccounttag, withcredential,credential_account,credential_user, andfeature_availabilityschemas plus an API reference page. The endpoint itself is implemented in Terminal49/t49#4322; this spec is the contract.client.me(). Mapped format returns aCurrentCredential: kind (api_key|user), channel, key label, the scoped account, the signed-in user ornull, the accounts that user can switch to, and the feature map.whoamitool (no inputs, read-only). Reports the account (company name, business type, plan, location, tracking slots), the user, other accounts, and per-feature status:available,requires_paid_plan,requires_user_credential,not_enabled. Server instructions tell the agent to call it when the user asks which account is connected, when a lookup returns nothing or 401, or before a gated feature.Commits are split docs / SDK / MCP / MCP docs / smoke-check fix for review. The Postman collection commit is the repo's auto-generation bot reacting to the OpenAPI change; it includes the new
/merequest.Contract decisions (please review)
credentialwithkindtaken from the backend's existingApiAuth::Context#auth_type, andchannelfrom#channel(api,dashboard,mcp,askt49). No new vocabulary was invented.Account#permissions, account flags), not from a new permissions model.Dependencies and rollout
whoamitool returns data in production. Until then the tool returns the standard Terminal49 error.Verification
Head
cd9c0396ad74df3fc95a5a9d057bae3a9de89ccc. The earlier headb134e004a1ran CI and failed only the MCP protocol matrix, because the stdio and preview smoke scripts hard-code the tool count (13). That is fixed in the last commit; CI for this head is linked from the checks tab.Local, on this head's tree:
vp run check: 0 errors (lint, SDK build, API and workspace type checks)@terminal49/sdktests: 251 passed, 1 skipped (pre-existing live smoke)@terminal49/mcptests: 398 passed across 23 filesnpm run build: SDK, MCP, CLI build cleanMCP_PROTOCOL_VERSION=2026-07-28and2024-10-07protocol smokes against the built server: 14 tools listedgenerate:filters: no diff;generate:typesand SDK reference docs regenerated and committedValidation limitations (not covered by CI)
.spectral.mjsimports a Stoplight-hosted ruleset that now returns 404, so the documentedspectral lintcommand fails before reading the spec. As a substitute I linted with Spectral's built-inspectral:oasruleset: the finding set is identical fororigin/mainand this branch (68 problems, 29 of them pre-existingoas3-valid-media-exampleandpath-paramserrors elsewhere in the spec; none on/meor the new schemas). Repointing.spectral.mjsis a separate tooling decision because it would surface those 29 pre-existing errors.Reviewers
Needs a human review of the public contract (OpenAPI shape and field names) in addition to CI, since this adds a public endpoint and an MCP tool.
🤖 Generated with Claude Code
The PR appears safe to merge, with two non-blocking improvements to the new public contract.
Fix with agent prompt
Summary
Adds an identity call across the public API contract, SDK, and MCP server.
Acknowledged by
dodeja: the backend endpoint must deploy before production identity calls succeed. The broken Spectral ruleset is explicitly deferred as a separate tooling change.Diagram
Reviews (1) · Last reviewed commit: "fix(mcp): expect 14 tools in the protoco..." · Reviewed by Greptile
Current readiness verification keeps the original gates. Local checks and tests pass, but authenticated MCP preview evaluation is blocked by a backend HTTP 401 for the shared CI passthrough credential. The transport handshake alone does not prove tool access. Review fixes and rebases preserve this PR's base topology. No merge or deploy has been performed.