@ampless/runtime 1.0.0-beta.73 → 1.0.0-beta.74

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.
@@ -207,7 +207,7 @@ function createMarkdownRouteHandler(ampless) {
207
207
  }
208
208
 
209
209
  // src/routes/llms.ts
210
- import { collectBounded } from "ampless";
210
+ import { collectBounded, resolvePublicMcpEndpoint } from "ampless";
211
211
  var DEFAULT_LIMIT = 100;
212
212
  var MIN_LIMIT = 1;
213
213
  var MAX_LIMIT = 1e3;
@@ -290,6 +290,13 @@ function createLlmsTxtRouteHandler(ampless) {
290
290
  }
291
291
  const note = truncationNote(truncated, limit);
292
292
  if (note) blocks.push(note);
293
+ if (ampless.cmsConfig.ai?.publicMcp === true) {
294
+ const resolvedMcpUrl = resolvePublicMcpEndpoint(true, settings.site.url);
295
+ const mcpUrl = typeof resolvedMcpUrl === "string" ? resolvedMcpUrl : "/api/mcp";
296
+ blocks.push(
297
+ `This site also exposes a read-only MCP endpoint at ${mcpUrl} (JSON-RPC over HTTP POST; tools: list_posts, get_post, search_posts, list_tags; published posts only).`
298
+ );
299
+ }
293
300
  if (items.length > 0) {
294
301
  const lines = items.map((post) => {
295
302
  const encodedSlug = fixedEncodeURIComponent(post.slug);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ampless/runtime",
3
- "version": "1.0.0-beta.73",
3
+ "version": "1.0.0-beta.74",
4
4
  "description": "Public-side runtime for ampless: post fetching, theme dispatch, middleware, public route handlers",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -51,9 +51,9 @@
51
51
  "marked": "^18.0.4",
52
52
  "sanitize-html": "^2.17.4",
53
53
  "tailwind-merge": "^3.6.0",
54
- "@ampless/mcp-server": "1.0.0-beta.67",
55
- "ampless": "1.0.0-beta.60",
56
- "@ampless/plugin-og-image": "0.2.0-beta.60"
54
+ "@ampless/mcp-server": "1.0.0-beta.68",
55
+ "ampless": "1.0.0-beta.61",
56
+ "@ampless/plugin-og-image": "0.2.0-beta.61"
57
57
  },
58
58
  "peerDependencies": {
59
59
  "@aws-amplify/adapter-nextjs": "^1",