Releases: TanStack/ai
@tanstack/ai-mcp@0.1.0
Minor Changes
- #700
496e814- Add@tanstack/ai-mcp: a host-side Model Context Protocol client. Discover and run MCP server tools (and read resources/prompts) inside any adapter'schat()loop, with three type-safety modes (auto-discovery, hand-writtentoolDefinition()binding, and generated end-to-end types vianpx @tanstack/ai-mcp generate). IncludescreateMCPClientsfor connecting to multiple servers with auto-prefixed tool names. Also exposesabortSignalonToolExecutionContextso long-running tools (e.g. MCPcallTool) cancel with the chat run.
Patch Changes
@tanstack/openai-base@0.8.0
Minor Changes
-
#695
786b3e4- feat: attach hosted provider Skills to code-execution / shell toolsHosted, provider-managed Agent Skills can now be attached to the server-side execution tool that runs them:
- Anthropic —
codeExecutionTool(config, { skills: [{ type: 'anthropic', skill_id: 'pptx', version: 'latest' }] }). The adapter lifts the skills into the request's top-levelcontainer.skillsand automatically attaches the required beta headers (code-execution-2025-08-25— orcode-execution-2025-05-22for the legacycode_execution_20250522variant — plusskills-2025-10-02). - OpenAI —
shellTool({ environment: { type: 'container_auto', skills: [{ type: 'skill_reference', skill_id: '...', version: '2' }] } }), threaded through the Responses API shell tool.
Scope: hosted/managed skills referenced by id + version. Skills are inert without the execution tool that runs them.
Setting skills via Anthropic's
modelOptions.container.skillsis deprecated in favor ofcodeExecutionTool(config, { skills }).Bumps the
openaiSDK to^6.41.0(required for the typed shellenvironment.skillssurface). - Anthropic —
@tanstack/ai-openai@0.14.0
Minor Changes
-
#695
786b3e4- feat: attach hosted provider Skills to code-execution / shell toolsHosted, provider-managed Agent Skills can now be attached to the server-side execution tool that runs them:
- Anthropic —
codeExecutionTool(config, { skills: [{ type: 'anthropic', skill_id: 'pptx', version: 'latest' }] }). The adapter lifts the skills into the request's top-levelcontainer.skillsand automatically attaches the required beta headers (code-execution-2025-08-25— orcode-execution-2025-05-22for the legacycode_execution_20250522variant — plusskills-2025-10-02). - OpenAI —
shellTool({ environment: { type: 'container_auto', skills: [{ type: 'skill_reference', skill_id: '...', version: '2' }] } }), threaded through the Responses API shell tool.
Scope: hosted/managed skills referenced by id + version. Skills are inert without the execution tool that runs them.
Setting skills via Anthropic's
modelOptions.container.skillsis deprecated in favor ofcodeExecutionTool(config, { skills }).Bumps the
openaiSDK to^6.41.0(required for the typed shellenvironment.skillssurface). - Anthropic —
Patch Changes
- Updated dependencies [
786b3e4]:- @tanstack/openai-base@0.8.0
@tanstack/ai-groq@0.4.1
Patch Changes
-
#695
786b3e4- feat: attach hosted provider Skills to code-execution / shell toolsHosted, provider-managed Agent Skills can now be attached to the server-side execution tool that runs them:
- Anthropic —
codeExecutionTool(config, { skills: [{ type: 'anthropic', skill_id: 'pptx', version: 'latest' }] }). The adapter lifts the skills into the request's top-levelcontainer.skillsand automatically attaches the required beta headers (code-execution-2025-08-25— orcode-execution-2025-05-22for the legacycode_execution_20250522variant — plusskills-2025-10-02). - OpenAI —
shellTool({ environment: { type: 'container_auto', skills: [{ type: 'skill_reference', skill_id: '...', version: '2' }] } }), threaded through the Responses API shell tool.
Scope: hosted/managed skills referenced by id + version. Skills are inert without the execution tool that runs them.
Setting skills via Anthropic's
modelOptions.container.skillsis deprecated in favor ofcodeExecutionTool(config, { skills }).Bumps the
openaiSDK to^6.41.0(required for the typed shellenvironment.skillssurface). - Anthropic —
-
Updated dependencies [
786b3e4]:- @tanstack/openai-base@0.8.0
@tanstack/ai-grok@0.11.1
Patch Changes
-
#695
786b3e4- feat: attach hosted provider Skills to code-execution / shell toolsHosted, provider-managed Agent Skills can now be attached to the server-side execution tool that runs them:
- Anthropic —
codeExecutionTool(config, { skills: [{ type: 'anthropic', skill_id: 'pptx', version: 'latest' }] }). The adapter lifts the skills into the request's top-levelcontainer.skillsand automatically attaches the required beta headers (code-execution-2025-08-25— orcode-execution-2025-05-22for the legacycode_execution_20250522variant — plusskills-2025-10-02). - OpenAI —
shellTool({ environment: { type: 'container_auto', skills: [{ type: 'skill_reference', skill_id: '...', version: '2' }] } }), threaded through the Responses API shell tool.
Scope: hosted/managed skills referenced by id + version. Skills are inert without the execution tool that runs them.
Setting skills via Anthropic's
modelOptions.container.skillsis deprecated in favor ofcodeExecutionTool(config, { skills }).Bumps the
openaiSDK to^6.41.0(required for the typed shellenvironment.skillssurface). - Anthropic —
-
Updated dependencies [
786b3e4]:- @tanstack/openai-base@0.8.0
@tanstack/ai-anthropic@0.15.0
Minor Changes
-
#695
786b3e4- feat: attach hosted provider Skills to code-execution / shell toolsHosted, provider-managed Agent Skills can now be attached to the server-side execution tool that runs them:
- Anthropic —
codeExecutionTool(config, { skills: [{ type: 'anthropic', skill_id: 'pptx', version: 'latest' }] }). The adapter lifts the skills into the request's top-levelcontainer.skillsand automatically attaches the required beta headers (code-execution-2025-08-25— orcode-execution-2025-05-22for the legacycode_execution_20250522variant — plusskills-2025-10-02). - OpenAI —
shellTool({ environment: { type: 'container_auto', skills: [{ type: 'skill_reference', skill_id: '...', version: '2' }] } }), threaded through the Responses API shell tool.
Scope: hosted/managed skills referenced by id + version. Skills are inert without the execution tool that runs them.
Setting skills via Anthropic's
modelOptions.container.skillsis deprecated in favor ofcodeExecutionTool(config, { skills }).Bumps the
openaiSDK to^6.41.0(required for the typed shellenvironment.skillssurface). - Anthropic —
@tanstack/solid-ai-devtools@0.2.50
Patch Changes
- Updated dependencies []:
- @tanstack/ai-devtools-core@0.4.7
@tanstack/react-ai-devtools@0.2.50
Patch Changes
- Updated dependencies []:
- @tanstack/ai-devtools-core@0.4.7
@tanstack/preact-ai-devtools@0.1.50
Patch Changes
- Updated dependencies []:
- @tanstack/ai-devtools-core@0.4.7
@tanstack/openai-base@0.7.0
Minor Changes
-
#660
6df32b5- BREAKING: Sampling options (temperature,topP,maxTokens) have moved off the root ofchat()/ai()/generate()and into provider-nativemodelOptions. There is no longer a generic root-level sampling surface — each provider accepts its own native keys, fully typed per model:- OpenAI (Responses):
modelOptions: { temperature, top_p, max_output_tokens } - Anthropic:
modelOptions: { temperature, top_p, max_tokens } - Gemini:
modelOptions: { temperature, topP, maxOutputTokens } - Grok:
modelOptions: { temperature, top_p, max_tokens } - Groq:
modelOptions: { temperature, top_p, max_completion_tokens } - Ollama:
modelOptions: { options: { temperature, top_p, num_predict } }(nested) - OpenRouter (chat):
modelOptions: { temperature, topP, maxCompletionTokens }
Middleware no longer sees
temperature/topP/maxTokensas first-class fields onChatMiddlewareConfig; mutateconfig.modelOptions(with the provider-native keys above) instead.metadatais unaffected and stays at the root.The public
OllamaTextProviderOptionstype export has also been removed from@tanstack/ai-ollama.modelOptionsis now typed per model — use the exportedOllamaChatModelOptionsByNamemap (indexed by model name) or the underlyingChatRequestfrom theollamaSDK for arbitrary model strings.Migrate automatically with the codemod, which resolves the provider from the adapter and rewrites the keys for you:
pnpm codemod:move-sampling-to-model-options "src/**/*.{ts,tsx}"See the Sampling Options migration guide for details.
- OpenAI (Responses):
Patch Changes
- Updated dependencies [
6df32b5]:- @tanstack/ai@0.27.0