create-ampless 1.0.0-beta.185 → 1.0.0-beta.187
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.
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { ampless } from '@/lib/ampless'
|
|
2
|
+
import { createMcpDiscoveryRouteHandlers } from '@ampless/runtime/routes'
|
|
3
|
+
|
|
4
|
+
// Internal target of the `/.well-known/mcp/catalog.json` middleware
|
|
5
|
+
// rewrite (experimental MCP discovery). Only active when both
|
|
6
|
+
// `cms.config.ai.publicMcp` and `ai.mcpDiscovery` are true; otherwise 404.
|
|
7
|
+
export const dynamic = 'force-dynamic'
|
|
8
|
+
const handlers = createMcpDiscoveryRouteHandlers(ampless)
|
|
9
|
+
export const GET = handlers.catalog.GET
|
|
10
|
+
export const OPTIONS = handlers.catalog.OPTIONS
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { ampless } from '@/lib/ampless'
|
|
2
|
+
import { createMcpDiscoveryRouteHandlers } from '@ampless/runtime/routes'
|
|
3
|
+
|
|
4
|
+
// MCP Server Card (experimental discovery) at the spec-recommended
|
|
5
|
+
// `<streamable-http-url>/server-card` placement. Only active when both
|
|
6
|
+
// `cms.config.ai.publicMcp` and `ai.mcpDiscovery` are true; otherwise 404.
|
|
7
|
+
export const dynamic = 'force-dynamic'
|
|
8
|
+
const handlers = createMcpDiscoveryRouteHandlers(ampless)
|
|
9
|
+
export const GET = handlers.serverCard.GET
|
|
10
|
+
export const OPTIONS = handlers.serverCard.OPTIONS
|
|
@@ -54,7 +54,12 @@ export default defineConfig({
|
|
|
54
54
|
// its built-in circuit breaker is a coarse warm-instance guard, not a
|
|
55
55
|
// per-IP rate limiter: pair `publicMcp: true` with CloudFront / WAF for
|
|
56
56
|
// real abuse protection.
|
|
57
|
-
//
|
|
57
|
+
// `mcpDiscovery` (default: false, experimental) additionally publishes
|
|
58
|
+
// discovery metadata so AI clients can find the endpoint on their own:
|
|
59
|
+
// a catalog at `/.well-known/mcp/catalog.json` and a Server Card at
|
|
60
|
+
// `/api/mcp/server-card`. Requires `publicMcp: true` + an http(s)
|
|
61
|
+
// `site.url`. See https://github.com/heavymoons/ampless/blob/main/docs/mcp.md.
|
|
62
|
+
// ai: { markdownRoutes: false, llmsTxt: { limit: 100 }, publicMcp: true, mcpDiscovery: true },
|
|
58
63
|
// Active plugins. Order doesn't matter; the runtime aggregates metadata
|
|
59
64
|
// and runs hooks for events each plugin subscribes to.
|
|
60
65
|
//
|
|
@@ -26,22 +26,22 @@
|
|
|
26
26
|
"@tiptap/pm": "^3.23.6",
|
|
27
27
|
"@tiptap/react": "^3.23.6",
|
|
28
28
|
"@tiptap/starter-kit": "^3.23.6",
|
|
29
|
-
"@ampless/plugin-ai-actions": "^0.1.0-beta.
|
|
30
|
-
"@ampless/plugin-analytics-ga4": "^0.2.0-beta.
|
|
31
|
-
"@ampless/plugin-cookie-consent": "^0.1.0-beta.
|
|
32
|
-
"@ampless/plugin-gtm": "^0.2.0-beta.
|
|
33
|
-
"@ampless/plugin-og-image": "^0.2.0-beta.
|
|
34
|
-
"@ampless/plugin-plausible": "^0.2.0-beta.
|
|
35
|
-
"@ampless/plugin-reading-time": "^0.1.0-beta.
|
|
36
|
-
"@ampless/plugin-rss": "^0.2.0-beta.
|
|
37
|
-
"@ampless/plugin-schema-jsonld": "^0.1.1-beta.
|
|
38
|
-
"@ampless/plugin-seo": "^0.2.0-beta.
|
|
39
|
-
"@ampless/plugin-webhook": "^0.2.0-beta.
|
|
40
|
-
"@ampless/admin": "^1.0.0-beta.
|
|
41
|
-
"@ampless/backend": "^1.0.0-beta.
|
|
42
|
-
"@ampless/runtime": "^1.0.0-beta.
|
|
29
|
+
"@ampless/plugin-ai-actions": "^0.1.0-beta.5",
|
|
30
|
+
"@ampless/plugin-analytics-ga4": "^0.2.0-beta.46",
|
|
31
|
+
"@ampless/plugin-cookie-consent": "^0.1.0-beta.37",
|
|
32
|
+
"@ampless/plugin-gtm": "^0.2.0-beta.45",
|
|
33
|
+
"@ampless/plugin-og-image": "^0.2.0-beta.62",
|
|
34
|
+
"@ampless/plugin-plausible": "^0.2.0-beta.45",
|
|
35
|
+
"@ampless/plugin-reading-time": "^0.1.0-beta.36",
|
|
36
|
+
"@ampless/plugin-rss": "^0.2.0-beta.62",
|
|
37
|
+
"@ampless/plugin-schema-jsonld": "^0.1.1-beta.41",
|
|
38
|
+
"@ampless/plugin-seo": "^0.2.0-beta.62",
|
|
39
|
+
"@ampless/plugin-webhook": "^0.2.0-beta.63",
|
|
40
|
+
"@ampless/admin": "^1.0.0-beta.110",
|
|
41
|
+
"@ampless/backend": "^1.0.0-beta.92",
|
|
42
|
+
"@ampless/runtime": "^1.0.0-beta.75",
|
|
43
43
|
"@digital-go-jp/tailwind-theme-plugin": "^0.3.4",
|
|
44
|
-
"ampless": "^1.0.0-beta.
|
|
44
|
+
"ampless": "^1.0.0-beta.62",
|
|
45
45
|
"aws-amplify": "^6.17.0",
|
|
46
46
|
"class-variance-authority": "^0.7.1",
|
|
47
47
|
"clsx": "^2.1.1",
|