Skip to content

Commit 78e3734

Browse files
committed
feat(cli): replace MCP server with CLI introspection
1 parent cec6506 commit 78e3734

File tree

28 files changed

+734
-2280
lines changed

28 files changed

+734
-2280
lines changed

.agents/index.md

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,10 @@ node ../cli/packages/cli/dist/index.js create my-app
5555
| `tanstack add [add-ons]` | Add to existing project |
5656
| `tanstack add-on init/compile` | Create custom add-on |
5757
| `tanstack template init/compile` | Create custom template |
58-
| `tanstack mcp [--sse]` | Start MCP server |
58+
| `tanstack libraries` | List TanStack libraries |
59+
| `tanstack doc` | Fetch a docs page |
60+
| `tanstack search-docs` | Search TanStack docs |
61+
| `tanstack ecosystem` | List ecosystem partners |
5962
| `tanstack pin-versions` | Pin TanStack packages |
6063

6164
## Create Options
@@ -96,17 +99,14 @@ npx serve .add-on -l 9080
9699
node packages/cli/dist/index.js create test --add-ons http://localhost:9080/info.json
97100
```
98101

99-
## MCP Server Config
100-
101-
```json
102-
{
103-
"mcpServers": {
104-
"tanstack": {
105-
"command": "npx",
106-
"args": ["@tanstack/cli", "mcp"]
107-
}
108-
}
109-
}
102+
## Agent Introspection Commands
103+
104+
```bash
105+
npx @tanstack/cli create --list-add-ons --json
106+
npx @tanstack/cli create --addon-details drizzle --json
107+
npx @tanstack/cli libraries --json
108+
npx @tanstack/cli search-docs "server functions" --library start --json
109+
npx @tanstack/cli ecosystem --category database --json
110110
```
111111

112112
## Key Files

.changeset/giant-ants-fold.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
---
2+
'@tanstack/cli': minor
3+
---
4+
5+
Remove the built-in MCP server from the CLI by dropping `tanstack mcp` and all MCP transport/tooling code.
6+
7+
Add CLI-native agent introspection commands (`libraries`, `doc`, `search-docs`, `ecosystem`) and JSON output for `create --list-add-ons` / `create --addon-details` so AI agents can rely on CLI commands directly.

.github/workflows/release.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,13 @@ concurrency:
1010

1111
env:
1212
NX_CLOUD_ACCESS_TOKEN: ${{ secrets.NX_CLOUD_ACCESS_TOKEN }}
13+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
1314

1415
permissions:
1516
contents: write
1617
id-token: write
18+
pull-requests: read
19+
statuses: read
1720

1821
jobs:
1922
release:

ARCHITECTURE.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313

1414
| Package | Purpose |
1515
|---------|---------|
16-
| `@tanstack/cli` | Main CLI with commands: `create`, `add`, `add-on`, `starter`, `mcp` |
16+
| `@tanstack/cli` | Main CLI with commands: `create`, `add`, `add-on`, `starter`, `libraries`, `doc`, `search-docs`, `ecosystem` |
1717
| `@tanstack/create` | Core engine, frameworks, and add-ons |
1818

1919
## Framework Structure

README.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ npx @tanstack/cli create my-app
3131
- **TanStack Start** - Full-stack SSR framework (default)
3232
- **TanStack Router** - Type-safe routing (`--router-only` for SPA)
3333
- **Add-ons** - Auth, database, deployment, monitoring, and more
34-
- **MCP Server** - AI-assisted development
34+
- **CLI Introspection** - Agent-friendly discovery via JSON CLI output
3535

3636
## Quick Start
3737

@@ -50,6 +50,11 @@ npx @tanstack/cli add clerk drizzle
5050

5151
# List available add-ons
5252
npx @tanstack/cli create --list-add-ons
53+
54+
# Agent-friendly introspection
55+
npx @tanstack/cli create --addon-details tanstack-query --json
56+
npx @tanstack/cli libraries --json
57+
npx @tanstack/cli search-docs "loaders" --library router --framework react --json
5358
```
5459

5560
## Documentation

cli-aliases/create-start-app/README.md

Lines changed: 4 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -94,25 +94,13 @@ This will get you a list of all available add-ons for Solid.
9494
pnpm dlx create-start-app@latest --list-add-ons --framework solid
9595
```
9696

97-
## MCP (Model Context Protocol) Support (experimental)
97+
## Agent Usage
9898

99-
You can launch the `create-start-app` CLI with the `--mcp` flag to enable MCP support. Use this in your MCP enabled IDE to allow the Agent model to generate TanStack Start applications.
99+
The CLI no longer includes an MCP server. Use direct CLI introspection commands instead:
100100

101101
```bash
102-
pnpm dlx create-start-app@latest --mcp
103-
```
104-
105-
Here is the JSON configuration for MCP support in many MCP clients.
106-
107-
```json
108-
{
109-
"mcpServers": {
110-
"create-start-app": {
111-
"command": "pnpm dlx",
112-
"args": ["create-start-app@latest", "--mcp"]
113-
}
114-
}
115-
}
102+
pnpm dlx create-start-app@latest --list-add-ons
103+
pnpm dlx create-start-app@latest --addon-details tanstack-query
116104
```
117105

