Repository navigation
Conversation
Contributor
|
Preview deployment for your docs. Learn more about Mintlify Previews.
|
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Contributor
Author
|
@codex review Please review the SDK/MCP SQL migration for authorization boundaries, snapshot ownership, retries, in-flight isolation, and response contracts. This remains a draft; no merge requested. |
|
To use Codex here, create a Codex account and connect to github. |
alosec
marked this pull request as ready for review
October 15, 2026 18:09
alosec
had a problem deploying
to
mcp-preview-feat/mcp-sql-query-tools
October 15, 2026 18:16 — with
GitHub Actions
Failure
alosec
deployed
to
mcp-preview-feat/mcp-sql-query-tools
October 15, 2026 18:16 — with
GitHub Actions
Active
…ronment" This reverts commit 425c912.
Contributor
This branch was successfully deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
sql_query,describe_views,query_guide, andget_query_resultto MCP, backed by a typed SDK assistant query manager and existing Rails endpoints.Rollout
Deploy and verify this MCP change before merging the companion t49 agent-removal PR https://github.com/Terminal49/t49/pull/4442. No Rails endpoint changes are required.
Review follow-up (1605731)
sql_queryis read-only with respect to account records; snapshots are temporary result caches. Client consent behavior remains client-specific.Verification
npm run check,npm run build, andnpm testpass: 441 MCP + 369 SDK + 31 CLI tests (one existing SDK skip).list_shipmentsdiscovery. No gate is bypassed; this pre-existing issue is explicitly deferred by the author. No credential workaround or CI gate bypass is included.AI review
Related work
Ports the intent of t49 #4434 in-flight deduplication and #4374 server-failure guidance into the MCP execution path. The t49 companion retains local display error safeguards. These PRs need coordination to avoid reintroducing local wrappers.
The PR appears safe to merge with non-blocking fixes to the Postman requests and agent-facing guidance.
Fix with agent prompt
Summary
Adds four SQL tools to MCP through a new typed SDK manager.
Tests were inspected, not executed.
alosecexplicitly identified the existing live-eval API-key authentication failure as a known, separate blocker; it is not reported here.Diagram
sequenceDiagram participant Agent participant MCP participant SDK participant Rails Agent->>MCP: sql_query(sql) MCP->>MCP: Match credential, account, endpoint and SQL MCP->>SDK: Share matching in-flight query SDK->>Rails: POST assistant_queries with credential and account Rails-->>SDK: Preview and result_id, or error SDK-->>MCP: Return without retry MCP-->>Agent: Separate result copy or safe error Agent->>MCP: get_query_result(result_id) MCP->>SDK: Read requested page SDK->>Rails: "GET assistant_queries/{id}" Rails-->>Agent: Stored rows through SDK and MCPReviews (1) · Last reviewed commit: "test: require SQL tools in every protoco..." · Reviewed by Greptile