@init-computer/mcp 0.1.3 → 0.1.4

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.
Files changed (2) hide show
  1. package/bin/init-mcp.js +5 -2
  2. package/package.json +2 -2
package/bin/init-mcp.js CHANGED
@@ -2,7 +2,8 @@
2
2
  import fs from "node:fs";
3
3
  import path from "node:path";
4
4
  import readline from "node:readline";
5
- import { InitApiError, createClient } from "../../sdk/dist/index.js";
5
+ import { InitApiError, createClient } from "@init-computer/sdk";
6
+ const MCP_VERSION = JSON.parse(fs.readFileSync(new URL("../package.json", import.meta.url), "utf8")).version;
6
7
 
7
8
  const client = createClient({
8
9
  apiKey: process.env.INIT_API_KEY,
@@ -123,8 +124,10 @@ async function handle(request) {
123
124
  return {
124
125
  protocolVersion: "2024-11-05",
125
126
  capabilities: { tools: {} },
126
- serverInfo: { name: "init-mcp", version: "0.1.0" },
127
+ serverInfo: { name: "init-mcp", version: MCP_VERSION },
127
128
  };
129
+ case "notifications/initialized":
130
+ return {};
128
131
  case "tools/list":
129
132
  return { tools: tools.map(({ handler, ...tool }) => tool) };
130
133
  case "tools/call": {
package/package.json CHANGED
@@ -1,13 +1,13 @@
1
1
  {
2
2
  "name": "@init-computer/mcp",
3
- "version": "0.1.3",
3
+ "version": "0.1.4",
4
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.6"
10
+ "@init-computer/sdk": "0.1.7"
11
11
  },
12
12
  "engines": {
13
13
  "node": ">=18"