CtrlK
BlogDocsLog inGet started
Tessl Logo
SkillPublic

ai-mcp

Host-side Model Context Protocol (MCP) for TanStack AI: connect to external MCP servers, host your own tools with createMCPServer, discover and run tools inside any adapter's chat() loop, read resources and prompts, generate TypeScript types (typed tool names/pool keys) with the bundled CLI, and manage lifecycle with close()/await using.

Quality

75%

Does it follow best practices?

Run evals on this skill

Adds up to 20 points to the overall score

View guide
SecuritybySnyk

Low

Low-risk findings worth noting

Fix and improve this skill with Tessl

tessl review fix ./packages/ai-mcp/skills/ai-mcp/SKILL.md
SKILL.md
Quality
Evals
Security

Quality

Content

71%Weight 40%Scale 1-5

Reviews the quality of instructions and guidance provided to agents. Good implementation is clear, handles edge cases, and produces reliable results.

An exceptionally actionable, well-organized API reference with executable examples, common-mistake recovery patterns, and thorough error documentation. Its main weaknesses are repeated boilerplate across examples and a monolithic single-file structure that inlines several sub-features which belong in separate reference files.

Suggestions

Split self-contained sub-features (harness plugin, MCP Apps client-side UI, MCP Events, Codegen CLI) into references/ files and keep a short overview plus one canonical example per topic in SKILL.md, matching the pattern already used for docs/mcp/apps.md.

Deduplicate the repeated createMCPClient boilerplate by showing the transport config once and abbreviating later examples (e.g. 'const client = await createMCPClient({...})'), and remove the duplicated get_weather server example in the stdio section.

Tighten the clipped one-sentence-per-line prose blocks (e.g. the spec-2025/2026 behavior notes around requestInput) into compact bullets or a small spec-behavior table to reduce token cost.

DimensionReasoningScore

Conciseness

The body is dense with package-specific facts rather than explanations of known concepts, but it repeats boilerplate: the createMCPClient({ transport: { type: 'http', ... } }) construction with full imports appears in roughly fifteen examples, and the get_weather toolDefinition().server() example is duplicated nearly verbatim in the stdio section.

3 / 5

Actionability

Every section provides copy-paste-ready, executable TypeScript or shell (install, npx generate, mcp.config.ts) covering the common cases for hosting, client use, auth, transports, pools, harness, apps, and events.

5 / 5

Workflow Clarity

Task-oriented sections, three clearly ordered lifecycle options with wrong/correct Common Mistakes pairs, a numbered Codegen CLI procedure, and a full error-class catalog with causes give clear sequences and recovery guidance, but there are no explicit validation checkpoints in the workflows (not required here, as no destructive/batch operations).

4 / 5

Progressive Disclosure

There are no bundle files at all — the harness plugin, MCP Apps UI, MCP Events, codegen CLI, and resources/prompts sections are all inlined in a single ~1470-line SKILL.md. Section structure and headers are good and cross-skill references are signaled, but clearly separable sub-feature content that should live in reference files is inline.

3 / 5

Total

15

/

20

Passed

Description

71%Weight 40%Scale 1-5

Based on the skill's description, can an agent find and select it at the right time? Clear, specific descriptions lead to better discovery.

A highly specific, concrete description that comprehensively enumerates the package's capabilities in third person without fluff. Its one structural weakness is the absence of explicit 'when to use' trigger guidance, which caps completeness.

Suggestions

Add an explicit 'Use when...' clause naming the concrete trigger scenarios, e.g. 'Use when connecting a TanStack AI chat() loop to external MCP servers, exposing your tools as an MCP server, or generating MCP TypeScript types.'

Include a few more natural trigger phrases users would say, such as 'MCP tool calling', 'expose/host tools as an MCP server', or 'stdio/HTTP MCP transport', to broaden trigger term coverage.

Optionally state the negative boundary in the description (e.g. 'server-side only, not for browser/client code') to further reduce mis-trigger risk.

DimensionReasoningScore

Specificity

Lists multiple specific concrete API-level actions — 'connect to external MCP servers', 'host your own tools with createMCPServer', 'read resources and prompts', 'generate TypeScript types (typed tool names/pool keys) with the bundled CLI', 'manage lifecycle with close()/await using' — covering client, server, resources/prompts, codegen, and lifecycle comprehensively.

5 / 5

Completeness

The 'what' is explicit and concrete, but there is no 'Use when...' clause or equivalent explicit trigger guidance, which caps completeness at 3 per the rubric guidelines; the 'when' is at best weakly implied.

3 / 5

Trigger Term Quality

Includes the natural domain vocabulary ('MCP', 'Model Context Protocol', 'MCP servers', 'tools', 'resources and prompts', 'TanStack AI') that a user needing this skill would say, but misses a few natural variations such as 'expose tools as an MCP server' or 'tool calling'.

4 / 5

Distinctiveness Conflict Risk

Scoping to 'TanStack AI' plus package-specific APIs (createMCPServer, chat()) keeps it distinct from generic MCP skills, with only minor overlap risk against sibling TanStack AI skills that also cover tools in chat().

4 / 5

Total

16

/

20

Passed

Validation

87%

Checks the skill against the spec for correct structure and formatting. All validation checks must pass before discovery and implementation can be scored.

Validation — 14 / 16 Passed

Validation for skill structure

CriteriaDescriptionResult

skill_md_line_count

SKILL.md is long (1497 lines); consider splitting into references/ and linking

Warning

frontmatter_unknown_keys

Unknown frontmatter key(s) found; consider removing or moving to metadata

Warning

Total

14

/

16

Passed

Repository

TanStack/ai

Path

packages/ai-mcp/skills/ai-mcp/SKILL.md

Reviewed

Table of Contents

Is this your skill?

If you maintain this skill, you can claim it as your own. Once claimed, you can manage eval scenarios, bundle related skills, attach documentation or rules, and ensure cross-agent compatibility.