@bettercms-ai/mcp 0.22.0 → 0.22.1

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/dist/index.js CHANGED
@@ -3784,6 +3784,7 @@ function registerTools(server, deps) {
3784
3784
  import { z as z2 } from "zod";
3785
3785
 
3786
3786
  // src/playbook.ts
3787
+ var PLAYBOOK_URI = "bettercms://playbook/schema";
3787
3788
  var SCHEMA_PLAYBOOK = `# Designing a BetterCMS project
3788
3789
 
3789
3790
  Read this BEFORE creating anything. Confirm the shape with the user before you build it.
@@ -4445,7 +4446,19 @@ var SERVER_DISPLAY = {
4445
4446
  function buildServer(deps) {
4446
4447
  const server = new McpServer(
4447
4448
  { name: SERVER_NAME, version: SERVER_VERSION, ...SERVER_DISPLAY },
4448
- { capabilities: { tools: {}, prompts: {} } }
4449
+ { capabilities: { tools: {}, prompts: {}, resources: {} } }
4450
+ );
4451
+ server.registerResource(
4452
+ "schema-playbook",
4453
+ PLAYBOOK_URI,
4454
+ {
4455
+ title: "BetterCMS schema & components playbook",
4456
+ description: "How to design a components-first BetterCMS project: components vs collections, section anatomy, sectionType variants, kind:'block' + modular fields, the 'document' article body, the draft->publish order, and what makes an imported site editable.",
4457
+ mimeType: "text/markdown"
4458
+ },
4459
+ () => ({
4460
+ contents: [{ uri: PLAYBOOK_URI, mimeType: "text/markdown", text: SCHEMA_PLAYBOOK }]
4461
+ })
4449
4462
  );
4450
4463
  registerTools(server, {
4451
4464
  auth: deps.auth,