Repository navigation
feat(integrations): Vercel AI SDK (MCP over stdio) - #2670
Conversation
|
|
Review the following changes in direct dependencies. Learn more about Socket for GitHub.
|
There was a problem hiding this comment.
Review completed against the latest diff
Reply with feedback, questions, or to request a fix.
Re-trigger cubic
There was a problem hiding this comment.
1 issue found across 2 files (changes from recent commits).
Confidence score: 5/5
- In
packages/integrations/vercel-ai/src/agent.ts, canonical instruction forwarding lacks a focused test, so future edits could silently drop or override the forwardedinstructionswhile existing tests still pass, leading to subtle agent behavior drift—add a mockedgenerateTextunit test that asserts both the canonicalinstructionsvalue and the expected options are forwarded.
Prompt for AI agents (unresolved issues)
Check if these issues are valid — if so, understand the root cause of each and fix them. If appropriate, use sub-agents to investigate and fix each issue separately.
<file name="packages/integrations/vercel-ai/src/agent.ts">
<violation number="1" location="packages/integrations/vercel-ai/src/agent.ts:23">
P3: Canonical instruction forwarding has no focused test, so a later agent change can silently omit or overwrite it while current tests remain green. Suggest a mocked `generateText` test asserting both `instructions: FACADE_AGENT_INSTRUCTIONS` and prompt wiring.
(Based on your team's feedback about unit tests for changed behavior.)</violation>
</file>
Tip: Review your code locally with the cubic CLI to iterate faster.
Re-trigger cubic
9010314 to
6ab64c8
Compare
…cade tool surface Rebased onto main post-v4-release (squashed from the pre-release branch; original review + Browserbase smoke history on PR #2670).
3f3a096 to
8926637
Compare
There was a problem hiding this comment.
All reported issues were addressed across 6 files (changes from recent commits).
Tip: Review your code locally with the cubic CLI to iterate faster.
Re-trigger cubic
8dc865c to
ef95aa3
Compare
|
Preview deployment for your docs. Learn more about Mintlify Previews.
💡 Tip: Enable Workflows to automatically generate PRs for you. |
Vercel AI SDK example for the Stagehand facade tool surface, consuming it as a standard MCP server over stdio.
run/snapshot/screenshot— the shared facade contract; system prompt fromFACADE_AGENT_INSTRUCTIONS.experimental_createMCPClient+ stdio, spawning the workspacestagehand-facadebin with an env allowlist (STAGEHAND_*/BROWSERBASE_*only); client closed infinally.packages/integrations/vercel-ai/README.md.Verified: contract test in CI (three tools discovered, no browser on connect); Browserbase smoke passed (heading cited with snapshot ID, clean child exit).
Stacked on #2665.