Repository navigation
@tanstack/ai-mcp@0.9.0
Minor Changes
-
#1720
dce9fbe-createMCPClient({ requestOptions })now also applies to the connect handshake. A server that does not answer while it connects fails aftertimeout, not after the SDK default of 60 seconds. If you set a shorttimeoutfor tool calls, a slow server can now fail at connect. On astdioserver, connect can take up to two timestimeout. -
#1720
dce9fbe- A resource template can parse its variables. WithresourceDefinition({ uriTemplate, argsSchema }),argsSchema.parseruns on the template variables beforeread(uri, variables, ctx)gets them. A read result{ text | blob, mimeType }sets the MIME type of that answer. -
#1720
dce9fbe- NewcreateMCPClientoptions:toolName: (tool) => stringsets the name the model sees for each tool. It wins overprefix.metadata.mcp.serverToolNamekeeps the server's own name, socallTool()and MCP Apps widget calls still reach the tool. Two tools with the same final name throwDuplicateToolNameError.requestOptions: { timeout, resetTimeoutOnProgress }is sent with tool lists, tool calls, resource requests, and prompt requests.subscriptions/listenand task status polls keep the SDK defaults. A spec 2026tools/callusestimeoutand gets no progress notifications.toolFilteralso takes a list of server tool names. The client keeps exactly those tools, in list order. A missing or repeated name throws the newMCPToolFilterError, which names them and the available tools.
toolNameandrequestOptionsalso work per server increateMCPClientsand in MCP Apps widget calls.Two default changes:
- A server input schema without
propertiesnow getsproperties: {}, and a schema withouttypegetstype: 'object'. A full schema does not change. metadata.mcp.annotationsis now a frozen copy of the server's annotations, not the server's own object.