creavit-studio-mcp 1.3.3 → 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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/src/protocol.mjs +9 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "creavit-studio-mcp",
3
- "version": "1.3.3",
3
+ "version": "1.3.5",
4
4
  "description": "MCP server that lets AI coding agents (Claude Code, Codex, Cursor) drive the Creavit Studio screen recording app",
5
5
  "keywords": [
6
6
  "mcp",
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
- export const SERVER_VERSION = "1.3.2";
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,