junobuild-mcp-server 1.0.1 → 1.0.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/dist/index.js CHANGED
@@ -9,9 +9,10 @@ import { registerFunctionsTools } from "./tools/functions.js";
9
9
  import { registerSnapshotTools } from "./tools/snapshot.js";
10
10
  import { registerModuleTools } from "./tools/modules.js";
11
11
  import { registerChangesTools } from "./tools/changes.js";
12
+ import { registerDocsTools } from "./tools/docs.js";
12
13
  const server = new McpServer({
13
14
  name: "junobuild-mcp-server",
14
- version: "1.0.0"
15
+ version: "1.0.2",
15
16
  });
16
17
  registerIdentityTools(server);
17
18
  registerConfigTools(server);
@@ -21,6 +22,7 @@ registerFunctionsTools(server);
21
22
  registerSnapshotTools(server);
22
23
  registerModuleTools(server);
23
24
  registerChangesTools(server);
25
+ registerDocsTools(server);
24
26
  async function main() {
25
27
  const transport = new StdioServerTransport();
26
28
  await server.connect(transport);
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";AACA,OAAO,EAAE,SAAS,EAAE,MAAM,yCAAyC,CAAC;AACpE,OAAO,EAAE,oBAAoB,EAAE,MAAM,2CAA2C,CAAC;AAEjF,OAAO,EAAE,qBAAqB,EAAE,MAAM,qBAAqB,CAAC;AAC5D,OAAO,EAAE,mBAAmB,EAAE,MAAM,mBAAmB,CAAC;AACxD,OAAO,EAAE,oBAAoB,EAAE,MAAM,oBAAoB,CAAC;AAC1D,OAAO,EAAE,qBAAqB,EAAE,MAAM,qBAAqB,CAAC;AAC5D,OAAO,EAAE,sBAAsB,EAAE,MAAM,sBAAsB,CAAC;AAC9D,OAAO,EAAE,qBAAqB,EAAE,MAAM,qBAAqB,CAAC;AAC5D,OAAO,EAAE,mBAAmB,EAAE,MAAM,oBAAoB,CAAC;AACzD,OAAO,EAAE,oBAAoB,EAAE,MAAM,oBAAoB,CAAC;AA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AM,sBAAsB,CAAC;AAC9D,OAAO,EAAE,qBAAqB,EAAE,MAAM,qBAAqB,CAAC;AAC5D,OAAO,EAAE,mBAAmB,EAAE,MAAM,oBAAoB,CAAC;AACzD,OAAO,EAAE,oBAAoB,EAAE,MAAM,oBAAoB,CAAC;AAC1D,OAAO,EAAE,iBAAiB,EAAE,MAAM,iBAAiB,CAAC;AAEpD,MAAM,MAAM,GAAG,IAAI,SAAS,CAAC;IAC3B,IAAI,EAAE,sBAAsB;IAC5B,OAAO,EAAE,OAAO;CACjB,CAAC,CAAC;AAEH,qBAAqB,CAAC,MAAM,CAAC,CAAC;AAC9B,mBAAmB,CAAC,MAAM,CAAC,CAAC;AAC5B,oBAAoB,CAAC,MAAM,CAAC,CAAC;AAC7B,qBAAqB,CAAC,MAAM,CAAC,CAAC;AAC9B,sBAAsB,CAAC,MAAM,CAAC,CAAC;AAC/B,qBAAqB,CAAC,MAAM,CAAC,CAAC;AAC9B,mBAAmB,CAAC,MAAM,CAAC,CAAC;AAC5B,oBAAoB,CAAC,MAAM,CAAC,CAAC;AAC7B,iBAAiB,CAAC,MAAM,CAAC,CAAC;AAE1B,KAAK,UAAU,IAAI;IACjB,MAAM,SAAS,GAAG,IAAI,oBAAoB,EAAE,CAAC;IAC7C,MAAM,MAAM,CAAC,OAAO,CAAC,SAAS,CAAC,CAAC;IAChC,OAAO,CAAC,KAAK,CAAC,mCAAmC,CAAC,CAAC;AACrD,CAAC;AAED,IAAI,EAAE,CAAC,KAAK,CAAC,CAAC,KAAc,EAAE,EAAE;IAC9B,OAAO,CAAC,KAAK,CAAC,eAAe,EAAE,KAAK,CAAC,CAAC;IACtC,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;AAClB,CAAC,CAAC,CAAC"}
@@ -0,0 +1,43 @@
1
+ import { z } from "zod";
2
+ export declare const TOPICS: {
3
+ readonly intro: "/docs/intro.md";
4
+ readonly "start-a-new-project": "/docs/start-a-new-project.md";
5
+ readonly "setup-the-sdk": "/docs/setup-the-sdk.md";
6
+ readonly "create-a-satellite": "/docs/create-a-satellite.md";
7
+ readonly authentication: "/docs/build/authentication.md";
8
+ readonly datastore: "/docs/build/datastore.md";
9
+ readonly storage: "/docs/build/storage.md";
10
+ readonly hosting: "/docs/build/hosting.md";
11
+ readonly functions: "/docs/build/functions.md";
12
+ readonly analytics: "/docs/build/analytics.md";
13
+ readonly cli: "/docs/reference/cli.md";
14
+ readonly configuration: "/docs/reference/configuration.md";
15
+ readonly plugins: "/docs/reference/plugins.md";
16
+ readonly settings: "/docs/reference/settings.md";
17
+ readonly emulator: "/docs/reference/emulator.md";
18
+ readonly terminology: "/docs/terminology.md";
19
+ readonly pricing: "/docs/pricing.md";
20
+ };
21
+ export type TopicKey = keyof typeof TOPICS;
22
+ export declare const junoDocsSchema: z.ZodObject<{
23
+ topic: z.ZodEnum<{
24
+ hosting: "hosting";
25
+ emulator: "emulator";
26
+ functions: "functions";
27
+ intro: "intro";
28
+ "start-a-new-project": "start-a-new-project";
29
+ "setup-the-sdk": "setup-the-sdk";
30
+ "create-a-satellite": "create-a-satellite";
31
+ authentication: "authentication";
32
+ datastore: "datastore";
33
+ storage: "storage";
34
+ analytics: "analytics";
35
+ cli: "cli";
36
+ configuration: "configuration";
37
+ plugins: "plugins";
38
+ settings: "settings";
39
+ terminology: "terminology";
40
+ pricing: "pricing";
41
+ }>;
42
+ }, z.core.$strict>;
43
+ //# sourceMappingURL=docs.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"docs.d.ts","sourceRoot":"","sources":["../../src/schemas/docs.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,MAAM;;;;;;;;;;;;;;;;;;CAkBT,CAAC;AAEX,MAAM,MAAM,QAAQ,GAAG,MAAM,OAAO,MAAM,CAAC;AAE3C,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;kBAGhB,CAAC"}
@@ -0,0 +1,25 @@
1
+ import { z } from "zod";
2
+ export const TOPICS = {
3
+ "intro": "/docs/intro.md",
4
+ "start-a-new-project": "/docs/start-a-new-project.md",
5
+ "setup-the-sdk": "/docs/setup-the-sdk.md",
6
+ "create-a-satellite": "/docs/create-a-satellite.md",
7
+ "authentication": "/docs/build/authentication.md",
8
+ "datastore": "/docs/build/datastore.md",
9
+ "storage": "/docs/build/storage.md",
10
+ "hosting": "/docs/build/hosting.md",
11
+ "functions": "/docs/build/functions.md",
12
+ "analytics": "/docs/build/analytics.md",
13
+ "cli": "/docs/reference/cli.md",
14
+ "configuration": "/docs/reference/configuration.md",
15
+ "plugins": "/docs/reference/plugins.md",
16
+ "settings": "/docs/reference/settings.md",
17
+ "emulator": "/docs/reference/emulator.md",
18
+ "terminology": "/docs/terminology.md",
19
+ "pricing": "/docs/pricing.md"
20
+ };
21
+ export const junoDocsSchema = z.object({
22
+ topic: z.enum(Object.keys(TOPICS))
23
+ .describe("Documentation topic to retrieve. Covers Juno concepts, SDK setup, CLI reference, configuration, and more.")
24
+ }).strict();
25
+ //# sourceMappingURL=docs.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"docs.js","sourceRoot":"","sources":["../../src/schemas/docs.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,MAAM,CAAC,MAAM,MAAM,GAAG;IACpB,OAAO,EAAE,gBAAgB;IACzB,qBAAqB,EAAE,8BAA8B;IACrD,eAAe,EAAE,wBAAwB;IACzC,oBAAoB,EAAE,6BAA6B;IACnD,gBAAgB,EAAE,+BAA+B;IACjD,WAAW,EAAE,0BAA0B;IACvC,SAAS,EAAE,wBAAwB;IACnC,SAAS,EAAE,wBAAwB;IACnC,WAAW,EAAE,0BAA0B;IACvC,WAAW,EAAE,0BAA0B;IACvC,KAAK,EAAE,wBAAwB;IAC/B,eAAe,EAAE,kCAAkC;IACnD,SAAS,EAAE,4BAA4B;IACvC,UAAU,EAAE,6BAA6B;IACzC,UAAU,EAAE,6BAA6B;IACzC,aAAa,EAAE,sBAAsB;IACrC,SAAS,EAAE,kBAAkB;CACrB,CAAC;AAIX,MAAM,CAAC,MAAM,cAAc,GAAG,CAAC,CAAC,MAAM,CAAC;IACrC,KAAK,EAAE,CAAC,CAAC,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,MAAM,CAA8B,CAAC;SAC5D,QAAQ,CAAC,2GAA2G,CAAC;CACzH,CAAC,CAAC,MAAM,EAAE,CAAC"}
@@ -0,0 +1,3 @@
1
+ import type { McpServer } from "@modelcontextprotocol/sdk/server/mcp.js";
2
+ export declare function registerDocsTools(server: McpServer): void;
3
+ //# sourceMappingURL=docs.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"docs.d.ts","sourceRoot":"","sources":["../../src/tools/docs.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,yCAAyC,CAAC;AAOzE,wBAAgB,iBAAiB,CAAC,MAAM,EAAE,SAAS,GAAG,IAAI,CAqDzD"}
@@ -0,0 +1,52 @@
1
+ import { junoDocsSchema, TOPICS } from "../schemas/docs.js";
2
+ import { CHARACTER_LIMIT } from "../constants.js";
3
+ const BASE_URL = "https://juno.build";
4
+ export function registerDocsTools(server) {
5
+ server.registerTool("juno_docs", {
6
+ title: "Juno Documentation",
7
+ description: "Fetch Juno documentation from juno.build. Provides detailed guides on authentication, datastore, storage, hosting, serverless functions, CLI usage, configuration, and more. Use this to learn how Juno works before running CLI commands.",
8
+ inputSchema: junoDocsSchema.shape,
9
+ annotations: {
10
+ readOnlyHint: true,
11
+ destructiveHint: false,
12
+ idempotentHint: true,
13
+ openWorldHint: true
14
+ }
15
+ }, async (params) => {
16
+ const path = TOPICS[params.topic];
17
+ const url = `${BASE_URL}${path}`;
18
+ try {
19
+ const response = await fetch(url);
20
+ if (!response.ok) {
21
+ return {
22
+ content: [{
23
+ type: "text",
24
+ text: `Failed to fetch documentation for "${params.topic}" from ${url} (HTTP ${response.status})`
25
+ }],
26
+ isError: true
27
+ };
28
+ }
29
+ let text = await response.text();
30
+ if (text.length > CHARACTER_LIMIT) {
31
+ text = text.slice(0, CHARACTER_LIMIT) + "\n...(truncated)";
32
+ }
33
+ return {
34
+ content: [{
35
+ type: "text",
36
+ text: `# Juno Docs: ${params.topic}\n\n${text}`
37
+ }]
38
+ };
39
+ }
40
+ catch (error) {
41
+ const message = error instanceof Error ? error.message : String(error);
42
+ return {
43
+ content: [{
44
+ type: "text",
45
+ text: `Failed to fetch documentation: ${message}`
46
+ }],
47
+ isError: true
48
+ };
49
+ }
50
+ });
51
+ }
52
+ //# sourceMappingURL=docs.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"docs.js","sourceRoot":"","sources":["../../src/tools/docs.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,cAAc,EAAE,MAAM,EAAE,MAAM,oBAAoB,CAAC;AAE5D,OAAO,EAAE,eAAe,EAAE,MAAM,iBAAiB,CAAC;AAElD,MAAM,QAAQ,GAAG,oBAAoB,CAAC;AAEtC,MAAM,UAAU,iBAAiB,CAAC,MAAiB;IACjD,MAAM,CAAC,YAAY,CACjB,WAAW,EACX;QACE,KAAK,EAAE,oBAAoB;QAC3B,WAAW,EAAE,4OAA4O;QACzP,WAAW,EAAE,cAAc,CAAC,KAAK;QACjC,WAAW,EAAE;YACX,YAAY,EAAE,IAAI;YAClB,eAAe,EAAE,KAAK;YACtB,cAAc,EAAE,IAAI;YACpB,aAAa,EAAE,IAAI;SACpB;KACF,EACD,KAAK,EAAE,MAAM,EAAE,EAAE;QACf,MAAM,IAAI,GAAG,MAAM,CAAC,MAAM,CAAC,KAAiB,CAAC,CAAC;QAC9C,MAAM,GAAG,GAAG,GAAG,QAAQ,GAAG,IAAI,EAAE,CAAC;QAEjC,IAAI,CAAC;YACH,MAAM,QAAQ,GAAG,MAAM,KAAK,CAAC,GAAG,CAAC,CAAC;YAClC,IAAI,CAAC,QAAQ,CAAC,EAAE,EAAE,CAAC;gBACjB,OAAO;oBACL,OAAO,EAAE,CAAC;4BACR,IAAI,EAAE,MAAM;4BACZ,IAAI,EAAE,sCAAsC,MAAM,CAAC,KAAK,UAAU,GAAG,UAAU,QAAQ,CAAC,MAAM,GAAG;yBAClG,CAAC;oBACF,OAAO,EAAE,IAAI;iBACd,CAAC;YACJ,CAAC;YAED,IAAI,IAAI,GAAG,MAAM,QAAQ,CAAC,IAAI,EAAE,CAAC;YACjC,IAAI,IAAI,CAAC,MAAM,GAAG,eAAe,EAAE,CAAC;gBAClC,IAAI,GAAG,IAAI,CAAC,KAAK,CAAC,CAAC,EAAE,eAAe,CAAC,GAAG,kBAAkB,CAAC;YAC7D,CAAC;YAED,OAAO;gBACL,OAAO,EAAE,CAAC;wBACR,IAAI,EAAE,MAAM;wBACZ,IAAI,EAAE,gBAAgB,MAAM,CAAC,KAAK,OAAO,IAAI,EAAE;qBAChD,CAAC;aACH,CAAC;QACJ,CAAC;QAAC,OAAO,KAAc,EAAE,CAAC;YACxB,MAAM,OAAO,GAAG,KAAK,YAAY,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;YACvE,OAAO;gBACL,OAAO,EAAE,CAAC;wBACR,IAAI,EAAE,MAAM;wBACZ,IAAI,EAAE,kCAAkC,OAAO,EAAE;qBAClD,CAAC;gBACF,OAAO,EAAE,IAAI;aACd,CAAC;QACJ,CAAC;IACH,CAAC,CACF,CAAC;AACJ,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "junobuild-mcp-server",
3
- "version": "1.0.1",
3
+ "version": "1.0.2",
4
4
  "description": "MCP server for Juno (junobuild) - manage satellites, hosting, functions, snapshots and more",
5
5
  "license": "MIT",
6
6
  "type": "module",