118106
# Contributing

cli-aliases/create-tanstack-app/README.md

Lines changed: 4 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -134,25 +134,13 @@ pnpm dlx create-tanstack-app@latest --list-add-ons --framework solid --template
134134

135135
Will get you a list of all available add-ons for Solid that are compatible with the File Router.
136136

137-
## MCP (Model Context Protocol) Support (experimental)
137+
## Agent Usage
138138

139-
You can launch the `create-tanstack-app` CLI with the `--mcp` flag to enable MCP support. Use this in your MCP enabled IDE to allow the Agent model to generate TanStack Router applications.
139+
The CLI no longer includes an MCP server. Use direct CLI introspection commands instead:
140140

141141
```bash
142-
pnpm dlx create-tanstack-app@latest --mcp
143-
```
144-
145-
Here is the JSON configuration for MCP support in many MCP clients.
146-
147-
```json
148-
{
149-
"mcpServers": {
150-
"create-tanstack-app": {
151-
"command": "pnpm dlx",
152-
"args": ["create-tanstack-app@latest", "--mcp"]
153-
}
154-
}
155-
}
142+
pnpm dlx create-tanstack-app@latest --list-add-ons
143+
pnpm dlx create-tanstack-app@latest --addon-details tanstack-query
156144
```
157145

158146
# Contributing

cli-aliases/create-tanstack/README.md

Lines changed: 4 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -134,25 +134,13 @@ pnpm dlx create-tanstack@latest --list-add-ons --framework solid --template file
134134

135135
Will get you a list of all available add-ons for Solid that are compatible with the File Router.
136136

137-
## MCP (Model Context Protocol) Support (experimental)
137+
## Agent Usage
138138

139-
You can launch the `create-tanstack` CLI with the `--mcp` flag to enable MCP support. Use this in your MCP enabled IDE to allow the Agent model to generate TanStack Router applications.
139+
The CLI no longer includes an MCP server. Use direct CLI introspection commands instead:
140140

141141
```bash
142-
pnpm dlx create-tanstack@latest --mcp
143-
```
144-
145-
Here is the JSON configuration for MCP support in many MCP clients.
146-
147-
```json
148-
{
149-
"mcpServers": {
150-
"create-tanstack": {
151-
"command": "pnpm dlx",
152-
"args": ["create-tanstack@latest", "--mcp"]
153-
}
154-
}
155-
}
142+
pnpm dlx create-tanstack@latest --list-add-ons
143+
pnpm dlx create-tanstack@latest --addon-details tanstack-query
156144
```
157145

158146
# Contributing

cli-aliases/create-tsrouter-app/README.md

Lines changed: 4 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -134,25 +134,13 @@ pnpm dlx create-tsrouter-app@latest --list-add-ons --framework solid --template
134134

135135
Will get you a list of all available add-ons for Solid that are compatible with the File Router.
136136

137-
## MCP (Model Context Protocol) Support (experimental)
137+
## Agent Usage
138138

139-
You can launch the `create-tsrouter-app` CLI with the `--mcp` flag to enable MCP support. Use this in your MCP enabled IDE to allow the Agent model to generate TanStack Router applications.
139+
The CLI no longer includes an MCP server. Use direct CLI introspection commands instead:
140140

141141
```bash
142-
pnpm dlx create-tsrouter-app@latest --mcp
143-
```
144-
145-
Here is the JSON configuration for MCP support in many MCP clients.
146-
147-
```json
148-
{
149-
"mcpServers": {
150-
"create-tsrouter-app": {
151-
"command": "pnpm dlx",
152-
"args": ["create-tsrouter-app@latest", "--mcp"]
153-
}
154-
}
155-
}
142+
pnpm dlx create-tsrouter-app@latest --list-add-ons
143+
pnpm dlx create-tsrouter-app@latest --addon-details tanstack-query
156144
```
157145

158146
# Contributing

cli-aliases/ts-create-start/README.md

Lines changed: 4 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -94,25 +94,13 @@ This will get you a list of all available add-ons for Solid.
9494
pnpm create @tanstack/start@latest --list-add-ons --framework solid
9595
```
9696

97-
## MCP (Model Context Protocol) Support (experimental)
97+
## Agent Usage
9898

99-
You can launch the `create-start-app` CLI with the `--mcp` flag to enable MCP support. Use this in your MCP enabled IDE to allow the Agent model to generate TanStack Start applications.
99+
The CLI no longer includes an MCP server. Use direct CLI introspection commands instead:
100100

101101
```bash
102-
pnpm create @tanstack/start@latest --mcp
103-
```
104-
105-
Here is the JSON configuration for MCP support in many MCP clients.
106-
107-
```json
108-
{
109-
"mcpServers": {
110-
"create-start-app": {
111-
"command": "pnpm dlx",
112-
"args": ["create-start-app@latest", "--mcp"]
113-
}
114-
}
115-
}
102+
pnpm create @tanstack/start@latest --list-add-ons
103+
pnpm create @tanstack/start@latest --addon-details tanstack-query
116104
```
117105

118106
# Contributing

0 commit comments

Comments
 (0)