@se-studio/site-mcp 0.3.1 → 0.3.2
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/CHANGELOG.md +6 -0
- package/README.md +1 -1
- package/dist/generated/version.d.ts +1 -1
- package/dist/generated/version.js +1 -1
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
package/README.md
CHANGED
|
@@ -23,7 +23,7 @@ pnpm add @se-studio/site-mcp
|
|
|
23
23
|
The **Next.js route file path** is the mount point (e.g. `app/api/mcp/route.ts` → `/api/mcp`).
|
|
24
24
|
`createSiteMcpHandler` does **not** take a path — routing is owned by App Router.
|
|
25
25
|
|
|
26
|
-
**Trailing slash:** SE Studio sites use `trailingSlash: true`. Advertise **`/api/mcp` without a trailing slash** (server card, catalog, agent card).
|
|
26
|
+
**Trailing slash:** SE Studio sites use `trailingSlash: true`. Advertise **`/api/mcp` without a trailing slash** (server card, catalog, agent card). Also set **`skipTrailingSlashRedirect: true`** — Next’s built-in slash 308 runs before middleware and ignores rewrites. Then in middleware call `apiPathNeedingTrailingSlash` + `NextResponse.rewrite` for bare `/api/*`, and 308 HTML paths to the slashed form yourself if you still want page trailing slashes.
|
|
27
27
|
|
|
28
28
|
Use `endpointPath` only on **`buildMcpServerCard`** so the well-known card advertises the same URL agents should call:
|
|
29
29
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@se-studio/site-mcp",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.2",
|
|
4
4
|
"description": "Public, read-only, stateless MCP for SE Studio marketing sites (search, markdown, site-info)",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
"dependencies": {
|
|
29
29
|
"@modelcontextprotocol/sdk": "^1.29.0",
|
|
30
30
|
"zod": "^4.4.3",
|
|
31
|
-
"@se-studio/core-ui": "1.19.
|
|
31
|
+
"@se-studio/core-ui": "1.19.4"
|
|
32
32
|
},
|
|
33
33
|
"devDependencies": {
|
|
34
34
|
"@biomejs/biome": "^2.5.5",
|