@kalera/munin-mcp-server 1.2.5 → 1.2.8

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.
@@ -1,4 +1,4 @@
1
1
 
2
- > @kalera/munin-mcp-server@1.2.5 build /home/runner/work/munin-for-agents/munin-for-agents/adapters/mcp-server
2
+ > @kalera/munin-mcp-server@1.2.8 build /home/runner/work/munin-for-agents/munin-for-agents/adapters/mcp-server
3
3
  > tsc -p tsconfig.json
4
4
 
package/dist/cli.js CHANGED
@@ -1,18 +1,20 @@
1
1
  #!/usr/bin/env node
2
2
  import { startMcpServer, createMcpServerInstance } from "@kalera/munin-runtime";
3
3
  export function createSandboxServer() {
4
- // Use mock config to allow Smithery to scan the tools without real credentials
4
+ // Use mock config to allow Smithery to scan the tools without real credentials.
5
+ // allowMissingApiKey bypasses the MUNIN_API_KEY requirement for schema-discovery scans.
5
6
  return createMcpServerInstance({
6
7
  baseUrl: "https://munin.kalera.dev",
7
- apiKey: "smithery-scan-key",
8
+ apiKey: process.env.MUNIN_SMITHERY_SCAN_KEY,
8
9
  timeoutMs: 10000,
9
10
  retries: 0,
10
- backoffMs: 0
11
- });
11
+ backoffMs: 0,
12
+ }, { allowMissingApiKey: true });
12
13
  }
13
14
  async function main() {
14
- // Check if we are imported as a module or run directly
15
- const isImported = import.meta.url !== `file://${process.argv[1]}`;
15
+ // Check if we are imported as a module or run directly (CJS-safe)
16
+ const isImported = typeof import.meta !== "undefined" &&
17
+ import.meta.url !== `file://${process.argv[1]}`;
16
18
  if (isImported)
17
19
  return;
18
20
  try {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kalera/munin-mcp-server",
3
- "version": "1.2.5",
3
+ "version": "1.2.8",
4
4
  "type": "module",
5
5
  "main": "dist/cli.js",
6
6
  "module": "dist/cli.js",
@@ -8,8 +8,8 @@
8
8
  "munin-mcp-server": "dist/cli.js"
9
9
  },
10
10
  "dependencies": {
11
- "@kalera/munin-runtime": "1.2.5",
12
- "@kalera/munin-sdk": "1.2.5"
11
+ "@kalera/munin-sdk": "1.2.8",
12
+ "@kalera/munin-runtime": "1.2.8"
13
13
  },
14
14
  "devDependencies": {
15
15
  "typescript": "^5.9.2"
package/src/cli.ts CHANGED
@@ -2,19 +2,25 @@
2
2
  import { startMcpServer, createMcpServerInstance } from "@kalera/munin-runtime";
3
3
 
4
4
  export function createSandboxServer() {
5
- // Use mock config to allow Smithery to scan the tools without real credentials
6
- return createMcpServerInstance({
7
- baseUrl: "https://munin.kalera.dev",
8
- apiKey: "smithery-scan-key",
9
- timeoutMs: 10000,
10
- retries: 0,
11
- backoffMs: 0
12
- });
5
+ // Use mock config to allow Smithery to scan the tools without real credentials.
6
+ // allowMissingApiKey bypasses the MUNIN_API_KEY requirement for schema-discovery scans.
7
+ return createMcpServerInstance(
8
+ {
9
+ baseUrl: "https://munin.kalera.dev",
10
+ apiKey: process.env.MUNIN_SMITHERY_SCAN_KEY,
11
+ timeoutMs: 10000,
12
+ retries: 0,
13
+ backoffMs: 0,
14
+ },
15
+ { allowMissingApiKey: true },
16
+ );
13
17
  }
14
18
 
15
19
  async function main() {
16
- // Check if we are imported as a module or run directly
17
- const isImported = import.meta.url !== `file://${process.argv[1]}`;
20
+ // Check if we are imported as a module or run directly (CJS-safe)
21
+ const isImported =
22
+ typeof import.meta !== "undefined" &&
23
+ import.meta.url !== `file://${process.argv[1]}`;
18
24
  if (isImported) return;
19
25
 
20
26
  try {