@homespunapps/mcp 1.6.42 → 1.6.44

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/guide.d.ts CHANGED
@@ -5,8 +5,17 @@
5
5
  */
6
6
  export declare function extractCore(skillMarkdown: string): string;
7
7
  /**
8
- * Build the full MCP guide: the MCP invocation layer followed by the shared
9
- * conceptual core extracted from SKILL.md. `mcpInvocation` is the contents of
10
- * skills/homespun/MCP-INVOCATION.md; `skillMarkdown` is the contents of SKILL.md.
8
+ * Build the full MCP guide: the MCP invocation layer, the shared conceptual
9
+ * core extracted from SKILL.md, then every reference section appended in the
10
+ * order given. `mcpInvocation` is the contents of skills/homespun/MCP-INVOCATION.md;
11
+ * `skillMarkdown` is the contents of SKILL.md; `references` is the contents of
12
+ * skills/homespun/references/*.md.
13
+ *
14
+ * The references are INLINED here rather than left behind a pointer, because an
15
+ * MCP client has no filesystem to read them from and no `homespun skill show`
16
+ * to fetch them with: the guide is the whole of what it gets. A file-based
17
+ * agent reads SKILL.md's pointer and loads the same file on demand, so the two
18
+ * transports carry the same content by different routes. That asymmetry is the
19
+ * point: the pointer saves context only where the reader can act on it.
11
20
  */
12
- export declare function composeMcpGuide(mcpInvocation: string, skillMarkdown: string): string;
21
+ export declare function composeMcpGuide(mcpInvocation: string, skillMarkdown: string, references?: readonly string[]): string;
package/dist/guide.js CHANGED
@@ -40,11 +40,22 @@ export function extractCore(skillMarkdown) {
40
40
  return blocks.join("\n\n");
41
41
  }
42
42
  /**
43
- * Build the full MCP guide: the MCP invocation layer followed by the shared
44
- * conceptual core extracted from SKILL.md. `mcpInvocation` is the contents of
45
- * skills/homespun/MCP-INVOCATION.md; `skillMarkdown` is the contents of SKILL.md.
43
+ * Build the full MCP guide: the MCP invocation layer, the shared conceptual
44
+ * core extracted from SKILL.md, then every reference section appended in the
45
+ * order given. `mcpInvocation` is the contents of skills/homespun/MCP-INVOCATION.md;
46
+ * `skillMarkdown` is the contents of SKILL.md; `references` is the contents of
47
+ * skills/homespun/references/*.md.
48
+ *
49
+ * The references are INLINED here rather than left behind a pointer, because an
50
+ * MCP client has no filesystem to read them from and no `homespun skill show`
51
+ * to fetch them with: the guide is the whole of what it gets. A file-based
52
+ * agent reads SKILL.md's pointer and loads the same file on demand, so the two
53
+ * transports carry the same content by different routes. That asymmetry is the
54
+ * point: the pointer saves context only where the reader can act on it.
46
55
  */
47
- export function composeMcpGuide(mcpInvocation, skillMarkdown) {
56
+ export function composeMcpGuide(mcpInvocation, skillMarkdown, references = []) {
48
57
  const core = extractCore(skillMarkdown);
49
- return `${mcpInvocation.trim()}\n\n${core}\n`;
58
+ const refs = references.map((r) => r.trim()).filter((r) => r.length > 0);
59
+ const tail = refs.length > 0 ? `\n\n${refs.join("\n\n")}` : "";
60
+ return `${mcpInvocation.trim()}\n\n${core}${tail}\n`;
50
61
  }
package/dist/tools.js CHANGED
@@ -715,7 +715,7 @@ const communityShape = {
715
715
  slug: z
716
716
  .string()
717
717
  .optional()
718
- .describe("publish only. Optional per-publisher slug (lowercase, 3 to 48 chars, hyphens). Gives the template a namespaced id <your-handle>/<slug>; a republish reuses the slug and must bump the version."),
718
+ .describe("publish only. Optional per-publisher slug (lowercase, 3 to 48 chars, hyphens). Gives the template a namespaced id <your-handle>/<slug>; a republish reuses the slug and must bump the version. If omitted, a slug is derived from the title instead of leaving the template unnamed, so pass one only when you want a specific url. Slugs are immutable: renaming the template later does not move its url, so choose a slug you are willing to keep."),
719
719
  version: z
720
720
  .string()
721
721
  .optional()
package/dist/version.d.ts CHANGED
@@ -1 +1 @@
1
- export declare const VERSION = "1.6.42";
1
+ export declare const VERSION = "1.6.44";
package/dist/version.js CHANGED
@@ -1,3 +1,3 @@
1
1
  // Single source of the package version, reported in the MCP server's
2
2
  // serverInfo. Kept in sync with package.json by the release tooling.
3
- export const VERSION = "1.6.42";
3
+ export const VERSION = "1.6.44";
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@homespunapps/mcp",
3
3
  "mcpName": "dev.homespun/homespun",
4
- "version": "1.6.42",
4
+ "version": "1.6.44",
5
5
  "description": "Model Context Protocol (stdio) server for Homespun: lets any MCP client (Claude Desktop, Cursor, …) deploy a multi-user web app with hosting, auth, a shared database and permissions included.",
6
6
  "license": "MIT",
7
7
  "type": "module",
@@ -46,7 +46,7 @@
46
46
  },
47
47
  "dependencies": {
48
48
  "@modelcontextprotocol/sdk": "^1.30.0",
49
- "@homespunapps/core": "^1.6.42",
49
+ "@homespunapps/core": "^1.6.44",
50
50
  "zod": "^4.4.3"
51
51
  },
52
52
  "devDependencies": {
package/server.json CHANGED
@@ -3,14 +3,14 @@
3
3
  "name": "dev.homespun/homespun",
4
4
  "title": "Homespun",
5
5
  "description": "Deploy a multi-user web app from your agent: hosting, auth, database, and permissions.",
6
- "version": "1.6.42",
6
+ "version": "1.6.44",
7
7
  "websiteUrl": "https://docs.homespun.dev",
8
8
  "packages": [
9
9
  {
10
10
  "registryType": "npm",
11
11
  "registryBaseUrl": "https://registry.npmjs.org",
12
12
  "identifier": "@homespunapps/mcp",
13
- "version": "1.6.42",
13
+ "version": "1.6.44",
14
14
  "transport": {
15
15
  "type": "stdio"
16
16
  },