senq-mcp 1.4.1 → 1.4.2
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 +1 -1
- package/dist/setup.js +2 -2
- package/package.json +1 -1
- package/src/index.ts +1 -1
- package/src/setup.ts +2 -2
package/dist/index.js
CHANGED
|
@@ -9,7 +9,7 @@ if (process.argv[2] === "setup") {
|
|
|
9
9
|
await runSetup();
|
|
10
10
|
process.exit(0);
|
|
11
11
|
}
|
|
12
|
-
const server = new Server({ name: "senq-mcp", version: "1.4.
|
|
12
|
+
const server = new Server({ name: "senq-mcp", version: "1.4.2" }, { capabilities: { tools: {}, prompts: {} } });
|
|
13
13
|
server.setRequestHandler(ListToolsRequestSchema, async () => ({
|
|
14
14
|
tools: [
|
|
15
15
|
{
|
package/dist/setup.js
CHANGED
|
@@ -78,7 +78,7 @@ function mergeConfig(configPath, apiKey) {
|
|
|
78
78
|
catch { /* corrupt — start fresh */ }
|
|
79
79
|
}
|
|
80
80
|
const mcpServers = config["mcpServers"] ?? {};
|
|
81
|
-
mcpServers["senq"] = { command: "npx", args: ["senq-mcp"], env: { SENQ_API_KEY: apiKey } };
|
|
81
|
+
mcpServers["senq"] = { command: "npx", args: ["senq-mcp@latest"], env: { SENQ_API_KEY: apiKey } };
|
|
82
82
|
config["mcpServers"] = mcpServers;
|
|
83
83
|
fs.mkdirSync(path.dirname(configPath), { recursive: true });
|
|
84
84
|
fs.writeFileSync(configPath, JSON.stringify(config, null, 2) + "\n");
|
|
@@ -89,7 +89,7 @@ function mergeCodexConfig(configPath, apiKey) {
|
|
|
89
89
|
if (fs.existsSync(configPath)) {
|
|
90
90
|
existing = fs.readFileSync(configPath, "utf8");
|
|
91
91
|
}
|
|
92
|
-
const senqBlock = `[mcp_servers.senq]\ncommand = "npx"\nargs = ["senq-mcp"]\n\n[mcp_servers.senq.env]\nSENQ_API_KEY = "${apiKey}"`;
|
|
92
|
+
const senqBlock = `[mcp_servers.senq]\ncommand = "npx"\nargs = ["senq-mcp@latest"]\n\n[mcp_servers.senq.env]\nSENQ_API_KEY = "${apiKey}"`;
|
|
93
93
|
if (existing.includes("[mcp_servers.senq]")) {
|
|
94
94
|
// Replace existing senq block
|
|
95
95
|
const updated = existing.replace(/\[mcp_servers\.senq\][\s\S]*?SENQ_API_KEY\s*=\s*"[^"]*"/, senqBlock);
|
package/package.json
CHANGED
package/src/index.ts
CHANGED
package/src/setup.ts
CHANGED
|
@@ -82,7 +82,7 @@ function mergeConfig(configPath: string, apiKey: string): void {
|
|
|
82
82
|
try { config = JSON.parse(fs.readFileSync(configPath, "utf8")); } catch { /* corrupt — start fresh */ }
|
|
83
83
|
}
|
|
84
84
|
const mcpServers = (config["mcpServers"] as Record<string, unknown>) ?? {};
|
|
85
|
-
mcpServers["senq"] = { command: "npx", args: ["senq-mcp"], env: { SENQ_API_KEY: apiKey } };
|
|
85
|
+
mcpServers["senq"] = { command: "npx", args: ["senq-mcp@latest"], env: { SENQ_API_KEY: apiKey } };
|
|
86
86
|
config["mcpServers"] = mcpServers;
|
|
87
87
|
fs.mkdirSync(path.dirname(configPath), { recursive: true });
|
|
88
88
|
fs.writeFileSync(configPath, JSON.stringify(config, null, 2) + "\n");
|
|
@@ -95,7 +95,7 @@ function mergeCodexConfig(configPath: string, apiKey: string): void {
|
|
|
95
95
|
existing = fs.readFileSync(configPath, "utf8");
|
|
96
96
|
}
|
|
97
97
|
|
|
98
|
-
const senqBlock = `[mcp_servers.senq]\ncommand = "npx"\nargs = ["senq-mcp"]\n\n[mcp_servers.senq.env]\nSENQ_API_KEY = "${apiKey}"`;
|
|
98
|
+
const senqBlock = `[mcp_servers.senq]\ncommand = "npx"\nargs = ["senq-mcp@latest"]\n\n[mcp_servers.senq.env]\nSENQ_API_KEY = "${apiKey}"`;
|
|
99
99
|
|
|
100
100
|
if (existing.includes("[mcp_servers.senq]")) {
|
|
101
101
|
// Replace existing senq block
|