@mcpjam/inspector 1.0.21 → 1.0.22

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,8 +5,8 @@
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-BK5R5b7m.js"></script>
9
- <link rel="stylesheet" crossorigin href="/assets/index-B6vbeD-k.css">
8
+ <script type="module" crossorigin src="/assets/index-D8ZrIuqF.js"></script>
9
+ <link rel="stylesheet" crossorigin href="/assets/index-Cmj7zzZk.css">
10
10
  </head>
11
11
  <body>
12
12
  <div id="root"></div>
@@ -2877,7 +2877,14 @@ chatV2.post("/", async (c) => {
2877
2877
  try {
2878
2878
  const body = await c.req.json();
2879
2879
  const mcpClientManager2 = c.mcpClientManager;
2880
- const { messages, apiKey, model } = body;
2880
+ const {
2881
+ messages,
2882
+ apiKey,
2883
+ model,
2884
+ systemPrompt,
2885
+ temperature,
2886
+ selectedServers
2887
+ } = body;
2881
2888
  if (!Array.isArray(messages) || messages.length === 0) {
2882
2889
  return c.json({ error: "messages are required" }, 400);
2883
2890
  }
@@ -2885,7 +2892,8 @@ chatV2.post("/", async (c) => {
2885
2892
  if (!modelDefinition) {
2886
2893
  return c.json({ error: "model is not supported" }, 400);
2887
2894
  }
2888
- const mcpTools = await mcpClientManager2.getToolsForAiSdk();
2895
+ console.log("selectedServers", selectedServers);
2896
+ const mcpTools = await mcpClientManager2.getToolsForAiSdk(selectedServers);
2889
2897
  if (modelDefinition.id && isMCPJamProvidedModel(modelDefinition.id)) {
2890
2898
  if (!process.env.CONVEX_HTTP_URL) {
2891
2899
  return c.json(
@@ -2942,7 +2950,8 @@ chatV2.post("/", async (c) => {
2942
2950
  mode: "step",
2943
2951
  messages: JSON.stringify(messageHistory),
2944
2952
  model: String(modelDefinition.id),
2945
- temperature: body.temperature ?? DEFAULT_TEMPERATURE,
2953
+ systemPrompt,
2954
+ temperature: temperature ?? DEFAULT_TEMPERATURE,
2946
2955
  tools: toolDefs
2947
2956
  })
2948
2957
  });
@@ -3021,7 +3030,8 @@ chatV2.post("/", async (c) => {
3021
3030
  const result = streamText2({
3022
3031
  model: llmModel,
3023
3032
  messages: convertToModelMessages(messages),
3024
- temperature: body.temperature ?? DEFAULT_TEMPERATURE,
3033
+ temperature: temperature ?? DEFAULT_TEMPERATURE,
3034
+ system: systemPrompt,
3025
3035
  tools: mcpTools,
3026
3036
  stopWhen: stepCountIs(20)
3027
3037
  });