Skip to content

Skills for Claude Code CLI such as full stack dev Cloudflare, React, Tailwind v4, and AI integrations.

feat: Complete January 2026 skill audit (TIER 1-3 + TIER 4 maintenance)

Jez09c77085d515
diff --git a/planning/SKILL_UPDATES_JAN_2026.md b/planning/SKILL_UPDATES_JAN_2026.md
index d8586451..9ca6e859 100644
--- a/planning/SKILL_UPDATES_JAN_2026.md
+++ b/planning/SKILL_UPDATES_JAN_2026.md
@@ -14,41 +14,44 @@
| Skill | Issue | Est. Hours | Status |
|-------|-------|------------|--------|
-| fastmcp | v2.13→v2.14: sampling with tools, background tasks, breaking changes | 10-11 | ⏳ Not Started |
-| typescript-mcp | v1.23→v1.25.1: ReDoS fix, Tasks feature, Client credentials OAuth | 6-8 | ⏳ Not Started |
-| tanstack-router | 10+ versions behind (1.134→1.144+): virtual routes, search params, error boundaries | 4-6 | ⏳ Not Started |
+| fastmcp | v2.13→v2.14: sampling with tools, background tasks, breaking changes | 10-11 | ✅ Complete |
+| typescript-mcp | v1.23→v1.25.1: ReDoS fix, Tasks feature, Client credentials OAuth | 6-8 | ✅ Complete |
+| tanstack-router | 10+ versions behind (1.134→1.144+): virtual routes, search params, error boundaries | 4-6 | ✅ Complete |
### TIER 2: HIGH (Next Sprint) - ~35 hours
| Skill | Issue | Est. Hours | Status |
|-------|-------|------------|--------|
-| elevenlabs-agents | 4 packages outdated, widget improvements, Scribe fixes | 4-5 | ⏳ Not Started |
-| openai-assistants | v6.7→6.15, sunset date clarification (Aug 26, 2026) | 2-3 | ⏳ Not Started |
-| mcp-oauth-cloudflare | workers-oauth-provider 0.1→0.2.2, refresh tokens, Bearer coexistence | 4 | ⏳ Not Started |
+| elevenlabs-agents | 4 packages outdated, widget improvements, Scribe fixes | 4-5 | ✅ Complete |
+| openai-assistants | v6.7→6.15, sunset date clarification (Aug 26, 2026) | 2-3 | ✅ Complete |
+| mcp-oauth-cloudflare | workers-oauth-provider 0.1→0.2.2, refresh tokens, Bearer coexistence | 4 | ✅ Complete |
| google-chat-api | Spaces API, Members API, Reactions, rate limits (40% feature gap) | 22-28 | ⏳ Not Started |
-| ai-sdk-ui | Agent integration, tool approval, message parts structure | 4-6 | ⏳ Not Started |
-| better-auth | Stateless sessions, JWT rotation, provider scopes | 2-3 | ⏳ Not Started |
-| cloudflare-worker-base | wrangler 4.54, auto-provisioning, Workers RPC | 2-3 | ⏳ Not Started |
-| openai-apps-mcp | MCP Connectors, Responses API, Zod version conflict | 4-5 | ⏳ Not Started |
+| ai-sdk-ui | Agent integration, tool approval, message parts structure | 4-6 | ✅ Complete |
+| better-auth | Stateless sessions, JWT rotation, provider scopes | 2-3 | ✅ Complete |
+| cloudflare-worker-base | wrangler 4.54, auto-provisioning, Workers RPC | 2-3 | ✅ Complete |
+| openai-apps-mcp | MCP Connectors, Responses API, Zod version conflict | 4-5 | ✅ Complete |
### TIER 3: MEDIUM (Following Sprint) - ~30 hours
| Skill | Issue | Est. Hours | Status |
|-------|-------|------------|--------|
-| cloudflare-python-workers | Memory snapshots, Workflows, error handling | 4-5 | ⏳ Not Started |
-| tanstack-start | Memory leak #5734 tracking, version updates | 2 | ⏳ Not Started |
-| tanstack-table | Row/column pinning, expanding, grouping docs | 3-4 | ⏳ Not Started |
-| nextjs | v16.0→16.1.1, 3 CVE security advisories | 2-3 | ⏳ Not Started |
-| drizzle-orm-d1 | 0.44.7→0.45.1, drizzle-kit 0.31.8 | 1-2 | ⏳ Not Started |
-| google-gemini-api | Gemini 3 Flash, structured output, v1.30→v1.34 | 3-4 | ⏳ Not Started |
-| azure-auth | (audit result needed - agent hit limit) | 2-3 | ⏳ Not Started |
-| tailwind-v4-shadcn | (audit result needed - agent hit limit) | 2-3 | ⏳ Not Started |
+| cloudflare-python-workers | Pinned versions (workers-py 1.7.0), consistent compat date | 4-5 | ✅ Complete |
+| tanstack-start | v1.139.10→1.145.3, #5734 still OPEN (confirmed) | 2 | ✅ Complete |
+| tanstack-table | Added pinning, expanding, grouping docs | 3-4 | ✅ Complete |
+| nextjs | v16.0→16.1.1, 3 CVE security advisories | 2-3 | ✅ Complete |
+| drizzle-orm-d1 | 0.44.7→0.45.1, drizzle-kit 0.31.8 | 1-2 | ✅ Complete |
+| google-gemini-api | Gemini 3 Flash, structured output, v1.30→v1.34 | 3-4 | ✅ Complete |
+| azure-auth | B2C sunset language (past tense), ADAL retirement section | 2-3 | ✅ Complete |
+| tailwind-v4-shadcn | tailwindcss 4.1.17→4.1.18, vite 7.2→7.3, tailwind-merge 3.3→3.4, @types/node 24→25 | 2-3 | ✅ Complete |
### TIER 4: LOW (When Time Permits) - ~15 hours
| Skill | Issue | Est. Hours | Status |
|-------|-------|------------|--------|
-| Various minor version updates across ~10 skills | Package bumps only | 10-15 | ⏳ Not Started |
+| Marketplace sync | 5 skills missing from marketplace.json | 0.1 | ✅ Complete |
+| openai-api | gpt-4 deprecation note added | 0.1 | ✅ Complete |
+| ai-sdk-core | Updated gpt-4/gpt-3.5 → gpt-5/claude-sonnet-4-5 reference | 0.1 | ✅ Complete |
+| Various minor version updates across ~10 skills | Package bumps only | 10-15 | ⏳ Most up-to-date |
---
@@ -82,57 +85,146 @@
## Detailed Action Items by Skill
-### fastmcp (URGENT)
+### fastmcp ✅ COMPLETE (2026-01-03)
-**Version**: 2.13.0 → 2.14.1
+**Version**: 2.13.0 → 2.14.2
-**Changes Required**:
-1. [ ] Update requirements.txt to `fastmcp>=2.14.0`
-2. [ ] Add "Sampling with Tools" section
+**Changes Made**:
+1. [x] Update SKILL.md with "What's New in v2.14.x" section
+2. [x] Add "Sampling with Tools (v2.14.1+)" section
- AnthropicSamplingHandler configuration
- Tool definition for sampling
- Structured output with Pydantic
-3. [ ] Add "Background Tasks" section
- - `@mcp.background_task()` decorator
- - Progress tracking integration
- - Task lifecycle hooks
-4. [ ] Document v2.14.0 breaking changes
+3. [x] Add "Background Tasks (v2.14.0+)" section
+ - `@mcp.tool(task=True)` decorator pattern
+ - Progress tracking with `context.report_progress()`
+ - Docket scheduler dependency
+4. [x] Document v2.14.0 breaking changes
- Removed `BearerAuthProvider`
- Removed `Context.get_http_request()`
-5. [ ] Add Cyclopts v4 license warning
-6. [ ] Update all version references in SKILL.md, README.md
+ - `fastmcp.Image` import path changed
+5. [x] Add error patterns 26-28 for v2.14.0 migration
+6. [x] Update all version references in SKILL.md, README.md
+7. [x] Update errors prevented count from 25 to 28
+8. [x] Update skill metadata (version 2.1.0, last updated 2026-01-03)
+
+**Note**: Cyclopts v4 license warning not added - not critical for skill usage
---
-### typescript-mcp (URGENT)
+### typescript-mcp ✅ COMPLETE (2026-01-03)
**Version**: 1.23.0 → 1.25.1
-**Changes Required**:
-1. [ ] Update to @modelcontextprotocol/[email protected] (security fix)
-2. [ ] Add "Tasks" documentation (new core feature)
-3. [ ] Add "Fetch Transport" section
-4. [ ] Add "OAuth Client Credentials (M2M)" to auth guide
-5. [ ] Document sampling patterns (SEP-1577)
-6. [ ] Add elicitation guide
-7. [ ] Create tasks-server.ts template
-8. [ ] Create oauth-m2m-server.ts template
-9. [ ] Add 5 new error patterns (#1291, #1308, #1342, #1314, #1354)
+**Changes Made**:
+1. [x] Update to @modelcontextprotocol/[email protected] (SKILL.md, README.md)
+2. [x] Add "Tasks (v1.24.0+)" section with capability declaration, tool registration, lifecycle
+3. [x] Add "Sampling with Tools (v1.24.0+)" section (SEP-1577)
+4. [x] Add "Method 6: OAuth Client Credentials (M2M)" to authentication-guide.md
+5. [x] Create tasks-server.ts template (demonstrates task states, input_required, progress)
+6. [x] Update README.md package versions (hono 4.11.3, zod 3.24.2, wrangler 4.50.0)
+7. [x] Update Critical Rules section (v1.25.1+ reference, ReDoS warning)
+8. [x] Add tasks/sampling keywords to README.md
+
+**Deferred**:
+- oauth-m2m-server.ts template (M2M pattern documented in auth guide, template not essential)
+- Elicitation guide (lower priority, can add later)
+- Error patterns #1291, #1308, #1342, #1314, #1354 (need deeper research)
---
-### tanstack-router (URGENT)
+### cloudflare-worker-base ✅ COMPLETE (2026-01-03)
+
+**Versions Updated**:
+- wrangler: 4.50.0 → 4.54.0
+- @cloudflare/vite-plugin: 1.15.2 → 1.17.1
+- hono: 4.10.6 → 4.11.3
+- @cloudflare/workers-types: 4.20251121.0 → 4.20260103.0
+
+**Changes Made**:
+1. [x] Update all version references in SKILL.md header
+2. [x] Add "Recent Updates (2025-2026)" section with:
+ - Wrangler 4.55+: Auto-config for frameworks
+ - Wrangler 4.45+: Auto-provisioning for R2, D1, KV bindings
+ - Workers RPC: JavaScript-native RPC via WorkerEntrypoint
+3. [x] Add "Auto-Provisioning (Wrangler 4.45+)" section
+ - How it works (just define bindings, auto-create on deploy)
+ - wrangler.jsonc example
+ - --no-x-provision flag to disable
+4. [x] Add "Workers RPC (Service Bindings)" section
+ - WorkerEntrypoint class pattern
+ - Service bindings configuration
+ - Key points (zero latency, type-safe, 32 MiB limit)
+5. [x] Update dependencies section (2026-01-03)
+6. [x] Update README.md:
+ - Package versions table
+ - 8 errors prevented (was 6)
+ - New keywords (Workers RPC, WorkerEntrypoint, auto-provisioning)
+ - New use cases
+ - Issues 7-8 added to table
+
+---
-**Version**: 1.134.13 → 1.144.0+
+### tanstack-router ✅ COMPLETE (2026-01-03)
+
+**Version**: 1.139.10 → 1.144.0
+
+**Changes Made**:
+1. [x] Update version references (1.144.0)
+2. [x] Add "Virtual File Routes (v1.140+)" section
+ - @tanstack/virtual-file-routes package
+ - Vite config with virtualRouteConfig
+ - routes.ts programmatic configuration
+3. [x] Add "Search Params Validation (Zod Adapter)" section
+ - Basic pattern with inline Zod
+ - Recommended pattern with zodValidator + fallback
+ - .catch() vs .default() guidance
+4. [x] Add "Error Boundaries" section
+ - Route-level errorComponent
+ - Default error component (global)
+ - notFoundComponent pattern
+5. [x] Add "Authentication with beforeLoad" section
+ - Single route protection
+ - Layout route pattern for multiple routes
+ - Auth context passing from React hooks
+6. [x] Add 4 new known issues (6-8, 11)
+ - Virtual routes index/layout conflict (#5421)
+ - Search params type inference (#3100)
+ - TanStack Start validators on reload (#3711)
+ - Flash of protected content pattern
+7. [x] Update README.md
+ - Expanded keywords (feature, integration, error)
+ - Updated features list (9 items)
+ - Updated errors prevented (7 → 11)
+ - Added optional package installations
+
+**Deferred**:
+- SSR patterns (TanStack Start specific - separate skill)
+
+---
-**Changes Required**:
-1. [ ] Update version references
-2. [ ] Add virtual file routes documentation
-3. [ ] Add search params validation patterns
-4. [ ] Add error boundary patterns
-5. [ ] Add beforeLoad hook documentation
-6. [ ] Update migration guide for breaking changes
-7. [ ] Add SSR patterns (if applicable)
+### openai-apps-mcp ✅ COMPLETE (2026-01-03)
+
+**Versions Updated**:
+- @modelcontextprotocol/sdk: 1.23.0 → 1.25.1
+- hono: 4.10.6 → 4.11.3
+- wrangler: 4.50.0 → 4.54.0
+- @cloudflare/vite-plugin: 1.15.2 → 1.17.1
+- @cloudflare/workers-types: 4.20250531.0 → 4.20260103.0
+
+**Changes Made**:
+1. [x] Update all version references in SKILL.md header
+2. [x] Update Quick Start install commands
+3. [x] Update Dependencies JSON block
+4. [x] Add "MCP SDK 1.25.x Updates (December 2025)" section
+ - Breaking changes (removed loose type exports, ES2020, typesafe handlers)
+ - New features (Tasks, Sampling with Tools, OAuth M2M)
+ - Migration pattern for schema imports
+5. [x] Fix README.md Zod version conflict (3.25.76 → 4.1.13)
+6. [x] Update README.md Package Versions table
+7. [x] Update all install commands in README.md
+
+**Note**: MCP Connectors (OpenAI pre-built apps) not added - skill focuses on custom MCP servers
---
@@ -141,16 +233,36 @@
| Date | Session | Work Done | Next Steps |
|------|---------|-----------|------------|
| 2026-01-03 | Initial Audit | Launched 68 parallel audits, compiled findings | Start TIER 1 updates |
-| | | | |
+| 2026-01-03 | typescript-mcp | ✅ Complete: Tasks docs, Sampling docs, M2M auth, tasks-server template, versions | TIER 1: fastmcp or tanstack-router |
+| 2026-01-03 | fastmcp | ✅ Complete: v2.14.x docs, Background Tasks, Sampling with Tools, breaking changes, errors 26-28 | TIER 1: tanstack-router |
+| 2026-01-03 | tanstack-router | ✅ Complete: Virtual routes, Search params/Zod, Error boundaries, beforeLoad auth, 4 new issues | **TIER 1 COMPLETE** → TIER 2 |
+| 2026-01-03 | cloudflare-worker-base | ✅ Complete: wrangler 4.54.0, vite-plugin 1.17.1, Auto-Provisioning section, Workers RPC section, issues 7-8 | Continue TIER 2 |
+| 2026-01-03 | better-auth | ✅ Complete: Stateless Sessions section, JWT Key Rotation section, Provider Scopes Reference table, drizzle-orm 0.45.1, hono 4.11.3 | Continue TIER 2 |
+| 2026-01-03 | openai-assistants | ✅ Complete: [email protected]→6.15, sunset date "H1 2026"→"August 26, 2026", package.json updates | Continue TIER 2 |
+| 2026-01-03 | mcp-oauth-cloudflare | ✅ Complete: workers-oauth-provider 0.1→0.2.2, Refresh Token Lifecycle section, Bearer Token + OAuth section, wrangler 4.54 | Continue TIER 2 |
+| 2026-01-03 | ai-sdk-ui | ✅ Complete: [email protected]→6.0.6 stable, Message Parts structure section, @ai-sdk/react 1.0→3.0.6, useAssistant deprecation | Continue TIER 2 |
+| 2026-01-03 | elevenlabs-agents | ✅ Complete: @elevenlabs/react 0.11.3→0.12.3, widget packages 0.5.5, Scribe fixes, December 2025 updates section | Continue TIER 2 |
+| 2026-01-03 | openai-apps-mcp | ✅ Complete: MCP SDK 1.23.0→1.25.1, Hono 4.11.3, wrangler 4.54.0, fixed Zod 3.x/4.x conflict, MCP 1.25.x migration section | **TIER 2 COMPLETE** (except google-chat-api) |
+| 2026-01-03 | drizzle-orm-d1 | ✅ Complete: Fixed Package Versions inconsistency (0.44.7→0.45.1), updated README.md versions | Continue TIER 3 |
+| 2026-01-03 | nextjs | ✅ Complete: 16.0→16.1.1, Security Advisories section (3 CVEs), 16.1 Updates section, Turbopack stable note | Continue TIER 3 |
+| 2026-01-03 | google-gemini-api | ✅ Complete: @google/genai 1.30.0→1.34.0, Added Gemini 3 Flash model, Updated model matrix, dates | Continue TIER 3 |
+| 2026-01-03 | azure-auth | ✅ Complete: B2C sunset language updated (past tense), Added ADAL retirement section with migration code | Continue TIER 3 |
+| 2026-01-03 | cloudflare-python-workers | ✅ Complete: Pinned workers-py 1.7.0, workers-runtime-sdk 0.3.1, consistent 2025-12-01 compat date | Continue TIER 3 |
+| 2026-01-03 | tanstack-start | ✅ Complete: v1.139.10→1.145.3, confirmed #5734 still OPEN (memory leak, servers crash ~30min) | Continue TIER 3 |
+| 2026-01-03 | tanstack-table | ✅ Complete: Added Column/Row Pinning, Row Expanding, Row Grouping sections with full code examples | Continue TIER 3 |
+| 2026-01-03 | tailwind-v4-shadcn | ✅ Complete: tailwindcss 4.1.17→4.1.18, vite 7.2→7.3, tailwind-merge 3.3→3.4, @types/node 24→25 | **TIER 3 COMPLETE** |
+| 2026-01-03 | TIER 4 maintenance | ✅ Complete: Marketplace sync (5 skills), deprecated model refs (openai-api, ai-sdk-core) | **TIER 4 IN PROGRESS** |
---
## Notes
-- Some agent audits hit usage limits and need re-running: azure-auth, tailwind-v4-shadcn
+- ~~Some agent audits hit usage limits and need re-running: tailwind-v4-shadcn~~ ✅ Done (manual audit)
- google-chat-api has largest gap (~40% of API undocumented) - consider splitting work
-- tanstack-router is significantly behind - may need dedicated session
-- fastmcp changes are breaking - test thoroughly before releasing
+- ~~tanstack-router is significantly behind - may need dedicated session~~ ✅ Done
+- ~~fastmcp changes are breaking - test thoroughly before releasing~~ ✅ Done
+- **TIER 1 COMPLETE** - All 3 urgent skills updated (typescript-mcp, fastmcp, tanstack-router)
+- **TIER 3 COMPLETE** - All 8 medium priority skills updated
---
diff --git a/skills/ai-sdk-core/.claude-plugin/plugin.json b/skills/ai-sdk-core/.claude-plugin/plugin.json
index ed47a207..8ac93a48 100644
--- a/skills/ai-sdk-core/.claude-plugin/plugin.json
+++ b/skills/ai-sdk-core/.claude-plugin/plugin.json
@@ -1,6 +1,6 @@
{
"name": "ai-sdk-core",
- "description": "Build backend AI with Vercel AI SDK v5/v6. Covers v6 beta (Agent abstraction, tool approval, reranking), v4→v5 migration (breaking changes), latest models (GPT-5/5.1, Claude 4.x, Gemini 2.5), Workers startup fix, and 12 error solutions (AI_APICallError, AI_NoObjectGeneratedError, streamText silent errors). Use when: implementing AI SDK v5/v6, migrating v4→v5, troubleshooting errors, fixing Workers startup issues, or updating to latest models. model: workersai(@cf/qwen/qwen3-30b-a3b-fp8), mes",
+ "description": "Build backend AI with Vercel AI SDK v5/v6. v6 stable introduces Output API (Output.object/array/choice replace deprecated generateObject/streamObject), plus speech synthesis, transcription, image generation, embeddings, reranking, MCP tools, and middleware. Covers v4→v5 migration, latest models (GPT-5.2, Claude 4.x, Gemini 2.5), Workers startup fix, and 12 error solutions. Use when: implementing AI SDK v5/v6, using Output API, speech/transcription/image features, embeddings, MCP tools, migrati",
"version": "1.0.0",
"author": {
"name": "Jeremy Dawes",
diff --git a/skills/ai-sdk-core/SKILL.md b/skills/ai-sdk-core/SKILL.md
index d09b449f..db67c568 100644
--- a/skills/ai-sdk-core/SKILL.md
+++ b/skills/ai-sdk-core/SKILL.md
@@ -652,7 +652,7 @@ try {
// 1. Simplify schema
// 2. Add more context to prompt
// 3. Provide examples in prompt
- // 4. Try different model (gpt-4 better than gpt-3.5 for complex objects)
+ // 4. Try different model (gpt-5 or claude-sonnet-4-5 for complex objects)
}
}
```
diff --git a/skills/ai-sdk-ui/.claude-plugin/plugin.json b/skills/ai-sdk-ui/.claude-plugin/plugin.json
index 14788e2b..847339a6 100644
--- a/skills/ai-sdk-ui/.claude-plugin/plugin.json
+++ b/skills/ai-sdk-ui/.claude-plugin/plugin.json
@@ -1,6 +1,6 @@
{
"name": "ai-sdk-ui",
- "description": "Build React chat interfaces with Vercel AI SDK v5/v6. Covers v6 beta (agent integration, tool approval, auto-submit), v4→v5 migration (breaking changes), useChat/useCompletion/useObject/useAssistant hooks, and 12 UI error solutions (stream parsing, stale body values, React update depth). Use when: implementing AI SDK v5/v6 chat UIs, migrating v4→v5, troubleshooting useChat failed to parse stream, useChat no response, or stale body values errors, or integrating OpenAI assistants. const { mess",
+ "description": "Build React chat interfaces with Vercel AI SDK v6. Covers v6 stable (agent integration, tool approval, message parts structure, auto-submit), v5→v6 migration, useChat/useCompletion/useObject hooks, and 12 UI error solutions (stream parsing, stale body values, React update depth). Use when: implementing AI SDK v6 chat UIs, migrating v5→v6, troubleshooting useChat failed to parse stream, useChat no response, or stale body values errors, or building AI chat interfaces. <div key={m.id}>{m.conten",
"version": "1.0.0",
"author": {
"name": "Jeremy Dawes",
diff --git a/skills/ai-sdk-ui/README.md b/skills/ai-sdk-ui/README.md
index 1787ac24..5e75c7bb 100644
--- a/skills/ai-sdk-ui/README.md
+++ b/skills/ai-sdk-ui/README.md
@@ -1,15 +1,15 @@
# AI SDK UI - Frontend React Hooks
-**Version**: AI SDK v5.0.95+
+**Version**: AI SDK v6.0.6 (Stable)
**Status**: Production-Ready ✅
-**Framework**: React 18+, Next.js 14+
-**Last Updated**: 2025-11-19
+**Framework**: React 18+/19, Next.js 14+/15+
+**Last Updated**: 2026-01-03
---
## What This Skill Does
-Provides complete implementation patterns for Vercel AI SDK v5 **frontend React hooks**:
+Provides complete implementation patterns for Vercel AI SDK v6 **frontend React hooks**:
- **useChat** - Chat interfaces with streaming
- **useCompletion** - Text completions
@@ -86,9 +86,13 @@ This skill should be automatically discovered when working with any of the follo
- `onFinish not called`
- `stream aborted`
- `v5 migration useChat`
+- `v6 migration useChat`
- `useChat breaking changes`
- `input handleInputChange removed`
- `sendMessage v5`
+- `message parts v6`
+- `m.content undefined`
+- `parts array v6`
### Framework Integration Keywords
@@ -110,15 +114,15 @@ This skill should be automatically discovered when working with any of the follo
## Quick Start
```bash
-npm install ai @ai-sdk/openai
+npm install ai @ai-sdk/react @ai-sdk/openai
```
-**5-minute chat interface:**
+**5-minute chat interface (v6 with message parts):**
```tsx
// app/chat/page.tsx
'use client';
-import { useChat } from 'ai/react';
+import { useChat } from '@ai-sdk/react';
import { useState } from 'react';
export default function Chat() {
@@ -128,7 +132,11 @@ export default function Chat() {
return (
<div>
{messages.map(m => (
- <div key={m.id}>{m.role}: {m.content}</div>
+ <div key={m.id}>
+ {m.role}: {m.parts.map((part, i) => (
+ part.type === 'text' ? <span key={i}>{part.text}</span> : null
+ ))}
+ </div>
))}
<form onSubmit={(e) => {
e.preventDefault();
@@ -149,7 +157,7 @@ import { openai } from '@ai-sdk/openai';
export async function POST(req: Request) {
const { messages } = await req.json();
- const result = streamText({ model: openai('gpt-4-turbo'), messages });
+ const result = streamText({ model: openai('gpt-5'), messages });
return result.toDataStreamResponse();
}
```
@@ -186,28 +194,37 @@ export async function POST(req: Request) {
---
-## Critical v5 Changes
+## Critical v6 Changes
-**BREAKING: useChat no longer manages input state!**
+**BREAKING: Message content is now accessed via `.parts` array!**
-**v4 (OLD):**
+**v5 (OLD):**
```tsx
-const { input, handleInputChange, handleSubmit } = useChat();
-<input value={input} onChange={handleInputChange} />
+{messages.map(m => <div>{m.content}</div>)}
```
-**v5 (NEW):**
+**v6 (NEW):**
```tsx
-const { sendMessage } = useChat();
-const [input, setInput] = useState('');
-<input value={input} onChange={(e) => setInput(e.target.value)} />
+{messages.map(m => (
+ <div>
+ {m.parts.map((part, i) => (
+ part.type === 'text' ? <span key={i}>{part.text}</span> : null
+ ))}
+ </div>
+))}
```
-**Other changes:**
+**Part Types in v6:**
+- `text` - Text content (`.text`)
+- `tool-invocation` - Tool calls (`.toolName`, `.args`, `.result`)
+- `file` - File attachments (`.mimeType`, `.data`)
+- `reasoning` - Model reasoning
+- `source` - Source citations
+
+**Prior v4→v5 changes still apply:**
+- `input`, `handleInputChange`, `handleSubmit` removed
- `append()` → `sendMessage()`
- `onResponse` removed → use `onFinish`
-- `initialMessages` → controlled mode with `messages` prop
-- `maxSteps` removed (handle server-side)
See `references/use-chat-migration.md` for complete migration guide.
@@ -270,16 +287,17 @@ This skill documents and prevents 12 common UI errors:
## Package Versions
-**Required:**
-- `ai`: ^5.0.76
-- `@ai-sdk/openai`: ^2.0.53
-- `react`: ^18.2.0
-- `zod`: ^3.23.8
+**v6 (Recommended):**
+- `ai`: ^6.0.6
+- `@ai-sdk/react`: ^3.0.6
+- `@ai-sdk/openai`: ^3.0.2
+- `react`: ^18.3.0
+- `zod`: ^3.24.2
**Next.js:**
-- `next`: ^14.0.0
-- `react`: ^18.2.0
-- `react-dom`: ^18.2.0
+- `next`: ^14.0.0 or ^15.0.0
+- `react`: ^18.3.0 or ^19.0.0
+- `react-dom`: ^18.3.0 or ^19.0.0
---
@@ -306,20 +324,27 @@ This skill documents and prevents 12 common UI errors:
**Verified**:
- ✅ All 11 templates work copy-paste
-- ✅ v5 breaking changes documented
+- ✅ v5→v6 breaking changes documented
+- ✅ Message parts structure documented
- ✅ 12 common errors prevented
-- ✅ Package versions current (2025-11-19)
+- ✅ Package versions current (2026-01-03)
- ✅ Next.js App Router & Pages Router examples
- ✅ Token savings: 55%
---
-## Recent Updates (v1.0.1 - 2025-11-19)
+## Recent Updates
+
+**v1.1.0 (2026-01-03):**
+- **AI SDK v6 Stable**: Updated from v5.0.99/v6.0.0-beta to v6.0.6 stable
+- **Message Parts Structure**: Added v6 breaking change documentation (.content → .parts)
+- **Package Updates**: @ai-sdk/react 1.0.0→3.0.6, @ai-sdk/openai 2.0.68→3.0.2
+- **useAssistant Deprecation**: Added deprecation notice (OpenAI Assistants sunset Aug 26, 2026)
+- **React 19 Support**: Framework support expanded to React 19 and Next.js 15
-- **Updated Package Versions**: AI SDK 5.0.95, @ai-sdk/anthropic 2.0.45, @ai-sdk/openai 2.0.68, @ai-sdk/google 2.0.38
-- **Added Metadata**: YAML frontmatter now includes version tracking and last_verified date
-- **Clarified Engine Versions**: Added comment explaining minimum supported versions in package.json
-- **Zod 3.x for Compatibility**: Templates use Zod 3.23.8 for maximum compatibility
+**v1.0.1 (2025-11-19):**
+- Updated Package Versions: AI SDK 5.0.95
+- Added YAML frontmatter metadata
---
diff --git a/skills/ai-sdk-ui/SKILL.md b/skills/ai-sdk-ui/SKILL.md
index 9d8b8c49..f42c94d4 100644
--- a/skills/ai-sdk-ui/SKILL.md
+++ b/skills/ai-sdk-ui/SKILL.md
@@ -1,33 +1,62 @@
---
name: ai-sdk-ui
description: |
- Build React chat interfaces with Vercel AI SDK v5/v6. Covers v6 beta (agent integration, tool approval,
- auto-submit), v4→v5 migration (breaking changes), useChat/useCompletion/useObject/useAssistant hooks,
+ Build React chat interfaces with Vercel AI SDK v6. Covers v6 stable (agent integration, tool approval,
+ message parts structure, auto-submit), v5→v6 migration, useChat/useCompletion/useObject hooks,
and 12 UI error solutions (stream parsing, stale body values, React update depth).
- Use when: implementing AI SDK v5/v6 chat UIs, migrating v4→v5, troubleshooting "useChat failed to parse
- stream", "useChat no response", or "stale body values" errors, or integrating OpenAI assistants.
+ Use when: implementing AI SDK v6 chat UIs, migrating v5→v6, troubleshooting "useChat failed to parse
+ stream", "useChat no response", or "stale body values" errors, or building AI chat interfaces.
---
# AI SDK UI - Frontend React Hooks
-Frontend React hooks for AI-powered user interfaces with Vercel AI SDK v5/v6.
+Frontend React hooks for AI-powered user interfaces with Vercel AI SDK v6.
-**Version**: AI SDK v5.0.99 (Stable) / v6.0.0-beta.108 (Beta)
-**Framework**: React 18+, Next.js 14+
-**Last Updated**: 2025-11-22
+**Version**: AI SDK v6.0.6 (Stable)
+**Framework**: React 18+/19, Next.js 14+/15+
+**Last Updated**: 2026-01-03
---
-## AI SDK 6 Beta (November 2025)
+## AI SDK v6 Stable (January 2026)
-**Status:** Beta (stable release planned end of 2025)
-**Latest:** [email protected] (Nov 22, 2025)
+**Status:** Stable Release
**Migration:** Minimal breaking changes from v5 → v6
-### New UI Features in v6 Beta
+### New UI Features in v6
-**1. Agent Integration**
+**1. Message Parts Structure (Breaking Change)**
+In v6, message content is now accessed via `.parts` array instead of `.content`:
+
+```tsx
+// ❌ v5 (OLD)
+{messages.map(m => (
+ <div key={m.id}>{m.content}</div>
+))}
+
+// ✅ v6 (NEW)
+{messages.map(m => (
+ <div key={m.id}>
+ {m.parts.map((part, i) => {
+ if (part.type === 'text') return <span key={i}>{part.text}</span>;
+ if (part.type === 'tool-invocation') return <ToolCall key={i} tool={part} />;
+ if (part.type === 'file') return <FilePreview key={i} file={part} />;
+ return null;
+ })}
+ </div>
+))}
+```
+
+**Part Types:**
+- `text` - Text content with `.text` property
+- `tool-invocation` - Tool calls with `.toolName`, `.args`, `.result`
+- `file` - File attachments with `.mimeType`, `.data`
+- `reasoning` - Model reasoning (when available)
+- `source` - Source citations
+
+**3. Agent Integration**
Type-safe messaging with agents using `InferAgentUIMessage<typeof agent>`:
```tsx
@@ -43,7 +72,7 @@ export default function AgentChat() {
}
```
-**2. Tool Approval Workflows (Human-in-the-Loop)**
+**4. Tool Approval Workflows (Human-in-the-Loop)**
Request user confirmation before executing tools:
```tsx
@@ -89,7 +118,7 @@ export default function ChatWithApproval() {
}
```
-**3. Auto-Submit Capability**
+**5. Auto-Submit Capability**
Automatically continue conversation after handling approvals:
```tsx
@@ -104,7 +133,7 @@ export default function AutoSubmitChat() {
}
```
-**4. Structured Output in Chat**
+**6. Structured Output in Chat**
Generate structured data alongside tool calling (previously only available in `useObject`):
```tsx
@@ -164,7 +193,11 @@ See `references/use-chat-migration.md` for complete migration guide.
---
-## useAssistant Hook
+## useAssistant Hook (Deprecated)
+
+> **⚠️ Deprecation Notice**: `useAssistant` is deprecated as of AI SDK v5. OpenAI Assistants API v2
+> will sunset on August 26, 2026. For new projects, use `useChat` with custom backend logic instead.
+> See the **openai-assistants** skill for migration guidance.
Interact with OpenAI-compatible assistant APIs with automatic UI state management.
@@ -376,36 +409,36 @@ See `references/streaming-patterns.md` for comprehensive best practices.
## Package Versions
-**Stable (v5):**
+**Stable (v6 - Recommended):**
```json
{
"dependencies": {
- "ai": "^5.0.99",
- "@ai-sdk/react": "^1.0.0",
- "@ai-sdk/openai": "^2.0.68",
- "react": "^18.2.0",
- "zod": "^3.23.8"
+ "ai": "^6.0.6",
+ "@ai-sdk/react": "^3.0.6",
+ "@ai-sdk/openai": "^3.0.2",
+ "react": "^18.3.0",
+ "zod": "^3.24.2"
}
}
```
-**Beta (v6):**
+**Legacy (v5):**
```json
{
"dependencies": {
- "ai": "6.0.0-beta.108",
- "@ai-sdk/react": "beta",
- "@ai-sdk/openai": "beta"
+ "ai": "^5.0.99",
+ "@ai-sdk/react": "^1.0.0",
+ "@ai-sdk/openai": "^2.0.68"
}
}
```
**Version Notes:**
-- AI SDK v5.0.99 (stable, Nov 2025)
-- AI SDK v6.0.0-beta.108 (beta, Nov 22, 2025) - minimal breaking changes
-- React 18+ (React 19 supported)
-- Next.js 14+ recommended (13.4+ works)
-- Zod 3.23.8+ for schema validation
+- AI SDK v6.0.6 (stable, Jan 2026) - recommended for new projects
+- AI SDK v5.x (legacy) - still supported but not receiving new features
+- React 18.3+ / React 19 supported
+- Next.js 14+/15+ recommended
+- Zod 3.24.2+ for schema validation
---
@@ -466,4 +499,4 @@ See `references/` for:
---
**Production Tested**: WordPress Auditor (https://wordpress-auditor.webfonts.workers.dev)
-**Last Updated**: 2025-11-22
+**Last Updated**: 2026-01-03
diff --git a/skills/azure-auth/README.md b/skills/azure-auth/README.md
index 5cebb3fa..b6587e70 100644
--- a/skills/azure-auth/README.md
+++ b/skills/azure-auth/README.md
@@ -59,7 +59,8 @@ This skill activates when you mention:
2. **Azure AD JWKS URL is non-standard** - Fetch from openid-configuration first
3. **SPA refresh tokens expire in 24 hours** - Handle InteractionRequiredAuthError
4. **storeAuthStateInCookie: true** - Required for Safari/Edge compatibility
-5. **Azure AD B2C sunset May 2025** - Use Entra External ID for new consumer apps
+5. **Azure AD B2C sunset (complete, May 2025)** - Use Entra External ID for new consumer apps
+6. **ADAL retirement (complete, Sept 2025)** - Migrate from ADAL to MSAL; no more security updates
## Package Versions
diff --git a/skills/azure-auth/SKILL.md b/skills/azure-auth/SKILL.md
index c7c71f36..bf0997de 100644
--- a/skills/azure-auth/SKILL.md
+++ b/skills/azure-auth/SKILL.md
@@ -11,8 +11,8 @@ description: |
# Azure Auth - Microsoft Entra ID for React + Cloudflare Workers
**Package Versions**: @azure/[email protected], @azure/[email protected], [email protected]
-**Breaking Changes**: Azure AD B2C sunset May 2025, MSAL v2→v3 migration
-**Last Updated**: 2025-12-15
+**Breaking Changes**: Azure AD B2C sunset (May 2025 - complete), ADAL retirement (Sept 2025 - complete), MSAL v2→v3 migration
+**Last Updated**: 2026-01-03
---
@@ -520,21 +520,46 @@ VITE_AZURE_TENANT_ID=your-tenant-id-guid
---
-## Azure AD B2C Sunset Notice
+## Azure AD B2C Sunset (Complete)
-**Effective May 1, 2025**: Azure AD B2C is no longer available for new customers.
+**Status**: Azure AD B2C has been sunset as of May 1, 2025. New customers cannot sign up for B2C.
-**Migration Path**: Use **Microsoft Entra External ID** for consumer/customer identity scenarios.
+**Existing B2C Customers**: Continue using B2C with standard support, but plan migration to Entra External ID.
-**Key Differences**:
-- Different authority URL format
-- Updated SDK support
-- New pricing model
+**New Projects**: Use **Microsoft Entra External ID** for consumer/customer identity scenarios.
+
+**Migration Path**:
+- Different authority URL format (`{tenant}.ciamlogin.com` vs `{tenant}.b2clogin.com`)
+- Updated SDK support (same MSAL libraries)
+- New pricing model (consumption-based)
See: https://learn.microsoft.com/en-us/entra/external-id/
---
+## ADAL Retirement (Complete)
+
+**Status**: Azure AD Authentication Library (ADAL) was retired on September 30, 2025. Apps using ADAL no longer receive security updates.
+
+**If you're migrating from ADAL**:
+1. ADAL → MSAL migration is required
+2. ADAL used v1.0 endpoints; MSAL uses v2.0 endpoints
+3. Token cache format differs - users must re-authenticate
+4. Scopes replace "resources" in token requests
+
+**Key Migration Changes**:
+```typescript
+// ADAL (deprecated) - resource-based
+acquireToken({ resource: "https://graph.microsoft.com" })
+
+// MSAL (current) - scope-based
+acquireTokenSilent({ scopes: ["https://graph.microsoft.com/User.Read"] })
+```
+
+See: https://learn.microsoft.com/en-us/entra/msal/javascript/migration/msal-net-migration
+
+---
+
## Resources
- [MSAL React Documentation](https://learn.microsoft.com/en-us/entra/msal/javascript/react/)
diff --git a/skills/better-auth/.claude-plugin/plugin.json b/skills/better-auth/.claude-plugin/plugin.json
index 4f9d55bf..cdcc2f13 100644
--- a/skills/better-auth/.claude-plugin/plugin.json
+++ b/skills/better-auth/.claude-plugin/plugin.json
@@ -1,6 +1,6 @@
{
"name": "better-auth",
- "description": "Build authentication systems for TypeScript/Cloudflare Workers with social auth, 2FA, passkeys, organizations, RBAC, and OAuth 2.1 provider capabilities. Self-hosted alternative to Clerk/Auth.js. IMPORTANT: Requires Drizzle ORM or Kysely for D1 - no direct D1 adapter. v1.4.10 (Dec 2025) adds OAuth 2.1 Provider plugin (MCP deprecated), admin impersonation prevention, background tasks, Patreon/Kick/Vercel OAuth providers. v1.4.0 adds ESM-only (breaking), stateless sessions, SCIM. Use when: self-ho",
+ "description": "Build authentication systems for TypeScript/Cloudflare Workers with social auth, 2FA, passkeys, organizations, RBAC, OAuth 2.1 provider, and 15+ plugins. Self-hosted alternative to Clerk/Auth.js. IMPORTANT: Requires Drizzle ORM or Kysely for D1 - no direct D1 adapter. Workers require nodejs_compat flag. v1.4.10 adds OAuth 2.1 Provider (MCP deprecated), Bearer tokens, Google One Tap, SCIM, Anonymous auth, rate limiting, Patreon/Kick/Vercel providers. Use when: self-hosting auth on Cloudflare D1, ",
"version": "1.0.0",
"author": {
"name": "Jeremy Dawes",
diff --git a/skills/better-auth/SKILL.md b/skills/better-auth/SKILL.md
index e73b7309..2ca72ccd 100644
--- a/skills/better-auth/SKILL.md
+++ b/skills/better-auth/SKILL.md
@@ -408,6 +408,128 @@ export const auth = betterAuth({
---
+## Stateless Sessions (v1.4.0+)
+
+Store sessions entirely in signed cookies without database storage:
+
+```typescript
+export const auth = betterAuth({
+ session: {
+ // Stateless: No database storage, session lives in cookie only
+ storage: undefined, // or omit entirely
+
+ // Cookie configuration
+ cookieCache: {
+ enabled: true,
+ maxAge: 60 * 60 * 24 * 7, // 7 days
+ encoding: "jwt", // Use JWT for stateless (not "compact")
+ },
+
+ // Session expiration
+ expiresIn: 60 * 60 * 24 * 7, // 7 days
+ },
+});
+```
+
+**When to Use:**
+
+| Storage Type | Use Case | Tradeoffs |
+|--------------|----------|-----------|
+| **Stateless (cookie-only)** | Read-heavy apps, edge/serverless, no revocation needed | Can't revoke sessions, limited payload size |
+| **D1 Database** | Full session management, audit trails, revocation | Eventual consistency issues |
+| **KV Storage** | Strong consistency, high read performance | Extra binding setup |
+
+**Key Points:**
+- Stateless sessions can't be revoked (user must wait for expiry)
+- Cookie size limit ~4KB (limits session data)
+- Use `encoding: "jwt"` for interoperability, `"jwe"` for encrypted
+- Server must have consistent `BETTER_AUTH_SECRET` across all instances
+
+---
+
+## JWT Key Rotation (v1.4.0+)
+
+Automatically rotate JWT signing keys for enhanced security:
+
+```typescript
+import { jwt } from "better-auth/plugins";
+
+export const auth = betterAuth({
+ plugins: [
+ jwt({
+ // Key rotation (optional, enterprise security)
+ keyRotation: {
+ enabled: true,
+ rotationInterval: 60 * 60 * 24 * 30, // Rotate every 30 days
+ keepPreviousKeys: 3, // Keep 3 old keys for validation
+ },
+
+ // Custom signing algorithm (default: HS256)
+ algorithm: "RS256", // Requires asymmetric keys
+
+ // JWKS endpoint (auto-generated at /api/auth/jwks)
+ exposeJWKS: true,
+ }),
+ ],
+});
+```
+
+**Key Points:**
+- Key rotation prevents compromised key from having indefinite validity
+- Old keys are kept temporarily to validate existing tokens
+- JWKS endpoint at `/api/auth/jwks` for external services
+- Use RS256 for public key verification (microservices)
+- HS256 (default) for single-service apps
+
+---
+
+## Provider Scopes Reference
+
+Common OAuth providers and the scopes needed for user data:
+
+| Provider | Scope | Returns |
+|----------|-------|---------|
+| **Google** | `openid` | User ID only |
+| | `email` | Email address, email_verified |
+| | `profile` | Name, avatar (picture), locale |
+| **GitHub** | `user:email` | Email address (may be private) |
+| | `read:user` | Name, avatar, profile URL, bio |
+| **Microsoft** | `openid` | User ID only |
+| | `email` | Email address |
+| | `profile` | Name, locale |
+| | `User.Read` | Full profile from Graph API |
+| **Discord** | `identify` | Username, avatar, discriminator |
+| | `email` | Email address |
+| **Apple** | `name` | First/last name (first auth only) |
+| | `email` | Email or relay address |
+| **Patreon** | `identity` | User ID, name |
+| | `identity[email]` | Email address |
+| **Vercel** | (auto) | Email, name, avatar |
+
+**Configuration Example:**
+
+```typescript
+socialProviders: {
+ google: {
+ clientId: env.GOOGLE_CLIENT_ID,
+ clientSecret: env.GOOGLE_CLIENT_SECRET,
+ scope: ["openid", "email", "profile"], // All user data
+ },
+ github: {
+ clientId: env.GITHUB_CLIENT_ID,
+ clientSecret: env.GITHUB_CLIENT_SECRET,
+ scope: ["user:email", "read:user"], // Email + full profile
+ },
+ microsoft: {
+ clientId: env.MS_CLIENT_ID,
+ clientSecret: env.MS_CLIENT_SECRET,
+ scope: ["openid", "email", "profile", "User.Read"],
+ },
+}
+```
+
+---
+
## Session Cookie Caching
Three encoding strategies for session cookies:
@@ -1774,12 +1896,12 @@ return c.json({ members });
**Tested with**:
- `@cloudflare/workers-types@latest`
- Node.js 18+, Bun 1.0+
**Breaking changes**:
diff --git a/skills/clerk-auth/.claude-plugin/plugin.json b/skills/clerk-auth/.claude-plugin/plugin.json
index d6dcb558..a1f49cf7 100644
--- a/skills/clerk-auth/.claude-plugin/plugin.json
+++ b/skills/clerk-auth/.claude-plugin/plugin.json
@@ -1,6 +1,6 @@
{
"name": "clerk-auth",
- "description": "Clerk auth with API version 2025-11-10 breaking changes (billing endpoints, payment_source→payment_method), Next.js v6 async auth(), PKCE for custom OAuth, credential stuffing defense. Use when: troubleshooting Missing Clerk Secret Key, JWKS errors, authorizedParties CSRF, JWT size limits (1.2KB), 431 header errors (Vite dev mode), or testing with 424242 OTP. ``` GET /v1/commerce/plans → GET /v1/billing/plans GET /v1/commerce/statements → GET /v1/billing/statements POST /v1/me/commerce/che",
+ "description": "Clerk auth with API Keys beta (Dec 2025), Next.js 16 proxy.ts, API version 2025-11-10 breaking changes, clerkMiddleware() options, webhooks, and component reference. Use when: API keys for users/orgs, Next.js 16 middleware filename, troubleshooting JWKS/CSRF/JWT errors, webhook verification, or testing with 424242 OTP. return ( <div> <h2>API Keys</h2> <APIKeys /> {/* Full CRUD UI for users API keys */} </div> ) secretKey: process.env.CLERK_SECRET_KEY, authorizedParties: [https://yourdomain.com],",
"version": "1.0.0",
"author": {
"name": "Jeremy Dawes",
diff --git a/skills/cloudflare-python-workers/README.md b/skills/cloudflare-python-workers/README.md
index c010c5ce..1817e0c0 100644
--- a/skills/cloudflare-python-workers/README.md
+++ b/skills/cloudflare-python-workers/README.md
@@ -1,7 +1,8 @@
# Cloudflare Python Workers
**Status**: Beta
-**Last Updated**: 2025-12-08
+**Last Updated**: 2026-01-03
## Auto-Trigger Keywords
@@ -97,13 +98,13 @@ Claude automatically uses this skill when you mention:
---
-## Latest Versions (Dec 2025)
+## Latest Versions (Jan 2026)
| Package | Version |
|---------|---------|
-| workers-py | latest |
-| workers-runtime-sdk | latest |
-| wrangler | ^4.0.0 |
+| workers-py | 1.7.0 |
+| workers-runtime-sdk | 0.3.1 |
+| wrangler | 4.54.0 |
| Python | 3.12+ |
---
diff --git a/skills/cloudflare-python-workers/SKILL.md b/skills/cloudflare-python-workers/SKILL.md
index cebeab7a..ef96033a 100644
--- a/skills/cloudflare-python-workers/SKILL.md
+++ b/skills/cloudflare-python-workers/SKILL.md
@@ -12,8 +12,8 @@ description: |
**Status**: Beta (requires `python_workers` compatibility flag)
**Runtime**: Pyodide (Python 3.12+ compiled to WebAssembly)
-**CLI**: pywrangler (Dec 2025)
-**Last Verified**: 2025-12-08
+**Last Verified**: 2026-01-03
## Quick Start (5 Minutes)
@@ -250,7 +250,7 @@ class MyWorkflow(WorkflowEntrypoint):
```jsonc
{
"compatibility_flags": ["python_workers", "python_workflows"],
- "compatibility_date": "2025-08-01",
+ "compatibility_date": "2025-12-01",
"workflows": [
{
"name": "my-workflow",
@@ -544,16 +544,23 @@ See [Cloudflare FastAPI example](https://developers.cloudflare.com/workers/langu
```json
{
- "workers-py": "latest",
- "workers-runtime-sdk": "latest",
- "wrangler": "^4.0.0"
+ "workers-py": "1.7.0",
+ "workers-runtime-sdk": "0.3.1",
+ "wrangler": "4.54.0"
}
```
+**Note**: Always pin versions for reproducible builds. Check [PyPI workers-py](https://pypi.org/project/workers-py/) for latest releases.
+
---
## Production Validation
- Cloudflare changelog: Dec 8, 2025 (Pywrangler + cold start improvements)
+- workers-py 1.7.0: Latest stable (Jan 2026)
- Python Workflows beta: Aug 22, 2025
- Handler pattern change: Aug 14, 2025
+
+**Compatibility Date Guidance**:
+- Use `2025-12-01` for new projects (latest features including pywrangler improvements)
+- Use `2025-08-01` only if you need to match older production Workers
diff --git a/skills/cloudflare-worker-base/README.md b/skills/cloudflare-worker-base/README.md
index c4ae148a..5fbefcac 100644
--- a/skills/cloudflare-worker-base/README.md
+++ b/skills/cloudflare-worker-base/README.md
@@ -1,7 +1,7 @@
# Cloudflare Worker Base Stack
**Status**: ✅ Production Ready
-**Last Updated**: 2025-10-20
+**Last Updated**: 2026-01-03
**Production Example**: https://cloudflare-worker-base-test.webfonts.workers.dev
---
@@ -9,13 +9,15 @@
## What This Skill Does
Sets up production-ready Cloudflare Workers projects with:
-- **Hono v4.10.1** for routing
-- **@cloudflare/vite-plugin v1.13.13** for development
+- **Hono v4.11.3** for routing
+- **@cloudflare/vite-plugin v1.17.1** for development
+- **Wrangler v4.54.0** with auto-provisioning
- **Workers Static Assets** for frontend files
+- **Workers RPC** for service-to-service calls
- **ES Module format** (correct export pattern)
- **wrangler.jsonc** configuration (preferred over .toml)
-**Prevents 6 documented issues** that commonly break Workers projects.
+**Prevents 8 documented issues** that commonly break Workers projects.
---
@@ -34,6 +36,10 @@ Claude automatically uses this skill when you mention:
- ES Module Worker
- Serverless Cloudflare
- Edge computing
+- Workers RPC
+- WorkerEntrypoint
+- Service bindings
+- Auto-provisioning
### Use Cases
- Create Cloudflare Worker
@@ -44,6 +50,9 @@ Claude automatically uses this skill when you mention:
- Initialize Workers project
- Scaffold CF Worker
- Workers with frontend
+- Call Worker from Worker
+- Split Worker into microservices
+- Auto-provision D1/R2/KV bindings
### Common Errors (Triggers Prevention)
- "Cannot read properties of undefined"
@@ -56,6 +65,8 @@ Claude automatically uses this skill when you mention:
- HMR crashes during development
- Routing not working
- Build fails with Vite
+- 404 for fingerprinted assets during gradual rollout
+- 429 errors with run_worker_first on free tier
---
@@ -69,6 +80,8 @@ Claude automatically uses this skill when you mention:
| **#4: HMR Race** | "A hanging Promise was canceled" | [workers-sdk #9518](https://github.com/cloudflare/workers-sdk/issues/9518) | Use [email protected]+ |
| **#5: Upload Race** | Non-deterministic deployment failures | [workers-sdk #7555](https://github.com/cloudflare/workers-sdk/issues/7555) | Wrangler 4.x+ with retry |
| **#6: Format Confusion** | Using deprecated Service Worker format | Cloudflare migration guide | ES Module format |
+| **#7: Gradual Rollouts** | 404 for fingerprinted assets during deployment | [CF Static Assets Docs](https://developers.cloudflare.com/workers/static-assets/routing/advanced/gradual-rollouts) | Avoid gradual rollouts with fingerprinted assets |
+| **#8: Free Tier 429** | 429 errors with run_worker_first | [CF Billing Docs](https://developers.cloudflare.com/workers/static-assets/billing-and-limitations) | Minimize patterns or upgrade to Paid |
---
@@ -80,8 +93,8 @@ npm create cloudflare@latest my-worker -- --type hello-world --ts --git --deploy
# 2. Install dependencies
cd my-worker
-npm install [email protected]
-npm install -D @cloudflare/[email protected] vite@latest
+npm install [email protected]
+npm install -D @cloudflare/[email protected] [email protected]
# 3. Configure (see SKILL.md for full setup)
@@ -99,7 +112,7 @@ npm run deploy
**Without this skill**: ~8,000 tokens (documentation lookups + trial-and-error fixing errors)
**With this skill**: ~3,000 tokens (direct implementation with correct patterns)
-**Savings**: ~60% token reduction + prevents all 6 common errors on first attempt
+**Savings**: ~60% token reduction + prevents all 8 documented errors on first attempt
---
@@ -128,16 +141,16 @@ cloudflare-worker-base/
---
-## Package Versions (Verified 2025-10-20)
+## Package Versions (Verified 2026-01-03)
| Package | Version | Status |
|---------|---------|--------|
-| wrangler | 4.43.0 | ✅ Latest stable |
-| @cloudflare/workers-types | 4.20251011.0 | ✅ Latest |
-| hono | 4.10.1 | ✅ Latest stable |
-| @cloudflare/vite-plugin | 1.13.13 | ✅ Latest (fixes HMR) |
-| vite | Latest | ✅ Compatible |
-| typescript | 5.9.0+ | ✅ Standard |
+| wrangler | 4.54.0 | ✅ Latest stable |
+| @cloudflare/workers-types | 4.20260103.0 | ✅ Latest |
+| hono | 4.11.3 | ✅ Latest stable |
+| @cloudflare/vite-plugin | 1.17.1 | ✅ Latest |
+| vite | 7.2.4 | ✅ Latest stable |
+| typescript | 5.9.3+ | ✅ Standard |
---
@@ -148,9 +161,11 @@ cloudflare-worker-base/
- Adding Vite to an existing Worker
- Setting up Hono routing
- Configuring Static Assets with Workers
-- Encountering any of the 6 documented errors
+- Encountering any of the 8 documented errors
- Need production-ready Worker template
- Want to avoid common Workers pitfalls
+- Setting up Workers RPC / service bindings
+- Want auto-provisioned D1/R2/KV bindings
❌ **Don't use this skill for:**
- Cloudflare Pages projects (use Workers with Static Assets instead)
@@ -172,8 +187,8 @@ cloudflare-worker-base/
## Research Validation
-- ✅ All packages verified on npm (2025-10-20)
-- ✅ All 6 issues have GitHub issue sources
+- ✅ All packages verified on npm (2026-01-03)
+- ✅ All 8 issues have documented sources
- ✅ Working example deployed: https://cloudflare-worker-base-test.webfonts.workers.dev
- ✅ Build time: ~45 minutes (0 errors)
- ✅ Research log: `/home/jez/Documents/claude-skills/planning/research-logs/cloudflare-worker-base.md`
diff --git a/skills/cloudflare-worker-base/SKILL.md b/skills/cloudflare-worker-base/SKILL.md
index 63635ad4..f02a789c 100644
--- a/skills/cloudflare-worker-base/SKILL.md
+++ b/skills/cloudflare-worker-base/SKILL.md
@@ -17,16 +17,19 @@ description: |
# Cloudflare Worker Base Stack
**Production-tested**: cloudflare-worker-base-test (https://cloudflare-worker-base-test.webfonts.workers.dev)
-**Last Updated**: 2025-11-24
+**Last Updated**: 2026-01-03
**Status**: Production Ready ✅
-**Recent Updates (2025)**:
+**Recent Updates (2025-2026)**:
+- **Wrangler 4.55+**: Auto-config for frameworks (`wrangler deploy --x-autoconfig`)
+- **Wrangler 4.45+**: Auto-provisioning for R2, D1, KV bindings (enabled by default)
+- **Workers RPC**: JavaScript-native RPC via `WorkerEntrypoint` class for service bindings
- **March 2025**: Wrangler v4 release (minimal breaking changes, v3 supported until Q1 2027)
- **June 2025**: Native Integrations removed from dashboard (CLI-based approach with wrangler secrets)
- **2025 Platform**: Workers VPC Services, Durable Objects Data Studio, 64 env vars (5KB each), unlimited Cron Triggers per Worker, WebSocket 32 MiB messages, node:fs/Web File System APIs
- **2025 Static Assets**: Gradual rollout asset mismatch issue, free tier 429 errors with run_worker_first, Vite plugin auto-detection
-- **Hono 4.10.x**: Enhanced TypeScript RPC type inference, cloneRawRequest utility, JWT aud validation, auth middleware improvements
+- **Hono 4.11.x**: Enhanced TypeScript RPC type inference, cloneRawRequest utility, JWT aud validation, auth middleware improvements
---
@@ -39,7 +42,7 @@ npm create cloudflare@latest my-worker -- --type hello-world --ts --git --deploy
# 2. Install dependencies
cd my-worker
npm install [email protected]
-npm install -D @cloudflare/[email protected] [email protected]
+npm install -D @cloudflare/[email protected] [email protected]
# 3. Create wrangler.jsonc
{
@@ -153,6 +156,82 @@ export default {
**Free Tier Warning** (2025): `run_worker_first` patterns count toward free tier limits. After exceeding, requests get 429 instead of falling back to free static assets. Use negative patterns (`!/pattern`) or upgrade to Paid plan.
+## Auto-Provisioning (Wrangler 4.45+)
+
+**Default Behavior**: Wrangler automatically provisions R2 buckets, D1 databases, and KV namespaces when deploying. This eliminates manual resource creation steps.
+
+**How It Works**:
+```jsonc
+// wrangler.jsonc - Just define bindings, resources auto-create on deploy
+{
+ "d1_databases": [{ "binding": "DB", "database_name": "my-app-db" }],
+ "r2_buckets": [{ "binding": "STORAGE", "bucket_name": "my-app-files" }],
+ "kv_namespaces": [{ "binding": "CACHE", "title": "my-app-cache" }]
+}
+```
+
+```bash
+# Deploy - resources auto-provisioned if they don't exist
+wrangler deploy
+
+# Disable auto-provisioning (use existing resources only)
+wrangler deploy --no-x-provision
+```
+
+**Benefits**:
+- No separate `wrangler d1 create` / `wrangler r2 create` steps needed
+- Idempotent - existing resources are used, not recreated
+- Works with local dev (`wrangler dev` creates local emulated resources)
+
+
+## Workers RPC (Service Bindings)
+
+**What It Is**: JavaScript-native RPC system for calling methods between Workers. Uses Cap'n Proto under the hood for zero-copy message passing.
+
+**Use Case**: Split your application into multiple Workers (e.g., API Worker + Auth Worker + Email Worker) that call each other with type-safe methods.
+
+**Defining an RPC Service**:
+```typescript
+import { WorkerEntrypoint } from 'cloudflare:workers'
+
+export class AuthService extends WorkerEntrypoint<Env> {
+ async verifyToken(token: string): Promise<{ userId: string; valid: boolean }> {
+ // Access bindings via this.env
+ const session = await this.env.SESSIONS.get(token)
+ return session ? { userId: session.userId, valid: true } : { userId: '', valid: false }
+ }
+
+ async createSession(userId: string): Promise<string> {
+ const token = crypto.randomUUID()
+ await this.env.SESSIONS.put(token, JSON.stringify({ userId }), { expirationTtl: 3600 })
+ return token
+ }
+}
+
+// Default export still handles HTTP requests
+export default { fetch: ... }
+```
+
+**Calling from Another Worker**:
+```typescript
+// wrangler.jsonc
+{
+ "services": [
+ { "binding": "AUTH", "service": "auth-worker", "entrypoint": "AuthService" }
+ ]
+}
+
+// In your main Worker
+const { valid, userId } = await env.AUTH.verifyToken(authHeader)
+```
+
+**Key Points**:
+- **Zero latency**: Workers on same account typically run in same thread
+- **Type-safe**: Full TypeScript support for method signatures
+- **32 MiB limit**: Max serialized RPC message size
+- **Self-bindings**: In `wrangler dev`, shows as `[connected]` for same-Worker calls
+
+
## Bundled Resources
**Templates**: Complete setup files in `templates/` directory (wrangler.jsonc, vite.config.ts, package.json, tsconfig.json, src/index.ts, public/index.html, styles.css, script.js)
@@ -169,18 +248,18 @@ export default {
---
-## Dependencies (Latest Verified 2025-11-24)
+## Dependencies (Latest Verified 2026-01-03)
```json
{
"dependencies": {
- "hono": "^4.10.6"
+ "hono": "^4.11.3"
},
"devDependencies": {
- "@cloudflare/vite-plugin": "^1.15.2",
- "@cloudflare/workers-types": "^4.20251121.0",
+ "@cloudflare/vite-plugin": "^1.17.1",
+ "@cloudflare/workers-types": "^4.20260103.0",
"vite": "^7.2.4",
- "wrangler": "^4.50.0",
+ "wrangler": "^4.54.0",
"typescript": "^5.9.3"
}
}
diff --git a/skills/drizzle-orm-d1/README.md b/skills/drizzle-orm-d1/README.md
index 83db2622..0128aa63 100644
--- a/skills/drizzle-orm-d1/README.md
+++ b/skills/drizzle-orm-d1/README.md
@@ -1,8 +1,8 @@
# Drizzle ORM for Cloudflare D1
**Status**: Production Ready ✅
-**Last Updated**: 2025-10-24
-**Production Tested**: Used across 2025 Cloudflare ecosystem, full D1 compatibility
+**Last Updated**: 2026-01-03
+**Production Tested**: Used across 2025-2026 Cloudflare ecosystem, full D1 compatibility
---
@@ -198,15 +198,15 @@ EOF
---
-## Package Versions (Verified 2025-10-24)
+## Package Versions (Verified 2026-01-03)
| Package | Version | Status |
|---------|---------|--------|
-| drizzle-orm | 0.44.7 | ✅ Latest stable |
-| drizzle-kit | 0.31.5 | ✅ Latest stable |
-| @cloudflare/workers-types | 4.20251014.0 | ✅ Latest |
-| wrangler | 4.43.0+ | ✅ Compatible |
-| better-sqlite3 | 12.4.1 | ✅ Optional (local dev) |
+| drizzle-orm | 0.45.1 | ✅ Latest stable |
+| drizzle-kit | 0.31.8 | ✅ Latest stable |
+| @cloudflare/workers-types | 4.20260103.0 | ✅ Latest |
+| wrangler | 4.54.0+ | ✅ Compatible |
+| better-sqlite3 | 12.4.6 | ✅ Optional (local dev) |
---
diff --git a/skills/drizzle-orm-d1/SKILL.md b/skills/drizzle-orm-d1/SKILL.md
index a7368ba5..4de305ec 100644
--- a/skills/drizzle-orm-d1/SKILL.md
+++ b/skills/drizzle-orm-d1/SKILL.md
@@ -375,16 +375,16 @@ Claude should load these when you need specific deep-dive information:
---
-## Package Versions (Verified 2025-11-25)
+## Package Versions (Verified 2026-01-03)
```json
{
"dependencies": {
- "drizzle-orm": "^0.44.7"
+ "drizzle-orm": "^0.45.1"
},
"devDependencies": {
- "drizzle-kit": "^0.31.7",
- "@cloudflare/workers-types": "^4.20251125.0",
+ "drizzle-kit": "^0.31.8",
+ "@cloudflare/workers-types": "^4.20260103.0",
"better-sqlite3": "^12.4.6"
}
}
diff --git a/skills/elevenlabs-agents/README.md b/skills/elevenlabs-agents/README.md
index 3b778f65..194dc461 100644
--- a/skills/elevenlabs-agents/README.md
+++ b/skills/elevenlabs-agents/README.md
@@ -46,11 +46,12 @@ This skill should be used when working with:
- Tool parameter schemas and validation
**SDKs & Integration**:
-- React SDK (`@elevenlabs/react`)
-- JavaScript SDK (`@elevenlabs/client`)
-- React Native SDK (`@elevenlabs/react-native`)
+- React SDK (`@elevenlabs/[email protected]`)
+- JavaScript SDK (`@elevenlabs/[email protected]`)
+- React Native SDK (`@elevenlabs/[email protected]`)
- Swift SDK (iOS/macOS)
-- Embeddable widget
+- Embeddable widget (`@elevenlabs/[email protected]`)
+- Widget core (`@elevenlabs/[email protected]`)
- Scribe (Real-Time Speech-to-Text) - Beta
**Testing & Analytics**:
@@ -82,7 +83,7 @@ This skill should be used when working with:
## Errors Prevented
-This skill prevents 21+ common errors:
+This skill prevents 27+ common errors:
1. **Package deprecation** (@11labs/* → @elevenlabs/*)
2. **Android audio cutoff** (connectionDelay configuration)
@@ -142,13 +143,15 @@ const agent = await client.agents.create({
## Package Versions
-**🚨 IMPORTANT**: ElevenLabs migrated packages in August 2025. Use these current versions:
+**🚨 IMPORTANT**: ElevenLabs migrated packages in August 2025. Use these current versions (January 2026):
-- `@elevenlabs/elevenlabs-js`: 2.21.0
-- `@elevenlabs/agents-cli`: 0.2.0
-- `@elevenlabs/react`: 0.9.1
-- `@elevenlabs/client`: 0.9.1
-- `@elevenlabs/react-native`: 0.5.2
+- `@elevenlabs/react`: 0.12.3 (Dec 2025: localization, Scribe fixes)
+- `@elevenlabs/client`: 0.12.2 (Dec 2025: localization)
+- `@elevenlabs/react-native`: 0.5.7 (Dec 2025: mic fixes, speed param)
+- `@elevenlabs/elevenlabs-js`: 2.28.0 (Dec 2025: Scribe audio format fix)
+- `@elevenlabs/agents-cli`: 0.6.1
+- `@elevenlabs/convai-widget-embed`: 0.5.5 (new - widget embedding)
+- `@elevenlabs/convai-widget-core`: 0.5.5 (new - widget core)
**DEPRECATED** (do not use):
- `@11labs/react` - Deprecated August 2025
diff --git a/skills/elevenlabs-agents/SKILL.md b/skills/elevenlabs-agents/SKILL.md
index 69e18af3..ca1e55f1 100644
--- a/skills/elevenlabs-agents/SKILL.md
+++ b/skills/elevenlabs-agents/SKILL.md
@@ -22,21 +22,34 @@ ElevenLabs Agents Platform is a comprehensive solution for building production-r
3. **TTS (Text-to-Speech)** - Converts text to speech (5000+ voices, 31 languages, low latency)
4. **Turn-Taking Model** - Proprietary model that handles conversation timing and interruptions
-### 🚨 Package Updates (November 2025)
+### 🚨 Package Updates (January 2026)
ElevenLabs migrated to new scoped packages in August 2025. **Current packages:**
```bash
-npm install @elevenlabs/[email protected] # React SDK
-npm install @elevenlabs/[email protected] # JavaScript SDK
-npm install @elevenlabs/[email protected] # React Native SDK
-npm install @elevenlabs/[email protected] # Base SDK (Python: [email protected])
+npm install @elevenlabs/[email protected] # React SDK (Dec 2025: localization, Scribe fixes)
+npm install @elevenlabs/[email protected] # JavaScript SDK (Dec 2025: localization)
+npm install @elevenlabs/[email protected] # React Native SDK (Dec 2025: mic fixes, speed param)
+npm install @elevenlabs/[email protected] # Base SDK (Dec 2025: Scribe audio format fix)
npm install -g @elevenlabs/[email protected] # CLI
```
**DEPRECATED:** `@11labs/react`, `@11labs/client` (uninstall if present)
-**⚠️ CRITICAL:** v1 TTS models will be removed 2025-12-15. Migrate to Turbo v2/v2.5.
+**⚠️ CRITICAL:** v1 TTS models were removed on 2025-12-15. Use Turbo v2/v2.5 only.
+
+### December 2025 Updates
+
+**Widget Improvements (v0.5.5)**:
+- Microphone permission handling improvements (better UX for permission requests)
+- Text-only mode (`chat_mode: true`) no longer requires microphone access
+- `end_call` system tool fix (no longer omits last message)
+
+**SDK Fixes**:
+- Scribe audio format parameter now correctly transmitted (v2.28.0)
+- React Native infinite loop fix in useEffect dependencies (v0.5.6)
+- Speed parameter support in TTS overrides (v0.5.7)
+- Localization support for chat UI terms (v0.12.3)
---
@@ -351,11 +364,14 @@ const { startConversation, stopConversation, status, isSpeaking } = useConversat
### Platforms
-- **React**: `@elevenlabs/[email protected]`
-- **JavaScript**: `@elevenlabs/[email protected]` - `new Conversation({...})`
-- **React Native**: `@elevenlabs/[email protected]` - Expo SDK 47+, iOS/macOS (custom build required, no Expo Go)
+- **React**: `@elevenlabs/[email protected]`
+- **JavaScript**: `@elevenlabs/[email protected]` - `new Conversation({...})`
+- **React Native**: `@elevenlabs/[email protected]` - Expo SDK 47+, iOS/macOS (custom build required, no Expo Go)
- **Swift**: iOS 14.0+, macOS 11.0+, Swift 5.9+
- **Embeddable Widget**: `<script src="https://elevenlabs.io/convai-widget/index.js"></script>`
+- **Widget Packages** (Dec 2025):
+ - `@elevenlabs/[email protected]` - For embedding in existing apps
+ - `@elevenlabs/[email protected]` - Core widget functionality
### Scribe (Real-Time Speech-to-Text - Beta 2025)
@@ -846,5 +862,5 @@ This skill composes well with:
---
**Production Tested**: WordPress Auditor, Customer Support Agents, AgentFlow (webhook integration)
-**Last Updated**: 2025-12-06
-**Package Versions**: [email protected], @elevenlabs/[email protected], @elevenlabs/[email protected], @elevenlabs/[email protected], @elevenlabs/[email protected], @elevenlabs/[email protected]
+**Last Updated**: 2026-01-03
+**Package Versions**: [email protected], @elevenlabs/[email protected], @elevenlabs/[email protected], @elevenlabs/[email protected], @elevenlabs/[email protected], @elevenlabs/[email protected]
diff --git a/skills/fastmcp/README.md b/skills/fastmcp/README.md
index 378dc44d..5522c24a 100644
--- a/skills/fastmcp/README.md
+++ b/skills/fastmcp/README.md
@@ -16,9 +16,11 @@ This skill provides production-tested patterns, templates, and error prevention
- **Icons Support**: Visual representations for better UX
- **API Integration**: OpenAPI/Swagger auto-generation, FastAPI conversion, manual integration
- **Cloud Deployment**: FastMCP Cloud requirements and common pitfalls
-- **Error Prevention**: 25 documented errors with solutions
+- **Error Prevention**: 28 documented errors with solutions
- **Production Patterns**: Self-contained architecture, connection pooling, caching, retry logic
- **Context Features**: Elicitation, progress tracking, sampling, state management
+- **Background Tasks (v2.14.0+)**: Long-running operations with progress tracking
+- **Sampling with Tools (v2.14.1+)**: Agentic workflows where LLM can call tools
- **Testing**: Unit and integration testing patterns
- **Client Configuration**: Claude Desktop, Claude Code CLI
@@ -139,7 +141,7 @@ This is the highest token savings in the skills collection!
## Errors Prevented
-This skill prevents 25 common errors:
+This skill prevents 28 common errors:
### Core Server Errors (1-5)
1. **Missing server object** - Module-level export for FastMCP Cloud
@@ -184,6 +186,11 @@ This skill prevents 25 common errors:
24. **Icon data URI format error** - Invalid data URI format
25. **Lifespan behavior change (v2.13.0)** - Per-server vs per-session
+### v2.14.0 Migration Errors (26-28)
+26. **BearerAuthProvider removed** - Use OAuth patterns instead
+27. **Context.get_http_request() removed** - Use alternative context methods
+28. **fastmcp.Image import changed** - New import path required
+
## What's Included
### Templates (19)
@@ -211,12 +218,12 @@ This skill prevents 25 common errors:
**Configuration:**
- `.env.example` - Environment variables
-- `requirements.txt` - Package dependencies (fastmcp>=2.13.0)
+- `requirements.txt` - Package dependencies (fastmcp>=2.14.0)
- `pyproject.toml` - Package configuration
### Reference Docs (11)
**Error & Deployment:**
-- `common-errors.md` - 25 errors with solutions
+- `common-errors.md` - 28 errors with solutions
- `cloud-deployment.md` - FastMCP Cloud guide
- `cli-commands.md` - FastMCP CLI reference
@@ -260,7 +267,7 @@ Example prompts:
## Production Validation
**Tested With:**
-- FastMCP 2.13.0+ (v2.13.0 "Cache Me If You Can" release)
+- FastMCP 2.14.x (v2.14.0+ with Background Tasks and Sampling with Tools)
- Python 3.10, 3.11, 3.12
- Storage backends: Memory, Disk, Redis
- Middleware: All 8 built-in types
@@ -269,20 +276,24 @@ Example prompts:
- OpenAPI integrations
- FastAPI conversions
- Server composition (import/mount)
+- Background Tasks with Docket scheduler
+- Sampling with Tools (AnthropicSamplingHandler)
**Based On:**
-- Official FastMCP v2.13.0 documentation
+- Official FastMCP v2.14.x documentation
- FastMCP updates: https://gofastmcp.com/updates.md
- Storage backends: https://gofastmcp.com/servers/storage-backends.md
- Icons: https://gofastmcp.com/servers/icons.md
- Progress: https://gofastmcp.com/servers/progress.md
+- Background Tasks: https://gofastmcp.com/servers/tasks.md
+- Sampling: https://gofastmcp.com/servers/sampling.md
- Real-world production patterns
- SimPro MCP server case study
- FastMCP Cloud deployment experience
## Package Info
-- **Package**: `fastmcp>=2.13.0`
+- **Package**: `fastmcp>=2.14.0`
- **Python**: `>=3.10`
- **Repository**: https://github.com/jlowin/fastmcp
- **Cloud**: https://fastmcp.cloud
@@ -292,6 +303,7 @@ Example prompts:
- `cryptography` (encrypted storage)
- `httpx` (async HTTP)
- `pydantic` (validation)
+ - `docket` (background task scheduling, optional)
## Related Skills
@@ -304,13 +316,13 @@ Example prompts:
## Skill Metadata
-- **Version**: 2.0.0
+- **Version**: 2.1.0
- **License**: MIT
- **Token Savings**: 90-95%
-- **Errors Prevented**: 25
+- **Errors Prevented**: 28
- **Production Tested**: ✅
-- **Last Updated**: 2025-11-04
-- **Breaking Changes**: v2.13.0 lifespan behavior (per-server vs per-session)
+- **Last Updated**: 2026-01-03
+- **Breaking Changes**: v2.14.0 removes BearerAuthProvider and Context.get_http_request()
---
diff --git a/skills/fastmcp/SKILL.md b/skills/fastmcp/SKILL.md
index ccfa7940..3ce51c4d 100644
--- a/skills/fastmcp/SKILL.md
+++ b/skills/fastmcp/SKILL.md
@@ -53,29 +53,39 @@ fastmcp dev server.py
python server.py --transport http --port 8000
```
-## What's New in v2.13.1 (November 2025)
-
-**Meta Parameter Support:**
-- ToolResult can return metadata alongside results (enables OpenAI Apps SDK integration)
-- Client-sent meta parameters now supported
-
-**Authentication Improvements:**
-- `DebugTokenVerifier` for custom token validation during development
-- OCI (Oracle Cloud Infrastructure) authentication provider added
-- Enhanced OAuth error handling and messaging
-- Improved CSP policies for OAuth consent screens
-
-**Utilities & Developer Experience:**
-- `Image.to_data_uri()` method added for easier icon embedding
-- Manual Client initialization control (defer connection until needed)
-- 20+ bug fixes: URL encoding in Cursor deeplinks, OAuth metadata endpoint handling, Windows test timeouts, token cache expiration
-
-**Security Update:**
-- **CVE-2025-61920**: authlib updated to 1.6.5
-- Safer Windows API validation for Cursor deeplink URLs
+## What's New in v2.14.x (December 2025)
+
+### v2.14.2 (December 31, 2024)
+- MCP SDK pinned to <2.x for compatibility
+- Supabase provider gains `auth_route` parameter
+- Bug fixes: outputSchema `$ref` resolution, OAuth Proxy validation, OpenAPI 3.1 support
+
+### v2.14.1: Sampling with Tools (SEP-1577)
+- **`ctx.sample()` now accepts tools** for agentic workflows
+- `AnthropicSamplingHandler` promoted from experimental
+- `ctx.sample_step()` for single LLM call returning `SampleStep`
+- Python 3.13 support added
+
+### v2.14.0: Background Tasks (SEP-1686)
+- **Protocol-native background tasks** for long-running operations
+- Add `task=True` to async decorators; progress tracking without blocking
+- MCP 2025-11-25 specification support
+- SEP-1699: SSE polling and event resumability
+- SEP-1330: Multi-select enum elicitation schemas
+- SEP-1034: Default values for elicitation schemas
+
+**⚠️ Breaking Changes (v2.14.0):**
+- `BearerAuthProvider` module removed (use `JWTVerifier` or `OAuthProxy`)
+- `Context.get_http_request()` method removed
+- `fastmcp.Image` top-level import removed (use `from fastmcp.utilities import Image`)
+- `enable_docket`, `enable_tasks` settings removed (always enabled)
+- `run_streamable_http_async()`, `sse_app()`, `streamable_http_app()`, `run_sse_async()` methods removed
+- `dependencies` parameter removed from decorators
+- `output_schema=False` support eliminated
+- `FASTMCP_SERVER_` environment variable prefix deprecated
**Known Compatibility:**
-- MCP SDK 1.21.1 excluded due to integration test failures (use 1.21.0 or 1.22.0+)
+- MCP SDK pinned to <2.x (v2.14.2+)
---
@@ -145,6 +155,103 @@ async def enhance_text(text: str, context: Context) -> str:
return response["content"]
```
+## Background Tasks (v2.14.0+)
+
+Long-running operations that report progress without blocking clients. Uses Docket task scheduler (always enabled in v2.14.0+).
+
+**Basic Usage:**
+```python
[email protected](task=True) # Enable background task mode
+async def analyze_large_dataset(dataset_id: str, context: Context) -> dict:
+ """Analyze large dataset with progress tracking."""
+ data = await fetch_dataset(dataset_id)
+
+ for i, chunk in enumerate(data.chunks):
+ # Report progress to client
+ await context.report_progress(
+ current=i + 1,
+ total=len(data.chunks),
+ message=f"Processing chunk {i + 1}/{len(data.chunks)}"
+ )
+ await process_chunk(chunk)
+
+ return {"status": "complete", "records_processed": len(data)}
+```
+
+**Task States:** `pending` → `running` → `completed` / `failed` / `cancelled`
+
+**When to Use:**
+- Operations taking >30 seconds (LLM timeout risk)
+- Batch processing with per-item status updates
+- Operations that may need user input mid-execution
+- Long-running API calls or data processing
+
+**Important:** Tasks execute through Docket scheduler. Cannot execute tasks through proxies (will raise error).
+
+## Sampling with Tools (v2.14.1+)
+
+Servers can pass tools to `ctx.sample()` for agentic workflows where the LLM can call tools during sampling.
+
+**Agentic Sampling:**
+```python
+from fastmcp import Context
+from fastmcp.sampling import AnthropicSamplingHandler
+
+# Configure sampling handler
+mcp = FastMCP("Agent Server")
+mcp.add_sampling_handler(AnthropicSamplingHandler(api_key=os.getenv("ANTHROPIC_API_KEY")))
+
+async def research_topic(topic: str, context: Context) -> dict:
+ """Research a topic using agentic sampling with tools."""
+
+ # Define tools available during sampling
+ research_tools = [
+ {
+ "name": "search_web",
+ "description": "Search the web for information",
+ "inputSchema": {"type": "object", "properties": {"query": {"type": "string"}}}
+ },
+ {
+ "name": "fetch_url",
+ "description": "Fetch content from a URL",
+ "inputSchema": {"type": "object", "properties": {"url": {"type": "string"}}}
+ }
+ ]
+
+ # Sample with tools - LLM can call these tools during reasoning
+ result = await context.sample(
+ messages=[{"role": "user", "content": f"Research: {topic}"}],
+ tools=research_tools,
+ max_tokens=4096
+ )
+
+ return {"research": result.content, "tools_used": result.tool_calls}
+```
+
+**Single-Step Sampling:**
+```python
+async def get_single_response(prompt: str, context: Context) -> dict:
+ """Get a single LLM response without tool loop."""
+
+ # sample_step() returns SampleStep for inspection
+ step = await context.sample_step(
+ messages=[{"role": "user", "content": prompt}],
+ temperature=0.7
+ )
+
+ return {
+ "content": step.content,
+ "model": step.model,
+ "stop_reason": step.stop_reason
+ }
+```
+
+**Sampling Handlers:**
+- `AnthropicSamplingHandler` - For Claude models (v2.14.1+)
+- `OpenAISamplingHandler` - For GPT models
+
## Storage Backends
Built on `py-key-value-aio` for OAuth tokens, response caching, persistent state.
@@ -507,6 +614,36 @@ def create_server():
**Cause:** Expecting v2.12 behavior (per-session) in v2.13.0+ (per-server)
**Solution:** v2.13.0+ lifespans run ONCE per server, not per session - use middleware for per-session logic
+### Error 26: BearerAuthProvider Removed (v2.14.0)
+**Error:** `ImportError: cannot import name 'BearerAuthProvider' from 'fastmcp.auth'`
+**Cause:** `BearerAuthProvider` module removed in v2.14.0
+**Solution:** Use `JWTVerifier` for token validation or `OAuthProxy` for full OAuth flows:
+```python
+# Before (v2.13.x)
+from fastmcp.auth import BearerAuthProvider
+
+# After (v2.14.0+)
+from fastmcp.auth import JWTVerifier
+auth = JWTVerifier(issuer="...", audience="...", public_key="...")
+```
+
+### Error 27: Context.get_http_request() Removed (v2.14.0)
+**Error:** `AttributeError: 'Context' object has no attribute 'get_http_request'`
+**Cause:** `Context.get_http_request()` method removed in v2.14.0
+**Solution:** Access request info through middleware or use `InitializeResult` exposed to middleware
+
+### Error 28: Image Import Path Changed (v2.14.0)
+**Error:** `ImportError: cannot import name 'Image' from 'fastmcp'`
+**Cause:** `fastmcp.Image` top-level import removed in v2.14.0
+**Solution:** Use new import path:
+```python
+# Before (v2.13.x)
+from fastmcp import Image
+
+# After (v2.14.0+)
+from fastmcp.utilities import Image
+```
+
---
## Production Patterns, Testing, CLI
@@ -539,10 +676,10 @@ FASTMCP_LOG_LEVEL=DEBUG fastmcp dev # Debug logging
## References & Summary
**Official:** https://github.com/jlowin/fastmcp, https://fastmcp.cloud, https://modelcontextprotocol.io, Context7: `/jlowin/fastmcp`
-**Related Skills:** openai-api, claude-api, cloudflare-worker-base
-**Package Versions:** fastmcp>=2.13.1, Python>=3.10, httpx, pydantic, py-key-value-aio, cryptography
+**Related Skills:** openai-api, claude-api, cloudflare-worker-base, typescript-mcp
+**Package Versions:** fastmcp>=2.14.2, Python>=3.10, httpx, pydantic, py-key-value-aio, cryptography
-**15 Key Takeaways:**
+**17 Key Takeaways:**
1. Module-level server export (FastMCP Cloud)
2. Persistent storage (Disk/Redis) for OAuth/caching
3. Server lifespans for resource management
@@ -558,7 +695,9 @@ FASTMCP_LOG_LEVEL=DEBUG fastmcp dev # Debug logging
13. Production patterns (utils, pooling, retry, caching)
14. OpenAPI auto-generation
15. Health checks + monitoring
+16. **Background tasks** for long-running operations (`task=True`)
+17. **Sampling with tools** for agentic workflows (`ctx.sample(tools=[...])`)
-**Production Readiness:** Encrypted storage, 4 auth patterns, 8 middleware types, modular composition, OAuth security (consent screens, PKCE, RFC 7662), response caching, connection pooling, timing middleware
+**Production Readiness:** Encrypted storage, 4 auth patterns, 8 middleware types, modular composition, OAuth security (consent screens, PKCE, RFC 7662), response caching, connection pooling, timing middleware, background tasks, agentic sampling
-**Prevents 25 errors. 90-95% token savings.**
+**Prevents 25+ errors. 90-95% token savings.**
diff --git a/skills/google-gemini-api/README.md b/skills/google-gemini-api/README.md
index de28b7b1..583f265a 100644
--- a/skills/google-gemini-api/README.md
+++ b/skills/google-gemini-api/README.md
@@ -3,7 +3,7 @@
**Google Gemini API Skill** for Claude Code CLI
**Status**: Phase 2 Complete ✅
-**Latest SDK**: @google/[email protected] (⚠️ NOT @google/generative-ai which is DEPRECATED)
+**Latest SDK**: @google/[email protected] (⚠️ NOT @google/generative-ai which is DEPRECATED)
**API Coverage**: Text Generation, Multimodal, Function Calling, Streaming, Thinking Mode, **Context Caching**, **Code Execution**, **Grounding with Google Search**
---
@@ -11,7 +11,7 @@
## ⚠️ CRITICAL: SDK Migration Warning
**DEPRECATED**: `@google/generative-ai` (sunset Nov 30, 2025)
-**CURRENT**: `@google/genai` v1.27+ (use this!)
+**CURRENT**: `@google/genai` v1.34+ (use this!)
If you see code using `@google/generative-ai`, it's outdated! This skill uses the **correct current SDK**.
@@ -19,7 +19,7 @@ If you see code using `@google/generative-ai`, it's outdated! This skill uses th
## What This Skill Does
-This skill provides comprehensive knowledge for building applications with **Google Gemini API** using the **correct current SDK** (@google/genai v1.27+) and **accurate 2025 model information**.
+This skill provides comprehensive knowledge for building applications with **Google Gemini API** using the **correct current SDK** (@google/genai v1.34+) and **accurate 2025-2026 model information**.
### Key Capabilities
@@ -307,21 +307,24 @@ for await (const chunk of response) {
---
-## Current Models (2025)
+## Current Models (2025-2026)
-### Gemini 2.5 Series (General Availability)
+### Gemini 3 Series (December 2025)
+- **gemini-3-flash**: 🆕 Best speed+quality balance for production (1,048,576 input / 65,536 output tokens)
+
+### Gemini 2.5 Series (General Availability - Stable)
- **gemini-2.5-pro**: State-of-the-art thinking model (1,048,576 input / 65,536 output tokens)
- **gemini-2.5-flash**: Best price-performance (1,048,576 input / 65,536 output tokens)
- **gemini-2.5-flash-lite**: Cost-optimized, fastest (1,048,576 input / 65,536 output tokens)
### Feature Matrix
-| Feature | Pro | Flash | Flash-Lite |
-|---------|-----|-------|------------|
-| Thinking Mode | ✅ | ✅ | ✅ |
-| Function Calling | ✅ | ✅ | ❌ |
-| Multimodal | ✅ | ✅ | ✅ |
-| Streaming | ✅ | ✅ | ✅ |
-| System Instructions | ✅ | ✅ | ✅ |
+| Feature | 3-Flash | 2.5-Pro | 2.5-Flash | 2.5-Flash-Lite |
+|---------|---------|---------|-----------|----------------|
+| Thinking Mode | ✅ | ✅ | ✅ | ✅ |
+| Function Calling | ✅ | ✅ | ✅ | ❌ |
+| Multimodal | ✅ | ✅ | ✅ | ✅ |
+| Streaming | ✅ | ✅ | ✅ | ✅ |
+| System Instructions | ✅ | ✅ | ✅ | ✅ |
**⚠️ Note**: Gemini 2.5 Flash-Lite does NOT support function calling!
@@ -402,7 +405,7 @@ ls -la ~/.claude/skills/google-gemini-api
### Package Version
```bash
-npm install @google/[email protected]
+npm install @google/[email protected]
```
⚠️ **NOT**:
@@ -415,9 +418,10 @@ npm install @google/generative-ai # DEPRECATED!
export GEMINI_API_KEY="..."
```
-### Models Overview (2025)
+### Models Overview (2025-2026)
+- **Gemini 3 Flash**: `gemini-3-flash` (🆕 best speed+quality for production)
- **Gemini 2.5 Pro**: `gemini-2.5-pro` (thinking, function calling, multimodal)
-- **Gemini 2.5 Flash**: `gemini-2.5-flash` (best price-performance)
+- **Gemini 2.5 Flash**: `gemini-2.5-flash` (proven price-performance)
- **Gemini 2.5 Flash-Lite**: `gemini-2.5-flash-lite` (fastest, no function calling)
### Context Windows (ACCURATE)
@@ -439,6 +443,6 @@ export GEMINI_API_KEY="..."
---
-**Production Validated**: Templates tested with @google/[email protected]
-**Last Updated**: 2025-10-25
+**Production Validated**: Templates tested with @google/[email protected]
+**Last Updated**: 2026-01-03
**Maintainer**: Jeremy Dawes | Jezweb
diff --git a/skills/google-gemini-api/SKILL.md b/skills/google-gemini-api/SKILL.md
index f6def1da..5fb0eba7 100644
--- a/skills/google-gemini-api/SKILL.md
+++ b/skills/google-gemini-api/SKILL.md
@@ -18,8 +18,8 @@ description: |
# Google Gemini API - Complete Guide
**Version**: Phase 2 Complete + Gemini 3 ✅
-**Package**: @google/[email protected] (⚠️ NOT @google/generative-ai)
-**Last Updated**: 2025-11-26 (Package update + FileSearch preview)
+**Package**: @google/[email protected] (⚠️ NOT @google/generative-ai)
+**Last Updated**: 2026-01-03 (v1.34.0 + Gemini 3 Flash)
---
@@ -89,7 +89,7 @@ This skill uses the **correct current SDK** and provides a complete migration gu
**CORRECT SDK:**
```bash
-npm install @google/[email protected]
+npm install @google/[email protected]
```
**❌ WRONG (DEPRECATED):**
@@ -148,16 +148,25 @@ console.log(data.candidates[0].content.parts[0].text);
## Current Models (2025)
-### Gemini 3 Series (Preview - November 2025)
+### Gemini 3 Series (December 2025)
+
+#### gemini-3-flash
+- **Context**: 1,048,576 input tokens / 65,536 output tokens
+- **Status**: 🆕 Generally Available (December 2025)
+- **Description**: Google's fastest and most efficient Gemini 3 model for production workloads
+- **Best for**: High-throughput applications, low-latency responses, cost-sensitive production
+- **Features**: Enhanced multimodal, function calling, streaming, thinking mode
+- **Benchmark Performance**: Matches gemini-2.5-pro quality at gemini-2.5-flash speed/cost
+- **Recommended for**: Production use cases requiring speed + quality balance
#### gemini-3-pro-preview
- **Context**: TBD (documentation pending)
-- **Status**: 🆕 Preview release (November 18, 2025)
+- **Status**: Preview release (November 18, 2025)
- **Description**: Google's newest and most intelligent AI model with state-of-the-art reasoning
- **Best for**: Most complex reasoning tasks, advanced multimodal understanding, benchmark-critical applications
- **Features**: Enhanced multimodal (text, image, video, audio, PDF), function calling, streaming
- **Benchmark Performance**: Outperforms Gemini 2.5 Pro on every major AI benchmark
-- **⚠️ Preview**: Use for evaluation. Consider gemini-2.5-pro for production until stable release
+- **⚠️ Preview**: Use for evaluation. Consider gemini-3-flash or gemini-2.5-pro for production
### Gemini 2.5 Series (General Availability - Stable)
@@ -184,16 +193,16 @@ console.log(data.candidates[0].content.parts[0].text);
### Model Feature Matrix
-| Feature | 3-Pro (Preview) | 2.5-Pro | 2.5-Flash | 2.5-Flash-Lite |
-|---------|-----------------|---------|-----------|----------------|
-| Thinking Mode | TBD | ✅ Default ON | ✅ Default ON | ✅ Default ON |
-| Function Calling | ✅ | ✅ | ✅ | ✅ |
-| Multimodal | ✅ Enhanced | ✅ | ✅ | ✅ |
-| Streaming | ✅ | ✅ | ✅ | ✅ |
-| System Instructions | ✅ | ✅ | ✅ | ✅ |
-| Context Window | TBD | 1,048,576 in | 1,048,576 in | 1,048,576 in |
-| Output Tokens | TBD | 65,536 max | 65,536 max | 65,536 max |
-| Status | Preview | Stable | Stable | Stable |
+| Feature | 3-Flash | 3-Pro (Preview) | 2.5-Pro | 2.5-Flash | 2.5-Flash-Lite |
+|---------|---------|-----------------|---------|-----------|----------------|
+| Thinking Mode | ✅ Default ON | TBD | ✅ Default ON | ✅ Default ON | ✅ Default ON |
+| Function Calling | ✅ | ✅ | ✅ | ✅ | ✅ |
+| Multimodal | ✅ Enhanced | ✅ Enhanced | ✅ | ✅ | ✅ |
+| Streaming | ✅ | ✅ | ✅ | ✅ | ✅ |
+| System Instructions | ✅ | ✅ | ✅ | ✅ | ✅ |
+| Context Window | 1,048,576 in | TBD | 1,048,576 in | 1,048,576 in | 1,048,576 in |
+| Output Tokens | 65,536 max | TBD | 65,536 max | 65,536 max | 65,536 max |
+| Status | **GA** | Preview | Stable | Stable | Stable |
### ⚠️ Context Window Correction
@@ -2116,7 +2125,7 @@ const response = await chat.sendMessage(message);
### Installation
```bash
-npm install @google/[email protected]
+npm install @google/[email protected]
```
### Environment
@@ -2124,9 +2133,10 @@ npm install @google/[email protected]
export GEMINI_API_KEY="..."
```
-### Models (2025)
+### Models (2025-2026)
+- `gemini-3-flash` (1,048,576 in / 65,536 out) - **NEW** Best speed+quality balance
- `gemini-2.5-pro` (1,048,576 in / 65,536 out) - Best for complex reasoning
-- `gemini-2.5-flash` (1,048,576 in / 65,536 out) - Best price-performance balance
+- `gemini-2.5-flash` (1,048,576 in / 65,536 out) - Proven price-performance balance
- `gemini-2.5-flash-lite` (1,048,576 in / 65,536 out) - Fastest, most cost-effective
### Basic Generation
@@ -2167,6 +2177,6 @@ config: {
---
-**Last Updated**: 2025-11-26
-**Production Validated**: All features tested with @google/[email protected]
+**Last Updated**: 2026-01-03
+**Production Validated**: All features tested with @google/[email protected]
**Phase**: 2 Complete ✅ (All Core + Advanced Features)
diff --git a/skills/hono-routing/.claude-plugin/plugin.json b/skills/hono-routing/.claude-plugin/plugin.json
index 7495ee64..00e47372 100644
--- a/skills/hono-routing/.claude-plugin/plugin.json
+++ b/skills/hono-routing/.claude-plugin/plugin.json
@@ -1,6 +1,6 @@
{
"name": "hono-routing",
- "description": "Build type-safe APIs with Hono - fast, lightweight routing for Cloudflare Workers, Deno, Bun, and Node.js. Set up routing patterns, middleware composition, request validation (Zod/Valibot/Typia/ArkType), RPC client/server with full type inference, and error handling with HTTPException. Use when: building APIs with Hono, setting up request validation with schema libraries, creating type-safe RPC client/server communication, implementing custom middleware chains, handling errors with HTTPException",
+ "description": "Build type-safe APIs with Hono - fast, lightweight routing for Cloudflare Workers, Deno, Bun, and Node.js. Covers routing, middleware, validation (Zod/Valibot), RPC client/server, streaming (SSE, streamText), WebSocket, security middleware (secureHeaders, CSRF), and combine middleware. Use when: building APIs with Hono, streaming responses (SSE, AI), WebSocket connections, security middleware (CSRF, secureHeaders), request validation, RPC communication, or troubleshooting validation hooks, RPC t",
"version": "1.0.0",
"author": {
"name": "Jeremy Dawes",
diff --git a/skills/mcp-oauth-cloudflare/README.md b/skills/mcp-oauth-cloudflare/README.md
index a213224f..75e67945 100644
--- a/skills/mcp-oauth-cloudflare/README.md
+++ b/skills/mcp-oauth-cloudflare/README.md
@@ -62,14 +62,19 @@ mcp-oauth-cloudflare/
```json
{
- "@cloudflare/workers-oauth-provider": "^0.1.0",
- "agents": "^0.2.32",
+ "@cloudflare/workers-oauth-provider": "^0.2.2",
+ "agents": "^0.3.3",
"@modelcontextprotocol/sdk": "^1.25.1",
- "hono": "^4.6.14",
- "zod": "^3.24.1"
+ "hono": "^4.11.3",
+ "zod": "^3.24.2"
}
```
+**v0.2.0+ Features:**
+- Refresh token support for long-lived sessions
+- Bearer token + OAuth coexistence for CLI tools
+- Improved state validation
+
## Why OAuth Over Auth Tokens?
| Auth Tokens | OAuth |
diff --git a/skills/mcp-oauth-cloudflare/SKILL.md b/skills/mcp-oauth-cloudflare/SKILL.md
index 7a09df52..25c1d0be 100644
--- a/skills/mcp-oauth-cloudflare/SKILL.md
+++ b/skills/mcp-oauth-cloudflare/SKILL.md
@@ -6,8 +6,8 @@ description: |
Use when building MCP servers that need user authentication, implementing Dynamic Client Registration (DCR) for Claude.ai, or replacing static auth tokens with OAuth flows. Prevents CSRF vulnerabilities, state validation errors, and OAuth misconfiguration.
license: MIT
metadata:
- version: "1.0.0"
- last_verified: "2025-12-18"
+ version: "1.1.0"
+ last_verified: "2026-01-03"
keywords:
- mcp oauth
- mcp authentication
@@ -510,6 +510,123 @@ echo "openid email profile https://www.googleapis.com/auth/drive" | npx wrangler
- Some scopes require OAuth consent screen verification for production use
- `drive.file` only accesses files the app created or user explicitly opened with it
+## Refresh Token Lifecycle (v0.2.0+)
+
+For long-lived sessions (Google APIs, Gmail, Drive), you need refresh tokens.
+
+### Requesting Refresh Tokens
+
+Add `access_type=offline` to the authorization URL:
+
+```typescript
+// In google-handler.ts, redirectToGoogle function
+googleAuthUrl.searchParams.set('access_type', 'offline');
+googleAuthUrl.searchParams.set('prompt', 'consent'); // Forces new refresh token
+```
+
+**When to use `access_type=offline`:**
+- MCP server needs to call Google APIs after initial auth
+- Long-running sessions (background tasks, scheduled jobs)
+- User data synchronization
+
+**When to use `access_type=online` (default):**
+- Simple user identification only
+- No API calls beyond initial auth
+- Short sessions (admin login, one-time actions)
+
+### Storing Refresh Tokens
+
+Store encrypted in your Props type:
+
+```typescript
+export type Props = {
+ id: string;
+ email: string;
+ name: string;
+ picture?: string;
+ accessToken: string;
+ refreshToken?: string; // Store when received
+ tokenExpiresAt?: number; // Track expiration
+};
+```
+
+### Refreshing Expired Tokens
+
+```typescript
+export async function refreshAccessToken(
+ client_id: string,
+ client_secret: string,
+ refresh_token: string
+): Promise<{ accessToken: string; expiresAt: number } | null> {
+ const resp = await fetch('https://oauth2.googleapis.com/token', {
+ method: 'POST',
+ headers: { 'Content-Type': 'application/x-www-form-urlencoded' },
+ body: new URLSearchParams({
+ client_id,
+ client_secret,
+ refresh_token,
+ grant_type: 'refresh_token',
+ }).toString(),
+ });
+
+ if (!resp.ok) return null; // Token revoked, requires re-auth
+
+ const body = await resp.json();
+ return {
+ accessToken: body.access_token,
+ expiresAt: Date.now() + (body.expires_in * 1000),
+ };
+}
+```
+
+### When Refresh Tokens Become Invalid
+
+- User revokes access at https://myaccount.google.com/permissions
+- User changes password (if using certain scopes)
+- Token unused for 6+ months
+- OAuth app credentials regenerated
+
+**Handle gracefully**: Catch refresh failures and redirect to re-authorize.
+
+## Bearer Token + OAuth Coexistence
+
+Modern MCP servers support **both** OAuth (Claude.ai) and Bearer tokens (CLI tools, ElevenLabs):
+
+```typescript
+// In your main fetch handler
+export default {
+ async fetch(request: Request, env: Env, ctx: ExecutionContext) {
+ const authHeader = request.headers.get('Authorization');
+ const url = new URL(request.url);
+
+ // Check for Bearer token auth on MCP endpoints
+ if (env.AUTH_TOKEN && authHeader?.startsWith('Bearer ') &&
+ (url.pathname === '/sse' || url.pathname === '/mcp')) {
+ const token = authHeader.slice(7);
+
+ if (token === env.AUTH_TOKEN) {
+ // Programmatic access (CLI, ElevenLabs)
+ const headerAuthCtx = { ...ctx, props: { source: 'bearer' } };
+ return mcpHandler.fetch(request, env, headerAuthCtx);
+ }
+ // NOT env.AUTH_TOKEN - fall through to OAuth provider
+ // (it may be an OAuth token from Claude.ai)
+ }
+
+ // OAuth flow for web clients
+ return oauthProvider.fetch(request, env, ctx);
+ }
+};
+```
+
+**Critical Pattern**: Non-matching Bearer tokens must **fall through** to OAuth provider, not return 401. OAuth tokens from Claude.ai are also sent as Bearer tokens.
+
+**Adding AUTH_TOKEN secret:**
+```bash
+python3 -c "import secrets; print(secrets.token_urlsafe(32))" | npx wrangler secret put AUTH_TOKEN
+npx wrangler deploy # Required to activate
+```
+
## Common Issues
### "Invalid state" Error
diff --git a/skills/mcp-oauth-cloudflare/templates/package.json b/skills/mcp-oauth-cloudflare/templates/package.json
index 04fe8b4e..88c3fe9b 100644
--- a/skills/mcp-oauth-cloudflare/templates/package.json
+++ b/skills/mcp-oauth-cloudflare/templates/package.json
@@ -18,15 +18,15 @@
"author": "",
"license": "MIT",
"devDependencies": {
- "@cloudflare/workers-types": "^4.20241127.0",
- "typescript": "^5.7.2",
- "wrangler": "^3.94.0"
+ "@cloudflare/workers-types": "^4.20260103.0",
+ "typescript": "^5.7.3",
+ "wrangler": "^4.54.0"
},
"dependencies": {
- "@cloudflare/workers-oauth-provider": "^0.1.0",
+ "@cloudflare/workers-oauth-provider": "^0.2.2",
"@modelcontextprotocol/sdk": "^1.25.1",
- "agents": "^0.2.32",
- "hono": "^4.6.14",
- "zod": "^3.24.1"
+ "agents": "^0.3.3",
+ "hono": "^4.11.3",
+ "zod": "^3.24.2"
}
}
diff --git a/skills/nextjs/README.md b/skills/nextjs/README.md
index 66f2b350..6140f877 100644
--- a/skills/nextjs/README.md
+++ b/skills/nextjs/README.md
@@ -1,7 +1,8 @@
# Next.js App Router - Production Patterns
-**Version**: Next.js 16.0.0 | **React**: 19.2.0 | **Node.js**: 20.9+
+**Version**: Next.js 16.1.1 | **React**: 19.2.0 | **Node.js**: 20.9+
**Production Tested**: ✅ | **Token Savings**: 65-70% | **Errors Prevented**: 18+
+**Last Updated**: 2026-01-03 | **Security**: 3 CVEs patched in 16.1.1
---
diff --git a/skills/nextjs/SKILL.md b/skills/nextjs/SKILL.md
index f4e82e36..3aa72c9c 100644
--- a/skills/nextjs/SKILL.md
+++ b/skills/nextjs/SKILL.md
@@ -9,10 +9,10 @@ allowed-tools: ["Read", "Write", "Edit", "Bash", "Glob", "Grep"]
# Next.js App Router - Production Patterns
-**Version**: Next.js 16.0.0
+**Version**: Next.js 16.1.1
**React Version**: 19.2.0
**Node.js**: 20.9+
-**Last Verified**: 2025-10-24
+**Last Verified**: 2026-01-03
---
@@ -20,15 +20,17 @@ allowed-tools: ["Read", "Write", "Edit", "Bash", "Glob", "Grep"]
1. [When to Use This Skill](#when-to-use-this-skill)
2. [When NOT to Use This Skill](#when-not-to-use-this-skill)
-3. [Next.js 16 Breaking Changes](#nextjs-16-breaking-changes)
-4. [Cache Components & Caching APIs](#cache-components--caching-apis)
-5. [Route Handlers (Next.js 16 Updates)](#route-handlers-nextjs-16-updates)
-6. [Proxy vs Middleware](#proxy-vs-middleware)
-7. [Parallel Routes - default.js Required](#parallel-routes---defaultjs-required-breaking)
-8. [React 19.2 Features](#react-192-features)
-9. [Turbopack (Stable in Next.js 16)](#turbopack-stable-in-nextjs-16)
-10. [Common Errors & Solutions](#common-errors--solutions)
-11. [Templates & Resources](#templates--resources)
+3. [Security Advisories (December 2025)](#security-advisories-december-2025)
+4. [Next.js 16.1 Updates](#nextjs-161-updates-december-2025)
+5. [Next.js 16 Breaking Changes](#nextjs-16-breaking-changes)
+6. [Cache Components & Caching APIs](#cache-components--caching-apis)
+7. [Route Handlers (Next.js 16 Updates)](#route-handlers-nextjs-16-updates)
+8. [Proxy vs Middleware](#proxy-vs-middleware)
+9. [Parallel Routes - default.js Required](#parallel-routes---defaultjs-required-breaking)
+10. [React 19.2 Features](#react-192-features)
+11. [Turbopack (Stable in Next.js 16)](#turbopack-stable-in-nextjs-16)
+12. [Common Errors & Solutions](#common-errors--solutions)
+13. [Templates & Resources](#templates--resources)
---
@@ -74,6 +76,39 @@ Do NOT use this skill for:
---
+## Security Advisories (December 2025)
+
+**CRITICAL**: Three security vulnerabilities were disclosed in December 2025 affecting Next.js with React Server Components:
+
+| CVE | Severity | Affected | Description |
+|-----|----------|----------|-------------|
+| **CVE-2025-66478** | CRITICAL (10.0) | 15.x, 16.x | Server Component arbitrary code execution |
+| **CVE-2025-55184** | HIGH | 13.x-16.x | Denial of Service via malformed request |
+| **CVE-2025-55183** | MEDIUM | 13.x-16.x | Source code exposure in error responses |
+
+**Action Required**: Upgrade to Next.js 16.1.1 or later immediately.
+
+```bash
+npm update next
+# Verify: npm list next should show 16.1.1+
+```
+
+**References**:
+- https://nextjs.org/security
+- https://github.com/vercel/next.js/security/advisories
+
+---
+
+## Next.js 16.1 Updates (December 2025)
+
+**New in 16.1**:
+- **Turbopack File System Caching (STABLE)**: Now enabled by default in development
+- **Next.js Bundle Analyzer**: New experimental feature for bundle analysis
+- **Improved Debugging**: Enhanced `next dev --inspect` support
+- **Security Fixes**: Addresses CVE-2025-66478, CVE-2025-55184, CVE-2025-55183
+
+---
+
## Next.js 16 Breaking Changes
**IMPORTANT**: Next.js 16 introduces multiple breaking changes. Read this section carefully if migrating from Next.js 15 or earlier.
diff --git a/skills/openai-api/.claude-plugin/plugin.json b/skills/openai-api/.claude-plugin/plugin.json
index 4de42671..484f5bb7 100644
--- a/skills/openai-api/.claude-plugin/plugin.json
+++ b/skills/openai-api/.claude-plugin/plugin.json
@@ -1,6 +1,6 @@
{
"name": "openai-api",
- "description": "Build with OpenAIs stateless APIs - Chat Completions (GPT-5, GPT-4o), Embeddings, Images (DALL-E 3), Audio (Whisper + TTS), and Moderation. Includes Node.js SDK and fetch-based approaches for Cloudflare Workers. Use when: implementing chat completions with GPT-5/GPT-4o, streaming responses with SSE, using function calling/tools, creating structured outputs with JSON schemas, generating embeddings for RAG (text-embedding-3-small/large), generating images with DALL-E 3, editing images with GPT-Ima",
+ "description": "Build with OpenAIs stateless APIs - Chat Completions (GPT-5.2, GPT-5.1, o3, o4-mini), Realtime API (voice), Batch API (50% savings), Embeddings, Images (DALL-E 3), Audio (Whisper + TTS), and Moderation. Node.js SDK and fetch for Cloudflare Workers. Use when: implementing chat with GPT-5.2/5.1/o3/o4-mini, Realtime voice API (WebSocket), Batch API for cost savings, xhigh reasoning (GPT-5.2), streaming responses, function calling/tools, structured outputs, embeddings for RAG, DALL-E 3 images, Whisp",
"version": "1.0.0",
"author": {
"name": "Jeremy Dawes",
diff --git a/skills/openai-api/SKILL.md b/skills/openai-api/SKILL.md
index 4e5d8964..330ddf50 100644
--- a/skills/openai-api/SKILL.md
+++ b/skills/openai-api/SKILL.md
@@ -128,8 +128,8 @@ The Chat Completions API is the core interface for interacting with OpenAI's lan
- **gpt-4o**: Multimodal model with vision capabilities
- **gpt-4-turbo**: Fast GPT-4 variant
-#### GPT-4 Series
-- **gpt-4**: Original GPT-4 model
+#### GPT-4 Series (Legacy)
+- **gpt-4**: Original GPT-4 model *(deprecated - use gpt-5 or gpt-4o)*
### Basic Request Structure
diff --git a/skills/openai-apps-mcp/README.md b/skills/openai-apps-mcp/README.md
index 20102b7c..ff85f745 100644
--- a/skills/openai-apps-mcp/README.md
+++ b/skills/openai-apps-mcp/README.md
@@ -1,7 +1,7 @@
# OpenAI Apps MCP
**Status**: Production Ready ✅
-**Last Updated**: 2025-11-17
+**Last Updated**: 2026-01-03
**Production Tested**: Based on Toolbase-AI template, tested with MCP Inspector and ChatGPT
---
@@ -102,8 +102,8 @@ npm create cloudflare@latest my-openai-app -- --type hello-world --ts --git --de
cd my-openai-app
# 2. Install dependencies
-npm install @modelcontextprotocol/[email protected] [email protected] [email protected]
-npm install -D @cloudflare/[email protected] [email protected]
+npm install @modelcontextprotocol/[email protected] [email protected] [email protected]
+npm install -D @cloudflare/[email protected] [email protected]
# 3. Create MCP server (see SKILL.md for code)
# Create src/index.ts with Hono + MCP server
@@ -133,16 +133,16 @@ npx @modelcontextprotocol/inspector https://my-openai-app.workers.dev/mcp
---
-## Package Versions (Verified 2025-11-17)
+## Package Versions (Verified 2026-01-03)
| Package | Version | Status |
|---------|---------|--------|
-| @modelcontextprotocol/sdk | 1.21.0 | ✅ Latest stable |
-| hono | 4.10.2 | ✅ Latest stable |
-| zod | 3.25.76 | ✅ Latest stable |
-| @cloudflare/vite-plugin | 1.13.13 | ✅ Latest stable |
-| vite | 7.1.9 | ✅ Latest stable |
-| wrangler | 4.42.2 | ✅ Latest stable |
+| @modelcontextprotocol/sdk | 1.25.1 | ✅ Latest stable |
+| hono | 4.11.3 | ✅ Latest stable |
+| zod | 4.1.13 | ✅ Latest stable (see Zod 4 migration notes) |
+| @cloudflare/vite-plugin | 1.17.1 | ✅ Latest stable |
+| vite | 7.2.4 | ✅ Latest stable |
+| wrangler | 4.54.0 | ✅ Latest stable |
---
diff --git a/skills/openai-apps-mcp/SKILL.md b/skills/openai-apps-mcp/SKILL.md
index 294fd31d..e30d1d33 100644
--- a/skills/openai-apps-mcp/SKILL.md
+++ b/skills/openai-apps-mcp/SKILL.md
@@ -10,9 +10,9 @@ allowed-tools: [Read, Write, Edit, Bash, Glob, Grep]
# Building OpenAI Apps with Stateless MCP Servers
**Status**: Production Ready
-**Last Updated**: 2025-11-26
+**Last Updated**: 2026-01-03
**Dependencies**: `cloudflare-worker-base`, `hono-routing` (optional)
-**Latest Versions**: @modelcontextprotocol/[email protected], [email protected], [email protected], [email protected]
+**Latest Versions**: @modelcontextprotocol/[email protected], [email protected], [email protected], [email protected]
---
@@ -33,8 +33,8 @@ Build **ChatGPT Apps** using **MCP (Model Context Protocol)** servers on Cloudfl
```bash
npm create cloudflare@latest my-openai-app -- --type hello-world --ts --git --deploy false
cd my-openai-app
-npm install @modelcontextprotocol/[email protected] [email protected] [email protected]
-npm install -D @cloudflare/[email protected] [email protected]
+npm install @modelcontextprotocol/[email protected] [email protected] [email protected]
+npm install -D @cloudflare/[email protected] [email protected]
```
### 2. Configure wrangler.jsonc
@@ -221,6 +221,29 @@ return {
<!-- ❌ Blocked --> <script src="https://cdn.example.com/lib.js"></script>
```
+## MCP SDK 1.25.x Updates (December 2025)
+
+**Breaking Changes** from @modelcontextprotocol/[email protected] → 1.25.x:
+- Removed loose type exports (Prompts, Resources, Roots, Sampling, Tools) - use specific schemas
+- ES2020 target required (previous: ES2018)
+- `setRequestHandler` is now typesafe - incorrect schemas throw type errors
+
+**New Features**:
+- **Tasks** (v1.24.0+): Long-running operations with progress tracking
+- **Sampling with Tools** (v1.24.0+): Tools can request model sampling
+- **OAuth Client Credentials** (M2M): Machine-to-machine authentication
+
+**Migration**: If using loose type imports, update to specific schema imports:
+```typescript
+// ❌ Old (removed in 1.25.0)
+import { Tools } from '@modelcontextprotocol/sdk/types.js';
+
+// ✅ New (1.25.1+)
+import { ListToolsRequestSchema, CallToolRequestSchema } from '@modelcontextprotocol/sdk/types.js';
+```
+
+---
+
## Zod 4.0 Migration Notes (MAJOR UPDATE - July 2025)
**Breaking Changes** from [email protected] → 4.x:
@@ -250,15 +273,15 @@ try {
```json
{
"dependencies": {
- "@modelcontextprotocol/sdk": "^1.23.0",
- "hono": "^4.10.6",
+ "@modelcontextprotocol/sdk": "^1.25.1",
+ "hono": "^4.11.3",
"zod": "^4.1.13"
},
"devDependencies": {
- "@cloudflare/vite-plugin": "^1.15.2",
- "@cloudflare/workers-types": "^4.20250531.0",
+ "@cloudflare/vite-plugin": "^1.17.1",
+ "@cloudflare/workers-types": "^4.20260103.0",
"vite": "^7.2.4",
- "wrangler": "^4.50.0"
+ "wrangler": "^4.54.0"
}
}
```
diff --git a/skills/openai-assistants/.claude-plugin/plugin.json b/skills/openai-assistants/.claude-plugin/plugin.json
index 926aa438..04c67022 100644
--- a/skills/openai-assistants/.claude-plugin/plugin.json
+++ b/skills/openai-assistants/.claude-plugin/plugin.json
@@ -1,6 +1,6 @@
{
"name": "openai-assistants",
- "description": "Build stateful chatbots with OpenAI Assistants API v2 - Code Interpreter, File Search (10k files), Function Calling. ⚠️ Sunset H1 2026; use openai-responses for new projects. Use when: building stateful chatbots, implementing RAG, or troubleshooting thread has active run, vector store delays, polling timeouts, or file upload errors. name: Math Tutor, instructions: You are a math tutor. Use code interpreter for calculations., tools: [{ type: code_interpreter }], model: gpt-4o, role: user, con",
+ "description": "Build stateful chatbots with OpenAI Assistants API v2 - Code Interpreter, File Search (10k files), Function Calling. ⚠️ Deprecated (sunset August 26, 2026); use openai-responses for new projects. Use when: maintaining legacy chatbots, implementing RAG with vector stores, or troubleshooting thread has active run, vector store delays, polling timeouts, or file upload errors. name: Math Tutor, instructions: You are a math tutor. Use code interpreter for calculations., tools: [{ type: code_inter",
"version": "1.0.0",
"author": {
"name": "Jeremy Dawes",
diff --git a/skills/openai-assistants/README.md b/skills/openai-assistants/README.md
index b9c6ba26..42099bae 100644
--- a/skills/openai-assistants/README.md
+++ b/skills/openai-assistants/README.md
@@ -2,7 +2,7 @@
Complete guide for OpenAI's Assistants API v2: stateful conversational AI with built-in tools, vector stores, and thread management.
-**⚠️ DEPRECATION NOTICE**: OpenAI plans to sunset Assistants API in H1 2026. Use [openai-responses](../openai-responses/) for new projects.
+**⚠️ DEPRECATION NOTICE**: OpenAI will sunset Assistants API on **August 26, 2026**. Use [openai-responses](../openai-responses/) for new projects.
---
@@ -64,7 +64,7 @@ This skill automatically activates when you mention:
- ✅ **Streaming** - Real-time Server-Sent Events (SSE)
### Implementation Approaches
-- ✅ Node.js SDK ([email protected])
+- ✅ Node.js SDK ([email protected])
- ✅ Fetch API (Cloudflare Workers compatible)
---
@@ -203,7 +203,7 @@ openai-assistants/
## Dependencies
```bash
-npm install [email protected]
+npm install [email protected]
```
**Environment Variables:**
@@ -227,14 +227,14 @@ export OPENAI_API_KEY="sk-..."
**✅ Production Ready** (with deprecation timeline)
**Tested With:**
- Node.js 18+
- Cloudflare Workers
- Next.js 14+
**Deprecation Timeline:**
- Dec 2024: v1 deprecated
-- H1 2026: v2 sunset planned
+- August 26, 2026: v2 sunset
- Migration path: Responses API
---
@@ -245,9 +245,9 @@ export OPENAI_API_KEY="sk-..."
OpenAI announced plans to deprecate Assistants API in favor of Responses API:
-- **Timeline**: H1 2026 sunset
+- **Timeline**: August 26, 2026 sunset
- **Replacement**: [Responses API](https://platform.openai.com/docs/api-reference/responses)
-- **Migration**: 12-18 month window
+- **Migration**: 8 months remaining (from Jan 2026)
- **New Projects**: Use `openai-responses` skill instead
This skill remains valuable for:
@@ -278,6 +278,6 @@ This skill remains valuable for:
---
-**Last Updated**: 2025-10-25
-**Status**: Production Ready (Deprecated H1 2026)
+**Last Updated**: 2026-01-03
+**Status**: Production Ready (Deprecated August 26, 2026)
**License**: MIT
diff --git a/skills/openai-assistants/SKILL.md b/skills/openai-assistants/SKILL.md
index 83b1c567..478f077f 100644
--- a/skills/openai-assistants/SKILL.md
+++ b/skills/openai-assistants/SKILL.md
@@ -1,18 +1,18 @@
---
name: openai-assistants
description: |
- Build stateful chatbots with OpenAI Assistants API v2 - Code Interpreter, File Search (10k files), Function Calling. ⚠️ Sunset H1 2026; use openai-responses for new projects.
+ Build stateful chatbots with OpenAI Assistants API v2 - Code Interpreter, File Search (10k files), Function Calling. ⚠️ Deprecated (sunset August 26, 2026); use openai-responses for new projects.
- Use when: building stateful chatbots, implementing RAG, or troubleshooting "thread has active run", vector store delays, polling timeouts, or file upload errors.
+ Use when: maintaining legacy chatbots, implementing RAG with vector stores, or troubleshooting "thread has active run", vector store delays, polling timeouts, or file upload errors.
---
# OpenAI Assistants API v2
-**Status**: Production Ready (⚠️ Deprecated - Sunset H1 2026)
-**Package**: [email protected]
-**Last Updated**: 2025-11-27
+**Status**: Production Ready (⚠️ Deprecated - Sunset August 26, 2026)
+**Package**: [email protected]
+**Last Updated**: 2026-01-03
**v1 Deprecated**: December 18, 2024
-**v2 Sunset**: H1 2026 (migrate to Responses API)
+**v2 Sunset**: August 26, 2026 (migrate to Responses API)
---
@@ -20,7 +20,7 @@ description: |
**OpenAI is deprecating Assistants API in favor of [Responses API](../openai-responses/SKILL.md).**
-**Timeline**: v1 deprecated Dec 18, 2024 | v2 sunset H1 2026
+**Timeline**: v1 deprecated Dec 18, 2024 | v2 sunset August 26, 2026
**Use this skill if**: Maintaining legacy apps or migrating existing code (12-18 month window)
**Don't use if**: Starting new projects (use `openai-responses` skill instead)
@@ -32,7 +32,7 @@ description: |
## Quick Start
```bash
-npm install [email protected]
+npm install [email protected]
```
```typescript
diff --git a/skills/openai-assistants/templates/package.json b/skills/openai-assistants/templates/package.json
index 9e7531e5..cb1d1589 100644
--- a/skills/openai-assistants/templates/package.json
+++ b/skills/openai-assistants/templates/package.json
@@ -13,11 +13,11 @@
"vector-store": "tsx templates/vector-store-setup.ts"
},
"dependencies": {
- "openai": "^6.7.0"
+ "openai": "^6.15.0"
},
"devDependencies": {
- "@types/node": "^20.10.0",
- "tsx": "^4.7.0",
- "typescript": "^5.3.3"
+ "@types/node": "^22.10.0",
+ "tsx": "^4.19.0",
+ "typescript": "^5.7.3"
}
}
diff --git a/skills/tailwind-v4-shadcn/README.md b/skills/tailwind-v4-shadcn/README.md
index 599ef475..1dfb15ae 100644
--- a/skills/tailwind-v4-shadcn/README.md
+++ b/skills/tailwind-v4-shadcn/README.md
@@ -1,7 +1,7 @@
# Tailwind v4 + shadcn/ui Skill
**Status**: Production Ready ✅
-**Last Updated**: 2025-11-09
+**Last Updated**: 2026-01-03
**Production Tested**: WordPress Auditor (https://wordpress-auditor.webfonts.workers.dev)
---
@@ -137,17 +137,17 @@ When Claude detects trigger keywords, it should:
```json
{
"dependencies": {
- "tailwindcss": "^4.1.17",
- "@tailwindcss/vite": "^4.1.17",
+ "tailwindcss": "^4.1.18",
+ "@tailwindcss/vite": "^4.1.18",
"clsx": "^2.1.1",
- "tailwind-merge": "^3.3.1",
+ "tailwind-merge": "^3.4.0",
"react": "^19.2.0",
"react-dom": "^19.2.0"
},
"devDependencies": {
- "@types/node": "^24.10.0",
- "@vitejs/plugin-react": "^5.1.0",
- "vite": "^7.2.2",
+ "@types/node": "^25.0.3",
+ "@vitejs/plugin-react": "^5.1.2",
+ "vite": "^7.3.0",
"typescript": "~5.9.0",
"tw-animate-css": "^1.4.0"
}
@@ -179,13 +179,13 @@ Result: Working project in ~1 minute, 0 errors
```yaml
name: tailwind-v4-shadcn
-version: 1.0.0
+version: 2.0.1
category: frontend-setup
stack: [vite, react, tailwind-v4, shadcn-ui]
confidence: high # Production-tested pattern
auto_invoke_threshold: 0.7 # Invoke if 70%+ match
maintained_by: [email protected]
-last_tested: 2025-10-20
+last_tested: 2026-01-03
```
---
diff --git a/skills/tailwind-v4-shadcn/SKILL.md b/skills/tailwind-v4-shadcn/SKILL.md
index bdc17929..e50f4abd 100644
--- a/skills/tailwind-v4-shadcn/SKILL.md
+++ b/skills/tailwind-v4-shadcn/SKILL.md
@@ -9,8 +9,8 @@ description: |
# Tailwind v4 + shadcn/ui Production Stack
**Production-tested**: WordPress Auditor (https://wordpress-auditor.webfonts.workers.dev)
-**Last Updated**: 2025-11-28
-**Versions**: [email protected], @tailwindcss/[email protected]
+**Last Updated**: 2026-01-03
+**Versions**: [email protected], @tailwindcss/[email protected]
**Status**: Production Ready ✅
---
@@ -368,7 +368,7 @@ See `reference/migration-guide.md` for complete guide.
---
-**Last Updated**: 2025-11-28
-**Skill Version**: 2.0.0
-**Tailwind v4**: 4.1.17 (Latest)
+**Last Updated**: 2026-01-03
+**Skill Version**: 2.0.1
+**Tailwind v4**: 4.1.18 (Latest)
**Production**: WordPress Auditor (https://wordpress-auditor.webfonts.workers.dev)
diff --git a/skills/tanstack-query/.claude-plugin/plugin.json b/skills/tanstack-query/.claude-plugin/plugin.json
index da375a62..d3ff25cd 100644
--- a/skills/tanstack-query/.claude-plugin/plugin.json
+++ b/skills/tanstack-query/.claude-plugin/plugin.json
@@ -1,6 +1,6 @@
{
"name": "tanstack-query",
- "description": "Manage server state in React with TanStack Query v5. Set up queries with useQuery, mutations with useMutation, configure QueryClient caching strategies, implement optimistic updates, and handle infinite scroll with useInfiniteQuery. Use when: setting up data fetching in React projects, migrating from v4 to v5, or fixing object syntax required errors, query callbacks removed issues, cacheTime renamed to gcTime, isPending vs isLoading confusion, keepPreviousData removed problems. defaultOptions: {",
+ "description": "Manage server state in React with TanStack Query v5. Covers useMutationState (cross-component mutations), simplified optimistic updates, throwOnError for error boundaries, network mode (offline/PWA), useQueries combine, infiniteQueryOptions, and maxPages for memory optimization. Use when: setting up data fetching, useMutationState, optimistic updates with variables, throwOnError error boundaries, offline/PWA network mode, or fixing v4→v5 migration errors (object syntax, gcTime, isPending, keep",
"version": "1.0.0",
"author": {
"name": "Jeremy Dawes",
diff --git a/skills/tanstack-router/README.md b/skills/tanstack-router/README.md
index a527f922..664cbe98 100644
--- a/skills/tanstack-router/README.md
+++ b/skills/tanstack-router/README.md
@@ -4,16 +4,36 @@ Type-safe, file-based routing for React applications with Cloudflare Workers int
## Auto-Trigger Keywords
-- "TanStack Router", "type-safe routing", "file-based routing"
-- "React routing TypeScript", "route loaders", "data loading routes"
-- "Cloudflare Workers routing", "SPA routing"
+### Primary Keywords
+- "TanStack Router", "tanstack router", "@tanstack/react-router"
+- "type-safe routing", "file-based routing", "React routing TypeScript"
+- "route loaders", "data loading routes", "SPA routing"
+
+### Feature Keywords
+- "virtual file routes", "@tanstack/virtual-file-routes", "programmatic routes"
+- "search params validation", "validateSearch", "@tanstack/zod-adapter"
+- "beforeLoad", "route guards", "authenticated routes", "protected routes"
+- "errorComponent", "route error boundary", "notFoundComponent"
+
+### Integration Keywords
+- "Cloudflare Workers routing", "TanStack Query integration"
+- "route-level data fetching", "prefetch routes"
+
+### Error Keywords
+- "routeTree.gen.ts missing", "route type inference not working"
+- "loader not running", "TanStack Form memory leak"
+- "virtual routes conflict", "validateSearch page reload"
## What This Provides
### 🎯 Core Features
- **Type-safe navigation** - Compile-time route validation
- **File-based routing** - Automatic route generation from file structure
+- **Virtual file routes** - Programmatic route configuration (v1.140+)
- **Route loaders** - Data fetching at route level
+- **Search params validation** - Zod adapter with type safety
+- **Error boundaries** - Route-level error handling with reset
+- **beforeLoad guards** - Authentication without content flash
- **TanStack Query integration** - Coordinate routing + data fetching
- **Cloudflare Workers ready** - Deploy SPAs to Workers + Static Assets
@@ -55,15 +75,19 @@ export const Route = createFileRoute('/posts/$postId')({
<Link to="/posts/$postId" params={{ postId: '123' }} />
```
-## 7 Errors Prevented
+## 11 Errors Prevented
1. Devtools dependency resolution
-2. Vite plugin ordering
+2. Vite plugin ordering (CRITICAL)
3. Type registration missing
4. Loader not running
-5. Memory leaks (known issue)
+5. Memory leaks with TanStack Form (known issue #5734)
6. Middleware undefined errors
7. API route errors after restart
+8. Virtual routes index/layout conflict (#5421)
+9. Search params type inference regression (#3100)
+10. TanStack Start validators on reload (#3711)
+11. Flash of protected content (beforeLoad pattern)
## Token Efficiency
@@ -78,10 +102,14 @@ export const Route = createFileRoute('/posts/$postId')({
```bash
npm install @tanstack/react-router @tanstack/router-devtools
npm install -D @tanstack/router-plugin
+# Optional: Search params validation
+npm install @tanstack/zod-adapter zod
+# Optional: Virtual file routes
+npm install @tanstack/virtual-file-routes
```
-**Latest:** v1.134.13
+**Latest:** v1.144.0
---
-**Version:** 1.0.0 | **Last Updated:** 2025-11-07
+**Version:** 1.1.0 | **Last Updated:** 2026-01-03
diff --git a/skills/tanstack-router/SKILL.md b/skills/tanstack-router/SKILL.md
index 3041739f..7066cd52 100644
--- a/skills/tanstack-router/SKILL.md
+++ b/skills/tanstack-router/SKILL.md
@@ -14,12 +14,14 @@ Type-safe, file-based routing for React SPAs with route-level data loading and T
## Quick Start
-**Last Updated**: 2025-11-28
-**Version**: @tanstack/[email protected]
+**Last Updated**: 2026-01-03
+**Version**: @tanstack/[email protected]
```bash
npm install @tanstack/react-router @tanstack/router-devtools
npm install -D @tanstack/router-plugin
+# Optional: Zod validation adapter
+npm install @tanstack/zod-adapter zod
```
**Vite Config** (TanStackRouterVite MUST come before react()):
@@ -90,6 +92,178 @@ export const Route = createFileRoute('/posts/$postId')({
---
+## Virtual File Routes (v1.140+)
+
+Programmatic route configuration when file-based conventions don't fit your needs:
+
+**Install**: `npm install @tanstack/virtual-file-routes`
+
+**Vite Config**:
+```typescript
+import { tanstackRouter } from '@tanstack/router-plugin/vite'
+
+export default defineConfig({
+ plugins: [
+ tanstackRouter({
+ target: 'react',
+ virtualRouteConfig: './routes.ts', // Point to your routes file
+ }),
+ react(),
+ ],
+})
+```
+
+**routes.ts** (define routes programmatically):
+```typescript
+import { rootRoute, route, index, layout, physical } from '@tanstack/virtual-file-routes'
+
+export const routes = rootRoute('root.tsx', [
+ index('home.tsx'),
+ route('/posts', 'posts/posts.tsx', [
+ index('posts/posts-home.tsx'),
+ route('$postId', 'posts/posts-detail.tsx'),
+ ]),
+ layout('first', 'layout/first-layout.tsx', [
+ route('/nested', 'nested.tsx'),
+ ]),
+ physical('/classic', 'file-based-subtree'), // Mix with file-based
+])
+```
+
+**Use Cases**: Custom route organization, mixing file-based and code-based, complex nested layouts.
+
+---
+
+## Search Params Validation (Zod Adapter)
+
+Type-safe URL search params with runtime validation:
+
+**Basic Pattern** (inline validation):
+```typescript
+import { z } from 'zod'
+
+export const Route = createFileRoute('/products')({
+ validateSearch: (search) => z.object({
+ page: z.number().catch(1),
+ filter: z.string().catch(''),
+ sort: z.enum(['newest', 'oldest', 'price']).catch('newest'),
+ }).parse(search),
+})
+```
+
+**Recommended Pattern** (Zod adapter with fallbacks):
+```typescript
+import { zodValidator, fallback } from '@tanstack/zod-adapter'
+import { z } from 'zod'
+
+const searchSchema = z.object({
+ query: z.string().min(1).max(100),
+ page: fallback(z.number().int().positive(), 1),
+ sortBy: z.enum(['name', 'date', 'relevance']).optional(),
+})
+
+export const Route = createFileRoute('/search')({
+ validateSearch: zodValidator(searchSchema),
+ // Type-safe: Route.useSearch() returns typed params
+})
+```
+
+**Why `.catch()` over `.default()`**: Use `.catch()` to silently fix malformed params. Use `.default()` + `errorComponent` to show validation errors.
+
+---
+
+## Error Boundaries
+
+Handle errors at route level with typed error components:
+
+**Route-Level Error Handling**:
+```typescript
+export const Route = createFileRoute('/posts/$postId')({
+ loader: async ({ params }) => {
+ const post = await fetchPost(params.postId)
+ if (!post) throw new Error('Post not found')
+ return { post }
+ },
+ errorComponent: ({ error, reset }) => (
+ <div>
+ <p>Error: {error.message}</p>
+ <button onClick={reset}>Retry</button>
+ </div>
+ ),
+})
+```
+
+**Default Error Component** (global fallback):
+```typescript
+const router = createRouter({
+ routeTree,
+ defaultErrorComponent: ({ error }) => (
+ <div className="error-page">
+ <h1>Something went wrong</h1>
+ <p>{error.message}</p>
+ </div>
+ ),
+})
+```
+
+**Not Found Handling**:
+```typescript
+export const Route = createFileRoute('/posts/$postId')({
+ notFoundComponent: () => <div>Post not found</div>,
+})
+```
+
+---
+
+## Authentication with beforeLoad
+
+Protect routes before they load (no flash of protected content):
+
+**Single Route Protection**:
+```typescript
+import { redirect } from '@tanstack/react-router'
+
+export const Route = createFileRoute('/dashboard')({
+ beforeLoad: async ({ context }) => {
+ if (!context.auth.isAuthenticated) {
+ throw redirect({
+ to: '/login',
+ search: { redirect: location.pathname }, // Save for post-login
+ })
+ }
+ },
+})
+```
+
+**Protect Multiple Routes** (layout route pattern):
+```typescript
+// routes/(authenticated)/route.tsx - protects all children
+export const Route = createFileRoute('/(authenticated)')({
+ beforeLoad: async ({ context }) => {
+ if (!context.auth.isAuthenticated) {
+ throw redirect({ to: '/login' })
+ }
+ },
+})
+```
+
+**Passing Auth Context** (from React hooks):
+```typescript
+// main.tsx - pass auth state to router
+function App() {
+ const auth = useAuth() // Your auth hook
+
+ return (
+ <RouterProvider
+ router={router}
+ context={{ auth }} // Available in beforeLoad
+ />
+ )
+}
+```
+
+---
+
## Known Issues & Solutions
**Issue #1: Devtools Dependency Resolution**
@@ -111,9 +285,24 @@ export const Route = createFileRoute('/posts/$postId')({
**Issue #5: Memory Leak with TanStack Form**
- **Error**: Production crashes when using TanStack Form + Router
-- **Source**: GitHub Issue #5734 (known issue, unfixed as of v1.139)
+- **Source**: GitHub Issue #5734 (known issue, still open as of v1.144)
- **Workaround**: Use React Hook Form or Formik instead
+**Issue #6: Virtual Routes Index/Layout Conflict**
+- **Error**: route.tsx and index.tsx conflict when using `physical()` in virtual routing
+- **Source**: GitHub Issue #5421
+- **Fix**: Use pathless route instead: `_layout.tsx` + `_layout.index.tsx`
+
+**Issue #7: Search Params Type Inference**
+- **Error**: Type inference not working with `zodSearchValidator`
+- **Source**: GitHub Issue #3100 (regression since v1.81.5)
+- **Fix**: Use `zodValidator` from `@tanstack/zod-adapter` instead
+
+**Issue #8: TanStack Start Validators on Reload**
+- **Error**: `validateSearch` not working on page reload in TanStack Start
+- **Source**: GitHub Issue #3711
+- **Note**: Works on client-side navigation, fails on direct page load
+
---
## Cloudflare Workers Integration
@@ -143,4 +332,6 @@ export const Route = createFileRoute('/posts')({
---
-**Related Skills**: tanstack-query (data fetching), cloudflare-worker-base (API backend), tailwind-v4-shadcn (UI)
+**Related Skills**: tanstack-query (data fetching), react-hook-form-zod (form validation), cloudflare-worker-base (API backend), tailwind-v4-shadcn (UI)
+
+**Related Packages**: @tanstack/zod-adapter (search validation), @tanstack/virtual-file-routes (programmatic routes)
diff --git a/skills/tanstack-start/README.md b/skills/tanstack-start/README.md
index edec4ebe..622595f0 100644
--- a/skills/tanstack-start/README.md
+++ b/skills/tanstack-start/README.md
@@ -4,14 +4,15 @@
This skill is prepared but not published. Waiting for v1.0 stable release and critical bug fixes.
-## Current Status (2025-11-18)
+## Current Status (2026-01-03)
-- **Package:** `@tanstack/[email protected]`
+- **Package:** `@tanstack/[email protected]`
- **Status:** Release Candidate (RC announced Sept 22, 2025)
- **Blockers:**
- - Memory leak with TanStack Form (#5734) - OPEN
+ - Memory leak with TanStack Form (#5734) - **STILL OPEN** (last activity Nov 20, 2025)
- v1.0 stable not yet released
- **Expected:** Pending issue resolution
+- **Issue Detail:** Forms cause memory leaks, servers crash ~30 min. Related PR tanstack/form#1866.
## When Stable
diff --git a/skills/tanstack-start/SKILL.md b/skills/tanstack-start/SKILL.md
index 9174f6d7..368283ef 100644
--- a/skills/tanstack-start/SKILL.md
+++ b/skills/tanstack-start/SKILL.md
@@ -14,15 +14,17 @@ allowed-tools: [Bash, Read, Write, Edit]
⚠️ **Status: Release Candidate - Monitoring for Stability**
This skill is prepared but NOT published. Waiting for:
-- ⏸️ v1.0 stable release (currently RC v1.139.10 as of 2025-11-28)
-- ❌ GitHub #5734 resolved (memory leak with TanStack Form - OPEN, last updated Nov 20, 2025, related PR #1866)
+- ⏸️ v1.0 stable release (currently RC v1.145.3 as of 2026-01-03)
+- ❌ GitHub #5734 resolved (memory leak with TanStack Form - **STILL OPEN**, last activity Nov 20, 2025, related PR tanstack/form#1866)
- ⏸️ Critical bugs stabilization period
- ⏸️ Template/reference content creation
-**Current Package:** `@tanstack/[email protected]` (Nov 28, 2025)
+**Current Package:** `@tanstack/[email protected]` (Jan 2026)
**DO NOT USE IN PRODUCTION YET** - RC status, active memory leak issue
+**Issue #5734 Summary**: Memory leak when using TanStack Form with TanStack Start. Pages with forms leak memory on repeated loads, causing server crashes (~30 min). Heap snapshots show retained object references preventing GC.
+
---
## Skill Overview
@@ -66,7 +68,7 @@ npm create cloudflare@latest -- --framework=tanstack-start
---
-**Last Updated:** 2025-11-28
+**Last Updated:** 2026-01-03
**RC Announced:** September 22, 2025
**Expected Stable:** Pending issue #5734 resolution + final RC feedback
-**Monitoring:** Issue #5734 last updated Nov 20, 2025 (related PR #1866 in TanStack Form repo)
+**Monitoring:** Issue #5734 still open (last activity Nov 20, 2025). Related PR #1866 in TanStack Form repo.
diff --git a/skills/tanstack-table/README.md b/skills/tanstack-table/README.md
index 27f6b42e..33d3b94e 100644
--- a/skills/tanstack-table/README.md
+++ b/skills/tanstack-table/README.md
@@ -21,6 +21,9 @@ This skill automatically activates when you mention:
- **Cloudflare D1 integration** - Complete Workers + D1 + Table examples
- **TanStack Query coordination** - Proper query key patterns, state sync
- **Virtualization** - TanStack Virtual for large datasets (10k+ rows)
+- **Column/Row Pinning** - Keep important columns/rows visible during scroll
+- **Row Expanding** - Nested data and detail rows
+- **Row Grouping** - Group by column values with aggregation
- **Type safety** - TypeScript patterns, column helper usage
- **Error prevention** - 6+ documented issues with solutions
@@ -219,7 +222,7 @@ npm install @tanstack/react-virtual@latest
---
-**Version:** 1.0.0
-**Last Updated:** 2025-11-07
+**Version:** 1.1.0
+**Last Updated:** 2026-01-03
**Author:** Jeremy Dawes | Jezweb
**License:** MIT
diff --git a/skills/tanstack-table/SKILL.md b/skills/tanstack-table/SKILL.md
index 75708b6b..c916249e 100644
--- a/skills/tanstack-table/SKILL.md
+++ b/skills/tanstack-table/SKILL.md
@@ -14,7 +14,7 @@ Headless data tables with server-side pagination, filtering, sorting, and virtua
## Quick Start
-**Last Updated**: 2025-11-28
+**Last Updated**: 2026-01-03
**Versions**: @tanstack/[email protected], @tanstack/[email protected]
```bash
@@ -165,6 +165,215 @@ function VirtualizedTable() {
---
+## Column/Row Pinning
+
+Pin columns or rows to keep them visible during horizontal/vertical scroll:
+
+```typescript
+import { useReactTable, getCoreRowModel } from '@tanstack/react-table'
+
+const table = useReactTable({
+ data,
+ columns,
+ getCoreRowModel: getCoreRowModel(),
+ // Enable pinning
+ enableColumnPinning: true,
+ enableRowPinning: true,
+ // Initial pinning state
+ initialState: {
+ columnPinning: {
+ left: ['select', 'name'], // Pin to left
+ right: ['actions'], // Pin to right
+ },
+ },
+})
+
+// Render with pinned columns
+function PinnedTable() {
+ return (
+ <div className="flex">
+ {/* Left pinned columns */}
+ <div className="sticky left-0 bg-background z-10">
+ {table.getLeftHeaderGroups().map(/* render left headers */)}
+ {table.getRowModel().rows.map(row => (
+ <tr>{row.getLeftVisibleCells().map(/* render cells */)}</tr>
+ ))}
+ </div>
+
+ {/* Center scrollable columns */}
+ <div className="overflow-x-auto">
+ {table.getCenterHeaderGroups().map(/* render center headers */)}
+ {table.getRowModel().rows.map(row => (
+ <tr>{row.getCenterVisibleCells().map(/* render cells */)}</tr>
+ ))}
+ </div>
+
+ {/* Right pinned columns */}
+ <div className="sticky right-0 bg-background z-10">
+ {table.getRightHeaderGroups().map(/* render right headers */)}
+ {table.getRowModel().rows.map(row => (
+ <tr>{row.getRightVisibleCells().map(/* render cells */)}</tr>
+ ))}
+ </div>
+ </div>
+ )
+}
+
+// Toggle pinning programmatically
+column.pin('left') // Pin column to left
+column.pin('right') // Pin column to right
+column.pin(false) // Unpin column
+row.pin('top') // Pin row to top
+row.pin('bottom') // Pin row to bottom
+```
+
+---
+
+## Row Expanding (Nested Data)
+
+Show/hide child rows or additional details:
+
+```typescript
+import { useReactTable, getCoreRowModel, getExpandedRowModel } from '@tanstack/react-table'
+
+// Data with nested children
+const data = [
+ {
+ id: 1,
+ name: 'Parent Row',
+ subRows: [
+ { id: 2, name: 'Child Row 1' },
+ { id: 3, name: 'Child Row 2' },
+ ],
+ },
+]
+
+const table = useReactTable({
+ data,
+ columns,
+ getCoreRowModel: getCoreRowModel(),
+ getExpandedRowModel: getExpandedRowModel(), // Required for expanding
+ getSubRows: row => row.subRows, // Tell table where children are
+})
+
+// Render with expand button
+function ExpandableTable() {
+ return (
+ <tbody>
+ {table.getRowModel().rows.map(row => (
+ <>
+ <tr key={row.id}>
+ <td>
+ {row.getCanExpand() && (
+ <button onClick={row.getToggleExpandedHandler()}>
+ {row.getIsExpanded() ? '▼' : '▶'}
+ </button>
+ )}
+ </td>
+ {row.getVisibleCells().map(cell => (
+ <td key={cell.id} style={{ paddingLeft: `${row.depth * 20}px` }}>
+ {cell.renderValue()}
+ </td>
+ ))}
+ </tr>
+ </>
+ ))}
+ </tbody>
+ )
+}
+
+// Control expansion programmatically
+table.toggleAllRowsExpanded() // Expand/collapse all
+row.toggleExpanded() // Toggle single row
+table.getIsAllRowsExpanded() // Check if all expanded
+```
+
+**Detail Rows** (custom content, not nested data):
+
+```typescript
+function DetailRow({ row }) {
+ if (!row.getIsExpanded()) return null
+
+ return (
+ <tr>
+ <td colSpan={columns.length}>
+ <div className="p-4 bg-muted">
+ Custom detail content for row {row.id}
+ </div>
+ </td>
+ </tr>
+ )
+}
+```
+
+---
+
+## Row Grouping
+
+Group rows by column values:
+
+```typescript
+import { useReactTable, getCoreRowModel, getGroupedRowModel } from '@tanstack/react-table'
+
+const table = useReactTable({
+ data,
+ columns,
+ getCoreRowModel: getCoreRowModel(),
+ getGroupedRowModel: getGroupedRowModel(), // Required for grouping
+ getExpandedRowModel: getExpandedRowModel(), // Groups are expandable
+ initialState: {
+ grouping: ['status'], // Group by 'status' column
+ },
+})
+
+// Column with aggregation
+const columns = [
+ {
+ accessorKey: 'status',
+ header: 'Status',
+ },
+ {
+ accessorKey: 'amount',
+ header: 'Amount',
+ aggregationFn: 'sum', // Sum grouped values
+ aggregatedCell: ({ getValue }) => `Total: ${getValue()}`,
+ },
+]
+
+// Render grouped table
+function GroupedTable() {
+ return (
+ <tbody>
+ {table.getRowModel().rows.map(row => (
+ <tr key={row.id}>
+ {row.getVisibleCells().map(cell => (
+ <td key={cell.id}>
+ {cell.getIsGrouped() ? (
+ // Grouped cell - show group header with expand toggle
+ <button onClick={row.getToggleExpandedHandler()}>
+ {row.getIsExpanded() ? '▼' : '▶'} {cell.renderValue()} ({row.subRows.length})
+ </button>
+ ) : cell.getIsAggregated() ? (
+ // Aggregated cell - show aggregation result
+ cell.renderValue()
+ ) : cell.getIsPlaceholder() ? null : (
+ // Regular cell
+ cell.renderValue()
+ )}
+ </td>
+ ))}
+ </tr>
+ ))}
+ </tbody>
+ )
+}
+
+// Built-in aggregation functions
+// 'sum', 'min', 'max', 'extent', 'mean', 'median', 'unique', 'uniqueCount', 'count'
+```
+
+---
+
## Known Issues & Solutions
**Issue #1: Infinite Re-Renders**
diff --git a/skills/typescript-mcp/README.md b/skills/typescript-mcp/README.md
index fcd85e41..37d9c2b8 100644
--- a/skills/typescript-mcp/README.md
+++ b/skills/typescript-mcp/README.md
@@ -1,7 +1,7 @@
# TypeScript MCP Server for Cloudflare Workers
**Status**: Production Ready ✅
-**Last Updated**: 2025-10-28
+**Last Updated**: 2026-01-03
**Production Tested**: Official MCP SDK examples + Cloudflare MCP server
---
@@ -21,6 +21,9 @@ Claude Code automatically discovers this skill when you mention:
- mcp tools
- mcp resources
- mcp prompts
+- mcp tasks
+- mcp sampling
+- mcp long-running
- streamablehttpservertransport
- mcpserver
@@ -84,7 +87,7 @@ Provides production-ready patterns for building Model Context Protocol (MCP) ser
| Missing rate limiting | No protection against API abuse | Security best practice | Provides rate limiting patterns |
| TypeScript OOM | Large SDK dependency tree | modelcontextprotocol/typescript-sdk#985 | Increases Node.js memory in build scripts |
| ReDoS vulnerability | Regex in URI template parsing | modelcontextprotocol/typescript-sdk#965 | Requires SDK v1.20.2+ |
-| Authentication bypass | No auth implemented | Security best practice | Provides 5 authentication methods |
+| Authentication bypass | No auth implemented | Security best practice | Provides 6 authentication methods |
| Env variable leakage | Secrets logged or returned | Cloudflare best practice | Never logs env objects |
---
@@ -153,16 +156,16 @@ npm run deploy
---
-## Package Versions (Verified 2025-10-28)
+## Package Versions (Verified 2026-01-03)
| Package | Version | Status |
|---------|---------|--------|
-| @modelcontextprotocol/sdk | 1.20.2 | ✅ Latest stable |
-| @cloudflare/workers-types | 4.20251011.0 | ✅ Latest |
-| hono | 4.10.1 | ✅ Latest stable |
-| zod | 3.23.8 | ✅ Latest stable |
-| wrangler | 4.43.0 | ✅ Latest stable |
-| typescript | 5.7.0 | ✅ Latest stable |
+| @modelcontextprotocol/sdk | 1.25.1 | ✅ Latest stable |
+| @cloudflare/workers-types | 4.20251230.0 | ✅ Latest |
+| hono | 4.11.3 | ✅ Latest stable |
+| zod | 3.24.2 | ✅ Latest stable |
+| wrangler | 4.50.0 | ✅ Latest stable |
+| typescript | 5.7.3 | ✅ Latest stable |
---
@@ -192,6 +195,7 @@ typescript-mcp/
│ ├── resource-server.ts # Resources only (data exposure)
│ ├── full-server.ts # Complete (tools + resources + prompts)
│ ├── authenticated-server.ts # With API key auth
+│ ├── tasks-server.ts # Tasks for long-running ops (v1.24.0+)
│ └── wrangler.jsonc # Cloudflare Workers config
├── references/ # Advanced documentation
│ ├── tool-patterns.md # Common tool implementations
diff --git a/skills/typescript-mcp/SKILL.md b/skills/typescript-mcp/SKILL.md
index 6aa184cf..4a748f60 100644
--- a/skills/typescript-mcp/SKILL.md
+++ b/skills/typescript-mcp/SKILL.md
@@ -9,8 +9,9 @@ allowed-tools: [Read, Write, Edit, Bash, Grep, Glob]
# TypeScript MCP on Cloudflare Workers
-**Last Updated**: 2025-11-28
-**Versions**: @modelcontextprotocol/[email protected], [email protected], [email protected]
+**Last Updated**: 2026-01-03
+**Versions**: @modelcontextprotocol/[email protected], [email protected], [email protected]
+**Spec Version**: 2025-11-25
---
@@ -82,6 +83,104 @@ const payload = await verifyJWT(jwt, c.env.CF_ACCESS_TEAM_DOMAIN);
---
+## Tasks (v1.24.0+)
+
+Tasks enable **long-running operations** that return a handle for polling results later. Useful for expensive computations, batch processing, or operations that may need input.
+
+**Task States**: `working` → `input_required` → `completed` / `failed` / `cancelled`
+
+**Server Capability Declaration**:
+```typescript
+const server = new McpServer({
+ name: 'my-server',
+ version: '1.0.0',
+ capabilities: {
+ tasks: {
+ list: {},
+ cancel: {},
+ requests: {
+ tools: { call: {} }
+ }
+ }
+ }
+});
+```
+
+**Tool with Task Support**:
+```typescript
+server.registerTool(
+ 'long-running-analysis',
+ {
+ description: 'Analyze large dataset',
+ inputSchema: z.object({ datasetId: z.string() }),
+ execution: { taskSupport: 'optional' } // 'forbidden' | 'optional' | 'required'
+ },
+ async ({ datasetId }, extra) => {
+ // If invoked as task, extra.task contains taskId
+ const result = await performAnalysis(datasetId);
+ return { content: [{ type: 'text', text: JSON.stringify(result) }] };
+ }
+);
+```
+
+**Client Task Request**:
+```json
+{
+ "method": "tools/call",
+ "params": {
+ "name": "long-running-analysis",
+ "arguments": { "datasetId": "abc123" },
+ "task": { "ttl": 60000 }
+ }
+}
+```
+
+**Task Lifecycle**:
+1. Client sends request with `task` param → receives `taskId`
+2. Client polls via `tasks/get` with `taskId`
+3. When status is `completed`, client calls `tasks/result` to get output
+4. Optional: Client can `tasks/cancel` to abort
+
+📚 **Spec**: https://modelcontextprotocol.io/specification/2025-11-25/basic/utilities/tasks
+
+---
+
+## Sampling with Tools (v1.24.0+)
+
+Servers can now include **tool definitions in sampling requests**, enabling server-side agent loops.
+
+**Use Case**: Server needs to orchestrate multi-step reasoning using LLM + tools without custom frameworks.
+
+```typescript
+// Server initiates sampling with tools available
+const result = await server.requestSampling({
+ messages: [{ role: 'user', content: 'Analyze this data and fetch more if needed' }],
+ maxTokens: 4096,
+ tools: [
+ {
+ name: 'fetch_data',
+ description: 'Fetch additional data from API',
+ inputSchema: { type: 'object', properties: { query: { type: 'string' } } }
+ }
+ ]
+});
+
+// Handle tool calls in response
+if (result.content[0].type === 'tool_use') {
+ const toolResult = await executeLocalTool(result.content[0]);
+ // Continue conversation with tool result...
+}
+```
+
+**Key Points**:
+- Server-side agentic behavior as first-class MCP feature
+- Standard MCP primitives (no custom frameworks)
+- Tool definitions follow same schema as `tools/list`
+
+📚 **Spec**: SEP-1577
+
+---
+
## Cloudflare Service Tools
**D1 Database**:
@@ -266,7 +365,7 @@ wrangler deploy
## Templates & References
-**Templates**: `basic-mcp-server.ts`, `tool-server.ts`, `resource-server.ts`, `authenticated-server.ts`, `wrangler.jsonc`
+**Templates**: `basic-mcp-server.ts`, `tool-server.ts`, `resource-server.ts`, `authenticated-server.ts`, `tasks-server.ts`, `wrangler.jsonc`
**References**: `tool-patterns.md`, `authentication-guide.md`, `testing-guide.md`, `cloudflare-integration.md`, `common-errors.md`
@@ -278,10 +377,10 @@ wrangler deploy
- ✅ Close transport on response end (`c.res.raw.on('close', () => transport.close())`)
- ✅ Use direct export (`export default app`, NOT `{ fetch: app.fetch }`)
- ✅ Implement authentication for production
-- ✅ Update to SDK v1.23.0+ for security fixes
+- ✅ Update to SDK v1.25.1+ for security fixes and Tasks support
**Never**:
- ❌ Export with object wrapper
- ❌ Forget to close StreamableHTTPServerTransport
- ❌ Log environment variables or secrets
-- ❌ Use outdated SDK versions
+- ❌ Use outdated SDK versions (<1.20.2 has ReDoS vulnerability)
diff --git a/skills/typescript-mcp/references/authentication-guide.md b/skills/typescript-mcp/references/authentication-guide.md
index 2e1829ef..2f9bb959 100644
--- a/skills/typescript-mcp/references/authentication-guide.md
+++ b/skills/typescript-mcp/references/authentication-guide.md
@@ -355,6 +355,207 @@ app.use('/mcp', async (c, next) => {
---
+## Method 6: OAuth Client Credentials (M2M) (v1.24.0+)
+
+Best for: Machine-to-machine communication, service accounts, backend integrations.
+
+**What's Different:** Unlike Method 3 (OAuth 2.0), this flow has no user consent - clients authenticate directly with client ID/secret. Added in SDK v1.24.0 via SEP-1046.
+
+### When to Use
+
+| Scenario | Use Client Credentials |
+|----------|----------------------|
+| Backend service accessing MCP tools | ✅ Yes |
+| CI/CD pipelines calling MCP server | ✅ Yes |
+| Automated data processing | ✅ Yes |
+| Interactive user sessions | ❌ No (use OAuth 2.0) |
+| Browser-based clients | ❌ No (secret exposure risk) |
+
+### Implementation
+
+**1. Register Service Client:**
+
+Create a client ID/secret pair for each service that needs access:
+
+```bash
+# Generate client credentials
+CLIENT_ID=$(node -e "console.log(require('crypto').randomUUID())")
+CLIENT_SECRET=$(node -e "console.log(require('crypto').randomBytes(32).toString('hex'))")
+
+# Store in KV
+wrangler kv key put --binding=MCP_CLIENTS "client:${CLIENT_ID}" "${CLIENT_SECRET}"
+
+echo "Client ID: $CLIENT_ID"
+echo "Client Secret: $CLIENT_SECRET"
+```
+
+**2. Token Endpoint:**
+
+```typescript
+import { Hono } from 'hono';
+import { sign } from '@tsndr/cloudflare-worker-jwt';
+
+type Env = {
+ MCP_CLIENTS: KVNamespace;
+ JWT_SECRET: string;
+};
+
+const app = new Hono<{ Bindings: Env }>();
+
+// OAuth token endpoint (client credentials flow)
+app.post('/oauth/token', async (c) => {
+ const contentType = c.req.header('Content-Type');
+
+ let grantType: string, clientId: string, clientSecret: string;
+
+ if (contentType?.includes('application/x-www-form-urlencoded')) {
+ const body = await c.req.parseBody();
+ grantType = body.grant_type as string;
+ clientId = body.client_id as string;
+ clientSecret = body.client_secret as string;
+ } else {
+ const body = await c.req.json();
+ grantType = body.grant_type;
+ clientId = body.client_id;
+ clientSecret = body.client_secret;
+ }
+
+ // Validate grant type
+ if (grantType !== 'client_credentials') {
+ return c.json({ error: 'unsupported_grant_type' }, 400);
+ }
+
+ // Validate client credentials
+ const storedSecret = await c.env.MCP_CLIENTS.get(`client:${clientId}`);
+
+ if (!storedSecret || storedSecret !== clientSecret) {
+ return c.json({ error: 'invalid_client' }, 401);
+ }
+
+ // Generate access token
+ const expiresIn = 3600; // 1 hour
+ const accessToken = await sign({
+ sub: clientId,
+ type: 'service',
+ exp: Math.floor(Date.now() / 1000) + expiresIn,
+ iat: Math.floor(Date.now() / 1000),
+ }, c.env.JWT_SECRET);
+
+ return c.json({
+ access_token: accessToken,
+ token_type: 'Bearer',
+ expires_in: expiresIn,
+ });
+});
+```
+
+**3. MCP Endpoint Validation:**
+
+```typescript
+import { verify } from '@tsndr/cloudflare-worker-jwt';
+
+app.use('/mcp', async (c, next) => {
+ const authHeader = c.req.header('Authorization');
+
+ if (!authHeader?.startsWith('Bearer ')) {
+ return c.json({ error: 'unauthorized' }, 401);
+ }
+
+ const token = authHeader.slice(7);
+
+ try {
+ const isValid = await verify(token, c.env.JWT_SECRET);
+ if (!isValid) {
+ return c.json({ error: 'invalid_token' }, 401);
+ }
+
+ const payload = JSON.parse(atob(token.split('.')[1]));
+
+ // Check expiration
+ if (payload.exp < Math.floor(Date.now() / 1000)) {
+ return c.json({ error: 'token_expired' }, 401);
+ }
+
+ // Attach client info to context
+ c.set('clientId', payload.sub);
+ c.set('clientType', payload.type);
+
+ await next();
+ } catch {
+ return c.json({ error: 'invalid_token' }, 401);
+ }
+});
+```
+
+### Client Usage
+
+```typescript
+// 1. Get access token
+const tokenResponse = await fetch('https://mcp.example.com/oauth/token', {
+ method: 'POST',
+ headers: { 'Content-Type': 'application/x-www-form-urlencoded' },
+ body: new URLSearchParams({
+ grant_type: 'client_credentials',
+ client_id: 'YOUR_CLIENT_ID',
+ client_secret: 'YOUR_CLIENT_SECRET',
+ }),
+});
+
+const { access_token } = await tokenResponse.json();
+
+// 2. Use token for MCP calls
+const mcpResponse = await fetch('https://mcp.example.com/mcp', {
+ method: 'POST',
+ headers: {
+ 'Authorization': `Bearer ${access_token}`,
+ 'Content-Type': 'application/json',
+ },
+ body: JSON.stringify({
+ jsonrpc: '2.0',
+ method: 'tools/call',
+ params: { name: 'my-tool', arguments: {} },
+ id: 1,
+ }),
+});
+```
+
+### Token Refresh
+
+```typescript
+// Client-side: refresh before expiration
+async function getValidToken(cache: TokenCache): Promise<string> {
+ const now = Math.floor(Date.now() / 1000);
+
+ // Refresh 5 minutes before expiration
+ if (cache.expiresAt - now < 300) {
+ const response = await fetch('/oauth/token', {
+ method: 'POST',
+ body: new URLSearchParams({
+ grant_type: 'client_credentials',
+ client_id: cache.clientId,
+ client_secret: cache.clientSecret,
+ }),
+ });
+
+ const { access_token, expires_in } = await response.json();
+ cache.token = access_token;
+ cache.expiresAt = now + expires_in;
+ }
+
+ return cache.token;
+}
+```
+
+### Security Considerations
+
+- **Never expose client secrets** in browser code or public repositories
+- **Use short token lifetimes** (1 hour recommended) to limit damage if compromised
+- **Rotate client secrets** periodically and after any suspected compromise
+- **Scope tokens appropriately** - add scopes to limit what each client can access
+- **Rate limit token endpoint** to prevent brute force attacks
+
+---
+
## Combined Authentication
Use multiple methods for flexibility:
@@ -493,5 +694,5 @@ app.use('/mcp', async (c, next) => {
---
-**Last Updated:** 2025-10-28
-**Verified With:** Cloudflare Workers, @modelcontextprotocol/[email protected]
+**Last Updated:** 2026-01-03
+**Verified With:** Cloudflare Workers, @modelcontextprotocol/[email protected]
diff --git a/skills/typescript-mcp/templates/tasks-server.ts b/skills/typescript-mcp/templates/tasks-server.ts
new file mode 100644
index 00000000..69dbfc91
--- /dev/null
+++ b/skills/typescript-mcp/templates/tasks-server.ts
@@ -0,0 +1,318 @@
+/**
+ * Tasks-Server MCP Template (v1.24.0+)
+ *
+ * An MCP server demonstrating the Tasks feature for long-running operations.
+ * Tasks return a handle for polling results instead of blocking on response.
+ *
+ * Use Tasks when:
+ * - Operations take >30 seconds (LLM timeout risk)
+ * - You need to track progress incrementally
+ * - Operations may require additional input mid-execution
+ * - Batch processing with per-item status updates
+ *
+ * Task States: working → input_required → completed / failed / cancelled
+ *
+ * Setup:
+ * 1. npm install @modelcontextprotocol/sdk@^1.24.0 hono zod
+ * 2. npm install -D @cloudflare/workers-types wrangler typescript
+ * 3. Add KV namespace binding for task state (see wrangler.jsonc)
+ * 4. wrangler deploy
+ */
+
+import { McpServer } from '@modelcontextprotocol/sdk/server/mcp.js';
+import { StreamableHTTPServerTransport } from '@modelcontextprotocol/sdk/server/streamableHttp.js';
+import { Hono } from 'hono';
+import { z } from 'zod';
+
+type Env = {
+ // KV for persistent task state
+ TASKS: KVNamespace;
+ // Optional: D1 for operation data
+ DB?: D1Database;
+};
+
+// Task state stored in KV
+interface TaskState {
+ id: string;
+ status: 'working' | 'input_required' | 'completed' | 'failed' | 'cancelled';
+ progress?: number;
+ progressMessage?: string;
+ result?: unknown;
+ error?: string;
+ inputRequest?: {
+ prompt: string;
+ schema?: Record<string, unknown>;
+ };
+ createdAt: string;
+ updatedAt: string;
+ ttl: number;
+}
+
+// Server with tasks capability
+const server = new McpServer({
+ name: 'tasks-server',
+ version: '1.0.0',
+ capabilities: {
+ tasks: {
+ list: {}, // Enable tasks/list method
+ cancel: {}, // Enable tasks/cancel method
+ requests: {
+ tools: { call: {} } // Enable task mode for tools/call
+ }
+ }
+ }
+});
+
+/**
+ * Tool 1: Long-running data analysis with task support
+ *
+ * taskSupport options:
+ * - 'forbidden': Never run as task (immediate response required)
+ * - 'optional': Can run either way (client decides)
+ * - 'required': Must run as task (always returns taskId)
+ */
+server.registerTool(
+ 'analyze-dataset',
+ {
+ description: 'Analyzes a large dataset. Returns immediately with taskId for long-running operations.',
+ inputSchema: z.object({
+ datasetId: z.string().describe('Dataset identifier'),
+ analysisType: z.enum(['summary', 'detailed', 'full']).describe('Analysis depth')
+ }),
+ execution: { taskSupport: 'optional' }
+ },
+ async ({ datasetId, analysisType }, extra) => {
+ // If running as task, extra.task contains taskId and we can update progress
+ if (extra?.task) {
+ const taskId = extra.task.taskId;
+ const env = extra.env as Env;
+
+ // Initialize task state
+ const taskState: TaskState = {
+ id: taskId,
+ status: 'working',
+ progress: 0,
+ progressMessage: 'Starting analysis...',
+ createdAt: new Date().toISOString(),
+ updatedAt: new Date().toISOString(),
+ ttl: extra.task.ttl || 60000
+ };
+
+ await env.TASKS.put(`task:${taskId}`, JSON.stringify(taskState), {
+ expirationTtl: Math.ceil(taskState.ttl / 1000)
+ });
+
+ // Simulate long-running analysis (in production, use Durable Objects or Queues)
+ // For this template, we'll complete synchronously but demonstrate the pattern
+ const result = await performAnalysis(datasetId, analysisType, async (progress, message) => {
+ taskState.progress = progress;
+ taskState.progressMessage = message;
+ taskState.updatedAt = new Date().toISOString();
+ await env.TASKS.put(`task:${taskId}`, JSON.stringify(taskState));
+ });
+
+ // Mark complete
+ taskState.status = 'completed';
+ taskState.result = result;
+ taskState.progress = 100;
+ taskState.progressMessage = 'Analysis complete';
+ taskState.updatedAt = new Date().toISOString();
+ await env.TASKS.put(`task:${taskId}`, JSON.stringify(taskState));
+
+ return {
+ content: [{ type: 'text', text: JSON.stringify(result) }]
+ };
+ }
+
+ // Immediate mode (no task)
+ const result = await performAnalysis(datasetId, analysisType);
+ return {
+ content: [{ type: 'text', text: JSON.stringify(result) }]
+ };
+ }
+);
+
+/**
+ * Tool 2: Batch processing that may require input mid-execution
+ *
+ * Demonstrates input_required state - pauses for user confirmation
+ */
+server.registerTool(
+ 'batch-process',
+ {
+ description: 'Processes items in batch, may pause for confirmation on certain items',
+ inputSchema: z.object({
+ items: z.array(z.string()).describe('Items to process'),
+ requireConfirmation: z.boolean().default(false).describe('Pause for confirmation on flagged items')
+ }),
+ execution: { taskSupport: 'required' }
+ },
+ async ({ items, requireConfirmation }, extra) => {
+ if (!extra?.task) {
+ return {
+ content: [{ type: 'text', text: 'Error: This tool requires task mode' }],
+ isError: true
+ };
+ }
+
+ const taskId = extra.task.taskId;
+ const env = extra.env as Env;
+
+ const taskState: TaskState = {
+ id: taskId,
+ status: 'working',
+ progress: 0,
+ createdAt: new Date().toISOString(),
+ updatedAt: new Date().toISOString(),
+ ttl: extra.task.ttl || 300000
+ };
+
+ const results: { item: string; status: string }[] = [];
+
+ for (let i = 0; i < items.length; i++) {
+ const item = items[i];
+ taskState.progress = Math.round((i / items.length) * 100);
+ taskState.progressMessage = `Processing ${i + 1}/${items.length}: ${item}`;
+ taskState.updatedAt = new Date().toISOString();
+ await env.TASKS.put(`task:${taskId}`, JSON.stringify(taskState));
+
+ // Example: flag items with "review" in name
+ if (requireConfirmation && item.toLowerCase().includes('review')) {
+ taskState.status = 'input_required';
+ taskState.inputRequest = {
+ prompt: `Item "${item}" requires review. Approve processing?`,
+ schema: {
+ type: 'object',
+ properties: {
+ approved: { type: 'boolean' }
+ },
+ required: ['approved']
+ }
+ };
+ await env.TASKS.put(`task:${taskId}`, JSON.stringify(taskState));
+
+ // In production, wait for client to provide input via tasks/respond
+ // For this template, we'll auto-approve
+ await new Promise(resolve => setTimeout(resolve, 100));
+
+ taskState.status = 'working';
+ taskState.inputRequest = undefined;
+ }
+
+ // Simulate processing
+ await new Promise(resolve => setTimeout(resolve, 50));
+ results.push({ item, status: 'processed' });
+ }
+
+ taskState.status = 'completed';
+ taskState.progress = 100;
+ taskState.progressMessage = `Completed ${items.length} items`;
+ taskState.result = results;
+ taskState.updatedAt = new Date().toISOString();
+ await env.TASKS.put(`task:${taskId}`, JSON.stringify(taskState));
+
+ return {
+ content: [{
+ type: 'text',
+ text: JSON.stringify({ processed: results.length, results })
+ }]
+ };
+ }
+);
+
+/**
+ * Tool 3: Quick operation - explicitly forbids task mode
+ */
+server.registerTool(
+ 'quick-lookup',
+ {
+ description: 'Fast lookup that must return immediately',
+ inputSchema: z.object({
+ key: z.string().describe('Lookup key')
+ }),
+ execution: { taskSupport: 'forbidden' }
+ },
+ async ({ key }) => {
+ // Simulated lookup
+ const data = { key, value: `Result for ${key}`, timestamp: Date.now() };
+ return {
+ content: [{ type: 'text', text: JSON.stringify(data) }]
+ };
+ }
+);
+
+// Helper: Simulated analysis function
+async function performAnalysis(
+ datasetId: string,
+ analysisType: string,
+ onProgress?: (progress: number, message: string) => Promise<void>
+): Promise<Record<string, unknown>> {
+ const steps = analysisType === 'full' ? 5 : analysisType === 'detailed' ? 3 : 1;
+
+ for (let i = 0; i < steps; i++) {
+ if (onProgress) {
+ await onProgress(
+ Math.round(((i + 1) / steps) * 100),
+ `Step ${i + 1}/${steps} complete`
+ );
+ }
+ // Simulate work
+ await new Promise(resolve => setTimeout(resolve, 100));
+ }
+
+ return {
+ datasetId,
+ analysisType,
+ recordCount: Math.floor(Math.random() * 10000),
+ summary: {
+ mean: 42.5,
+ median: 40,
+ stdDev: 12.3
+ },
+ completedAt: new Date().toISOString()
+ };
+}
+
+// HTTP endpoint setup
+const app = new Hono<{ Bindings: Env }>();
+
+app.get('/', (c) => {
+ return c.json({
+ name: 'tasks-server',
+ version: '1.0.0',
+ features: ['tasks'],
+ tools: [
+ { name: 'analyze-dataset', taskSupport: 'optional' },
+ { name: 'batch-process', taskSupport: 'required' },
+ { name: 'quick-lookup', taskSupport: 'forbidden' }
+ ]
+ });
+});
+
+// Task status endpoint (for debugging)
+app.get('/tasks/:taskId', async (c) => {
+ const taskId = c.req.param('taskId');
+ const state = await c.env.TASKS.get(`task:${taskId}`);
+
+ if (!state) {
+ return c.json({ error: 'Task not found' }, 404);
+ }
+
+ return c.json(JSON.parse(state));
+});
+
+app.post('/mcp', async (c) => {
+ const transport = new StreamableHTTPServerTransport({
+ sessionIdGenerator: undefined,
+ enableJsonResponse: true
+ });
+
+ c.res.raw.on('close', () => transport.close());
+
+ await server.connect(transport);
+ await transport.handleRequest(c.req.raw, c.res.raw, await c.req.json());
+
+ return c.body(null);
+});
+
+export default app;