@mcpjam/inspector 0.9.11 → 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.
- package/.vite/build/main.cjs +285 -0
- package/assets/icon.icns +0 -0
- package/assets/icon.ico +0 -0
- package/dist/client/assets/index-DyELowGw.js +1738 -0
- package/dist/client/assets/{index-hyEDWMYC.js.map → index-DyELowGw.js.map} +1 -1
- package/dist/client/index.html +1 -1
- package/dist/server/index.js +5 -7
- package/dist/server/index.js.map +1 -1
- package/package.json +11 -3
- package/dist/client/assets/index-hyEDWMYC.js +0 -1738
package/dist/client/index.html
CHANGED
|
@@ -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-
|
|
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>
|
package/dist/server/index.js
CHANGED
|
@@ -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 || "
|
|
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 || "
|
|
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,
|