@init-computer/mcp 0.1.0 → 0.1.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/README.md ADDED
@@ -0,0 +1,27 @@
1
+ # Init MCP
2
+
3
+ Use Init from any MCP-compatible assistant or development tool. Init turns a natural-language request into a deployed backend endpoint or project, then lets you run and inspect the result.
4
+
5
+ Init is a programmable backend platform: describe the capability you need, and Init creates and operates the API, data, storage, and runtime behind it.
6
+
7
+ Documentation: [Init.computer](https://www.init.computer)
8
+
9
+ ## Install
10
+
11
+ ```bash
12
+ npm install -g @init-computer/mcp
13
+ ```
14
+
15
+ Set `INIT_API_KEY` in the MCP process environment, then register the `init-mcp` command with your MCP client.
16
+
17
+ ## Available tools
18
+
19
+ - `init_generate` — create an endpoint from a prompt, optionally attaching it to existing projects.
20
+ - `init_generate_project` — create a project and a cohesive endpoint suite.
21
+ - `init_edit_project` — add endpoints or create new endpoint versions in a project.
22
+ - `init_run` — call a generated endpoint.
23
+ - `init_list_resources` — list generated endpoints.
24
+ - `init_get_resource` — inspect one generated endpoint.
25
+ - `init_list_packages` — inspect the available capability packages.
26
+
27
+ Init returns structured JSON for every tool call, including endpoint routes, schemas, versions, and results.
package/bin/init-mcp.js CHANGED
@@ -14,7 +14,7 @@ const tools = [
14
14
  inputSchema: objectSchema({
15
15
  prompt: stringSchema("API to generate or edit."),
16
16
  resource_id: optionalStringSchema("Existing resource id when editing."),
17
- directories: arraySchema("Directory names to attach if they already exist."),
17
+ projects: arraySchema("Project names to attach if they already exist."),
18
18
  }, ["prompt"]),
19
19
  handler: (args) => client.generate(args),
20
20
  },
@@ -57,38 +57,6 @@ const tools = [
57
57
  inputSchema: objectSchema({ id: stringSchema("Resource id.") }, ["id"]),
58
58
  handler: ({ id }) => client.resource.get(id),
59
59
  },
60
- {
61
- name: "init_list_directories",
62
- description: "List flat Init directories.",
63
- inputSchema: freeObjectSchema("Optional directory filters."),
64
- handler: (args) => client.directory.list(args || {}),
65
- },
66
- {
67
- name: "init_list_daemons",
68
- description: "List Init daemon workflows.",
69
- inputSchema: freeObjectSchema("Optional daemon filters."),
70
- handler: (args) => client.daemon.list(args || {}),
71
- },
72
- {
73
- name: "init_create_daemon",
74
- description: "Create a daemon for an existing Init resource/version.",
75
- inputSchema: objectSchema({
76
- resource_id: stringSchema("Resource id."),
77
- version_id: stringSchema("Version id."),
78
- input: freeObjectSchema("Daemon input body."),
79
- interval_seconds: numberSchema("Interval in seconds."),
80
- max_runs: numberSchema("Optional max run count."),
81
- description: stringSchema("Optional daemon description."),
82
- schedule: stringSchema("Schedule type or label."),
83
- }, ["resource_id", "version_id", "input", "interval_seconds"]),
84
- handler: (args) => client.daemon.create(args),
85
- },
86
- {
87
- name: "init_run_daemon",
88
- description: "Run a daemon once immediately.",
89
- inputSchema: objectSchema({ id: stringSchema("Daemon id.") }, ["id"]),
90
- handler: ({ id }) => client.daemon.run(id),
91
- },
92
60
  {
93
61
  name: "init_list_packages",
94
62
  description: "List package catalog entries and packages enabled for the user.",
package/package.json CHANGED
@@ -1,13 +1,13 @@
1
1
  {
2
2
  "name": "@init-computer/mcp",
3
- "version": "0.1.0",
4
- "description": "MCP server for Init generated backend APIs.",
3
+ "version": "0.1.1",
4
+ "description": "Init is a programmable backend platform available through MCP for generating and running backend APIs.",
5
5
  "type": "module",
6
6
  "bin": {
7
7
  "init-mcp": "./bin/init-mcp.js"
8
8
  },
9
9
  "dependencies": {
10
- "@init-computer/sdk": "^0.1.3"
10
+ "@init-computer/sdk": "0.1.4"
11
11
  },
12
12
  "engines": {
13
13
  "node": ">=18"