creavit-studio-mcp 1.3.4 → 1.3.5
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/package.json +1 -1
- package/src/protocol.mjs +9 -1
package/package.json
CHANGED
package/src/protocol.mjs
CHANGED
|
@@ -1,12 +1,20 @@
|
|
|
1
1
|
// MCP sunucusu — köprü protokolü sabitleri.
|
|
2
2
|
// electron/agentBridge/protocol.cjs ile eşleşmeli.
|
|
3
3
|
|
|
4
|
+
import { createRequire } from "node:module";
|
|
5
|
+
|
|
6
|
+
const require = createRequire(import.meta.url);
|
|
7
|
+
const packageMetadata = require("../package.json");
|
|
8
|
+
|
|
4
9
|
export const BRIDGE_PROTOCOL_VERSION = 1;
|
|
5
10
|
export const ENDPOINT_FILENAME = "agent-bridge.json";
|
|
6
11
|
|
|
7
12
|
export const MCP_PROTOCOL_VERSION = "2024-11-05";
|
|
8
13
|
export const SERVER_NAME = "creavit-studio";
|
|
9
|
-
|
|
14
|
+
// package.json is the single version source used by npm, the CLI and the MCP
|
|
15
|
+
// initialize response. Keeping a second literal here made 1.3.4 report itself
|
|
16
|
+
// as 1.3.2 even though npx had installed the correct package.
|
|
17
|
+
export const SERVER_VERSION = packageMetadata.version;
|
|
10
18
|
|
|
11
19
|
export const JSONRPC_ERRORS = {
|
|
12
20
|
PARSE_ERROR: -32700,
|