Add Typescript support for Claude/OpenAI MCP server tools#3443
Add Typescript support for Claude/OpenAI MCP server tools#3443
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Updates the MCP tools documentation to include TypeScript SDK support introduced in PR hatchet-dev#3443: - Add tabbed installation instructions for Python and TypeScript - Add TypeScript API reference for mcpTool() method - Update usage overview with TypeScript-specific workflow - Add mcpTool() method documentation to Runnables.mdx for both TaskWorkflowDeclaration and WorkflowDeclaration
|
Promptless prepared a documentation update related to this change. Triggered by this PR Added documentation for the new Review at https://app.gopromptless.ai/suggestions/9c18c163-0617-40df-a4e8-f78254fc35c9 |
| ); | ||
| } | ||
| // Check Zod v4 is installed before using any v4-specific schema APIs. | ||
| if (!('_zod' in z.string())) { |
There was a problem hiding this comment.
nit: one message for all dependencies? kind of annoying if you hit this twice
There was a problem hiding this comment.
Hmm, yeah let me see if I can integrate these.
| try { | ||
| require.resolve('@openai/agents'); | ||
| } catch { | ||
| throw new Error( |
| name: runnable.name, | ||
| description: description, | ||
| // eslint-disable-next-line @typescript-eslint/no-explicit-any | ||
| parameters: (inputValidatorV4 as any).toJSONSchema(), |
There was a problem hiding this comment.
Ah, don't need it--fixed!
grutt
left a comment
There was a problem hiding this comment.
great job! minor nits that can optionally be addressed
Description
Adds support for the Claude/OpenAI MCP servers. Also bumps Zod dependency to require 3.25.0+ (compatible with Zod 4+), but requires Zod 4 for the agent functions. If you try to use Zod 3 you will get:
Fixes # (issue)
Type of change
What's Changed