@basegrid_tech/mcp 0.17.3 → 0.17.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/dist/index.js +30 -10
- package/package.json +3 -3
package/dist/index.js
CHANGED
|
@@ -71,7 +71,8 @@ var DEFAULT_WORKSPACE = {
|
|
|
71
71
|
var QUICK_COMMAND_LIMITS = {
|
|
72
72
|
maxCommands: 40,
|
|
73
73
|
maxLabel: 80,
|
|
74
|
-
maxBody: 4e3
|
|
74
|
+
maxBody: 4e3,
|
|
75
|
+
maxShellPath: 512
|
|
75
76
|
};
|
|
76
77
|
|
|
77
78
|
// ../shared/src/agent-defaults.ts
|
|
@@ -215,13 +216,15 @@ function normalizeOne(raw, seenIds) {
|
|
|
215
216
|
}
|
|
216
217
|
const command = clampString(obj.command, QUICK_COMMAND_LIMITS.maxBody);
|
|
217
218
|
if (!command) return null;
|
|
219
|
+
const shell = clampString(obj.shell, QUICK_COMMAND_LIMITS.maxShellPath);
|
|
218
220
|
return {
|
|
219
221
|
id,
|
|
220
222
|
label,
|
|
221
223
|
scope,
|
|
222
224
|
kind,
|
|
223
225
|
command,
|
|
224
|
-
appendEnter: obj.appendEnter !== false
|
|
226
|
+
appendEnter: obj.appendEnter !== false,
|
|
227
|
+
...shell ? { shell } : {}
|
|
225
228
|
};
|
|
226
229
|
}
|
|
227
230
|
function normalizeScope(_scope) {
|
|
@@ -512,7 +515,8 @@ function createSchema() {
|
|
|
512
515
|
model TEXT,
|
|
513
516
|
command TEXT,
|
|
514
517
|
append_enter INTEGER NOT NULL DEFAULT 1,
|
|
515
|
-
position INTEGER NOT NULL DEFAULT 0
|
|
518
|
+
position INTEGER NOT NULL DEFAULT 0,
|
|
519
|
+
shell TEXT
|
|
516
520
|
);
|
|
517
521
|
|
|
518
522
|
CREATE TABLE IF NOT EXISTS remote_hosts (
|
|
@@ -1466,6 +1470,18 @@ function migrateSchema(d) {
|
|
|
1466
1470
|
})();
|
|
1467
1471
|
logger_default.info("[database] migrated schema to version 31 (devices)");
|
|
1468
1472
|
}
|
|
1473
|
+
if (version < 32) {
|
|
1474
|
+
d.transaction(() => {
|
|
1475
|
+
const cols = d.prepare("PRAGMA table_info(quick_commands)").all();
|
|
1476
|
+
if (!cols.some((c) => c.name === "shell")) {
|
|
1477
|
+
d.exec("ALTER TABLE quick_commands ADD COLUMN shell TEXT");
|
|
1478
|
+
}
|
|
1479
|
+
d.prepare(
|
|
1480
|
+
"INSERT OR REPLACE INTO schema_meta (key, value) VALUES ('schema_version', '32')"
|
|
1481
|
+
).run();
|
|
1482
|
+
})();
|
|
1483
|
+
logger_default.info("[database] migrated schema to version 32 (quick command shell)");
|
|
1484
|
+
}
|
|
1469
1485
|
}
|
|
1470
1486
|
function verifySchema(d) {
|
|
1471
1487
|
const expectedTables = [
|
|
@@ -1643,7 +1659,8 @@ function verifySchema(d) {
|
|
|
1643
1659
|
column: "hidden_paths",
|
|
1644
1660
|
ddl: "ALTER TABLE external_worktree_settings ADD COLUMN hidden_paths TEXT NOT NULL DEFAULT '[]'"
|
|
1645
1661
|
}
|
|
1646
|
-
]
|
|
1662
|
+
],
|
|
1663
|
+
quick_commands: [{ column: "shell", ddl: "ALTER TABLE quick_commands ADD COLUMN shell TEXT" }]
|
|
1647
1664
|
};
|
|
1648
1665
|
for (const [table, columns] of Object.entries(expectedByTable)) {
|
|
1649
1666
|
const existing = new Set(
|
|
@@ -1734,7 +1751,8 @@ var DEFAULTS_KEYS_MAP = {
|
|
|
1734
1751
|
aiCommitCustomPrompt: true,
|
|
1735
1752
|
voiceDictationEnabled: true,
|
|
1736
1753
|
voiceInputDeviceId: true,
|
|
1737
|
-
displayName: true
|
|
1754
|
+
displayName: true,
|
|
1755
|
+
openInDefaultApp: true
|
|
1738
1756
|
};
|
|
1739
1757
|
var DEFAULTS_KEYS = Object.keys(DEFAULTS_KEYS_MAP);
|
|
1740
1758
|
var INTERNAL_DEFAULTS_KEYS = /* @__PURE__ */ new Set([
|
|
@@ -1796,7 +1814,8 @@ function loadQuickCommands(d) {
|
|
|
1796
1814
|
prompt: r.prompt ?? void 0,
|
|
1797
1815
|
model: r.model ?? void 0,
|
|
1798
1816
|
command: r.command ?? void 0,
|
|
1799
|
-
appendEnter: r.append_enter !== 0
|
|
1817
|
+
appendEnter: r.append_enter !== 0,
|
|
1818
|
+
shell: r.shell ?? void 0
|
|
1800
1819
|
}));
|
|
1801
1820
|
return normalizeQuickCommands(raw);
|
|
1802
1821
|
}
|
|
@@ -1898,8 +1917,8 @@ function saveConfig(config) {
|
|
|
1898
1917
|
}
|
|
1899
1918
|
d.prepare("DELETE FROM quick_commands").run();
|
|
1900
1919
|
const insertQuickCommand = d.prepare(
|
|
1901
|
-
`INSERT INTO quick_commands (id, label, kind, scope, agent_type, prompt, model, command, append_enter, position)
|
|
1902
|
-
VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)`
|
|
1920
|
+
`INSERT INTO quick_commands (id, label, kind, scope, agent_type, prompt, model, command, append_enter, position, shell)
|
|
1921
|
+
VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)`
|
|
1903
1922
|
);
|
|
1904
1923
|
const normalizedQuickCommands = normalizeQuickCommands(config.quickCommands ?? []);
|
|
1905
1924
|
normalizedQuickCommands.forEach((q, index) => {
|
|
@@ -1913,7 +1932,8 @@ function saveConfig(config) {
|
|
|
1913
1932
|
q.kind === "agent" ? q.model ?? null : null,
|
|
1914
1933
|
q.kind === "terminal" ? q.command : null,
|
|
1915
1934
|
q.kind === "terminal" && q.appendEnter ? 1 : 0,
|
|
1916
|
-
index
|
|
1935
|
+
index,
|
|
1936
|
+
q.kind === "terminal" ? q.shell ?? null : null
|
|
1917
1937
|
);
|
|
1918
1938
|
});
|
|
1919
1939
|
d.prepare("DELETE FROM agent_commands").run();
|
|
@@ -4364,7 +4384,7 @@ console.warn = (...args) => _origError("[mcp:warn]", ...args);
|
|
|
4364
4384
|
console.error = (...args) => _origError("[mcp:error]", ...args);
|
|
4365
4385
|
async function main() {
|
|
4366
4386
|
configManager.init();
|
|
4367
|
-
const version = true ? "0.17.
|
|
4387
|
+
const version = true ? "0.17.5" : createRequire(import.meta.url)("../package.json").version;
|
|
4368
4388
|
const server = createMcpServer(version);
|
|
4369
4389
|
const transport = new StdioServerTransport();
|
|
4370
4390
|
await server.connect(transport);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@basegrid_tech/mcp",
|
|
3
|
-
"version": "0.17.
|
|
3
|
+
"version": "0.17.5",
|
|
4
4
|
"description": "BaseGrid MCP server — task management, git, and workflow tools for AI coding agents",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
|
@@ -42,8 +42,8 @@
|
|
|
42
42
|
"zod": "^4.3.6"
|
|
43
43
|
},
|
|
44
44
|
"devDependencies": {
|
|
45
|
-
"@basegrid/server": "0.17.
|
|
46
|
-
"@basegrid/shared": "0.17.
|
|
45
|
+
"@basegrid/server": "0.17.5",
|
|
46
|
+
"@basegrid/shared": "0.17.5",
|
|
47
47
|
"tsup": "^8.5.1",
|
|
48
48
|
"tsx": "^4.21.0",
|
|
49
49
|
"typescript": "^6.0.3"
|