init-xmcp 1.4.0 → 1.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.turbo/turbo-build.log +1 -1
- package/CHANGELOG.md +9 -1
- package/README.md +4 -4
- package/dist/index.js +1 -1
- package/package.json +1 -1
- package/src/index.ts +1 -5
package/.turbo/turbo-build.log
CHANGED
package/CHANGELOG.md
CHANGED
|
@@ -1,12 +1,20 @@
|
|
|
1
1
|
# init-xmcp
|
|
2
2
|
|
|
3
|
+
## 1.5.0
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 10b08e6: Use TanStack consistently in adapter help text and documentation.
|
|
8
|
+
|
|
9
|
+
## 1.4.1
|
|
10
|
+
|
|
3
11
|
## 1.4.0
|
|
4
12
|
|
|
5
13
|
## 1.3.0
|
|
6
14
|
|
|
7
15
|
### Minor Changes
|
|
8
16
|
|
|
9
|
-
- a1f4d67: Add a TanStack
|
|
17
|
+
- a1f4d67: Add a TanStack adapter for React applications on Node.js and Cloudflare Workers, with ESM output, stateless request handling, and automatic setup through init-xmcp.
|
|
10
18
|
|
|
11
19
|
## 1.2.0
|
|
12
20
|
|
package/README.md
CHANGED
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
|
|
16
16
|
# init-xmcp
|
|
17
17
|
|
|
18
|
-
Initialize `xmcp` applications with one command on top of Next.js, TanStack
|
|
18
|
+
Initialize `xmcp` applications with one command on top of Next.js, TanStack, NestJS, Express, and Fastify projects. Unlock the power of `xmcp` discovery and integration with your existing codebase.
|
|
19
19
|
|
|
20
20
|
## Usage
|
|
21
21
|
|
|
@@ -31,11 +31,11 @@ npx init-xmcp@latest
|
|
|
31
31
|
- `--tools-path <path>`: Specify custom tools path (default: "")
|
|
32
32
|
- `--route-path <path>`: Specify custom route path (default: "")
|
|
33
33
|
- `--skip-tools`: Skip tool creation (default: false)
|
|
34
|
-
- `--cf`: Build the TanStack
|
|
34
|
+
- `--cf`: Build the TanStack adapter for Cloudflare Workers (also inferred from `@cloudflare/vite-plugin`).
|
|
35
35
|
- `--skip-route`: Skip route creation (default: false)
|
|
36
36
|
- `-h, --help`: Display help message.
|
|
37
37
|
|
|
38
|
-
## TanStack
|
|
38
|
+
## TanStack
|
|
39
39
|
|
|
40
40
|
React Start projects are detected through `@tanstack/react-start`. Initialization
|
|
41
41
|
creates `src/routes/mcp.ts`, discovers handlers in the configured directories, and
|
|
@@ -46,7 +46,7 @@ integrate manually. All options work with `--yes`.
|
|
|
46
46
|
Use `--cf` for Workers builds if the Cloudflare Vite plugin is not installed yet.
|
|
47
47
|
Your application owns its hosting setup, including Vite and Wrangler configuration;
|
|
48
48
|
Workers require `nodejs_compat`. See the
|
|
49
|
-
[TanStack
|
|
49
|
+
[TanStack guide](https://xmcp.dev/docs/adapters/tanstack) for Node and Workers
|
|
50
50
|
examples, manual setup, authentication, and CORS.
|
|
51
51
|
|
|
52
52
|
## Getting Started
|
package/dist/index.js
CHANGED
|
@@ -28,7 +28,7 @@ const program = new Command()
|
|
|
28
28
|
.option("--skip-tools", "Skip tool creation", false)
|
|
29
29
|
.option("--skip-prompts", "Skip prompt creation", false)
|
|
30
30
|
.option("--skip-resources", "Skip resource creation", false)
|
|
31
|
-
.option("--cf", "Build the TanStack
|
|
31
|
+
.option("--cf", "Build the TanStack adapter for Cloudflare Workers", false)
|
|
32
32
|
.option("--skip-route", "Skip route creation", false)
|
|
33
33
|
.action(async (options) => {
|
|
34
34
|
console.log(chalk.bold(`\ninit-xmcp@${packageJson.version}`));
|
package/package.json
CHANGED
package/src/index.ts
CHANGED
|
@@ -46,11 +46,7 @@ const program = new Command()
|
|
|
46
46
|
.option("--skip-tools", "Skip tool creation", false)
|
|
47
47
|
.option("--skip-prompts", "Skip prompt creation", false)
|
|
48
48
|
.option("--skip-resources", "Skip resource creation", false)
|
|
49
|
-
.option(
|
|
50
|
-
"--cf",
|
|
51
|
-
"Build the TanStack Start adapter for Cloudflare Workers",
|
|
52
|
-
false
|
|
53
|
-
)
|
|
49
|
+
.option("--cf", "Build the TanStack adapter for Cloudflare Workers", false)
|
|
54
50
|
.option("--skip-route", "Skip route creation", false)
|
|
55
51
|
.action(async (options) => {
|
|
56
52
|
console.log(chalk.bold(`\ninit-xmcp@${packageJson.version}`));
|