@thecms/cli 0.20.4-dev.134 → 0.20.4-dev.136
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.
|
@@ -175,7 +175,7 @@ function realContext(env = process.env) {
|
|
|
175
175
|
import { parseArgs } from "util";
|
|
176
176
|
|
|
177
177
|
// src/context.ts
|
|
178
|
-
var CLI_VERSION = "0.20.4-dev.
|
|
178
|
+
var CLI_VERSION = "0.20.4-dev.136";
|
|
179
179
|
function call(ctx, path, init = {}) {
|
|
180
180
|
const { token, client = "cli", ...rest } = init;
|
|
181
181
|
const headers = new Headers(rest.headers);
|
|
@@ -3032,7 +3032,9 @@ function writeMcpRegistration(root) {
|
|
|
3032
3032
|
config = {};
|
|
3033
3033
|
}
|
|
3034
3034
|
}
|
|
3035
|
-
|
|
3035
|
+
const own = config.mcpServers?.thecms;
|
|
3036
|
+
const runsMcp = typeof own?.command === "string" && Array.isArray(own.args) && own.args.includes("mcp");
|
|
3037
|
+
config.mcpServers = { ...config.mcpServers ?? {}, thecms: runsMcp ? own : { command: "thecms", args: ["mcp"] } };
|
|
3036
3038
|
const after = `${JSON.stringify(config, null, 2)}
|
|
3037
3039
|
`;
|
|
3038
3040
|
if (after === before) return false;
|
package/dist/cli.js
CHANGED
package/dist/index.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@thecms/cli",
|
|
3
|
-
"version": "0.20.4-dev.
|
|
3
|
+
"version": "0.20.4-dev.136",
|
|
4
4
|
"license": "UNLICENSED",
|
|
5
5
|
"description": "theCMS. command line: the standard's starter, checks, brand, the method's docs, sign-in with a personal token",
|
|
6
6
|
"type": "module",
|
|
@@ -36,7 +36,7 @@
|
|
|
36
36
|
"dependencies": {
|
|
37
37
|
"@modelcontextprotocol/sdk": "1.32.1",
|
|
38
38
|
"@resvg/resvg-wasm": "2.6.2",
|
|
39
|
-
"@thecms/sdk": "0.20.4-dev.
|
|
39
|
+
"@thecms/sdk": "0.20.4-dev.136",
|
|
40
40
|
"libpg-query": "18.2.0",
|
|
41
41
|
"zod": "4.6.5"
|
|
42
42
|
},
|