@mcpjam/inspector 0.9.12 → 0.9.13

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.
@@ -5,7 +5,7 @@
5
5
  <link rel="icon" type="image/svg+xml" href="/mcp_jam.svg" />
6
6
  <meta name="viewport" content="width=device-width, initial-scale=1.0" />
7
7
  <title>MCPJam Inspector</title>
8
- <script type="module" crossorigin src="/assets/index-hyEDWMYC.js"></script>
8
+ <script type="module" crossorigin src="/assets/index-DyELowGw.js"></script>
9
9
  <link rel="stylesheet" crossorigin href="/assets/index-ChUeFmGd.css">
10
10
  </head>
11
11
  <body>
@@ -592,7 +592,7 @@ var createLlmModel = (modelDefinition, apiKey, ollamaBaseUrl) => {
592
592
  case "google":
593
593
  return createGoogleGenerativeAI({ apiKey })(modelDefinition.id);
594
594
  case "ollama":
595
- const baseUrl = ollamaBaseUrl || "http://localhost:11434";
595
+ const baseUrl = ollamaBaseUrl || "http://localhost:11434/api";
596
596
  return createOllama({
597
597
  baseURL: `${baseUrl}`
598
598
  })(modelDefinition.id, {
@@ -1275,7 +1275,7 @@ tests.post("/run-all", async (c) => {
1275
1275
  })(model.id);
1276
1276
  case "ollama":
1277
1277
  return createOllama2({
1278
- baseURL: ollamaBaseUrl || process.env.OLLAMA_BASE_URL || "http://localhost:11434"
1278
+ baseURL: ollamaBaseUrl || process.env.OLLAMA_BASE_URL || "http://localhost:11434/api"
1279
1279
  })(model.id, { simulateStreaming: true });
1280
1280
  default:
1281
1281
  throw new Error(`Unsupported provider: ${model.provider}`);
@@ -1921,12 +1921,10 @@ app.use("*", async (c, next) => {
1921
1921
  await next();
1922
1922
  });
1923
1923
  app.use("*", logger());
1924
- var serverPort = process.env.PORT || "3001";
1924
+ var serverPort = process.env.PORT || "3000";
1925
1925
  var corsOrigins = [
1926
1926
  `http://localhost:${serverPort}`,
1927
- "http://localhost:3000",
1928
- // Keep for development
1929
- "http://localhost:3001"
1927
+ "http://localhost:3000"
1930
1928
  // Keep for development
1931
1929
  ];
1932
1930
  app.use(
@@ -1969,7 +1967,7 @@ if (process.env.NODE_ENV === "production") {
1969
1967
  });
1970
1968
  });
1971
1969
  }
1972
- var port = parseInt(process.env.PORT || "3001");
1970
+ var port = parseInt(process.env.PORT || "3000");
1973
1971
  logBox(`http://localhost:${port}`, "\u{1F680} Inspector Launched");
1974
1972
  var server = serve({
1975
1973
  fetch: app.fetch,