diff --git a/client/package.json b/client/package.json
index eb0091f..8dc5a90 100644
--- a/client/package.json
+++ b/client/package.json
@@ -1,6 +1,6 @@
{
"name": "@modelcontextprotocol/inspector-client",
- "version": "0.7.0",
+ "version": "0.8.0",
"description": "Client-side application for the Model Context Protocol inspector",
"license": "MIT",
"author": "Anthropic, PBC (https://anthropic.com)",
diff --git a/client/src/components/ToolsTab.tsx b/client/src/components/ToolsTab.tsx
index 6a6f9f5..7958664 100644
--- a/client/src/components/ToolsTab.tsx
+++ b/client/src/components/ToolsTab.tsx
@@ -220,7 +220,11 @@ const ToolsTab = ({
) : (
{
},
},
},
+ {
+ name: "tool3",
+ description: "Integer tool",
+ inputSchema: {
+ type: "object" as const,
+ properties: {
+ count: { type: "integer" as const },
+ },
+ },
+ },
{
name: "tool2",
description: "Second tool",
@@ -62,7 +72,7 @@ describe("ToolsTab", () => {
// Switch to second tool
rerender(
-
+
,
);
@@ -71,6 +81,7 @@ describe("ToolsTab", () => {
expect(newInput.value).toBe("");
});
+
it("should display error message when error prop is provided", () => {
const errorMessage = "Test error message";
renderToolsTab({
@@ -81,5 +92,25 @@ describe("ToolsTab", () => {
// Verify error message is displayed
expect(screen.getByText("Error")).toBeTruthy();
expect(screen.getByText(errorMessage)).toBeTruthy();
+ });
+
+ it("should handle integer type inputs", () => {
+ renderToolsTab({
+ selectedTool: mockTools[1], // Use the tool with integer type
+ });
+
+ const input = screen.getByRole("spinbutton", {
+ name: /count/i,
+ }) as HTMLInputElement;
+ expect(input).toHaveProperty("type", "number");
+ fireEvent.change(input, { target: { value: "42" } });
+ expect(input.value).toBe("42");
+
+ const submitButton = screen.getByRole("button", { name: /run tool/i });
+ fireEvent.click(submitButton);
+
+ expect(defaultProps.callTool).toHaveBeenCalledWith(mockTools[1].name, {
+ count: 42,
+ });
});
});
diff --git a/package-lock.json b/package-lock.json
index feb893f..e9254db 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -1,20 +1,20 @@
{
"name": "@modelcontextprotocol/inspector",
- "version": "0.7.0",
+ "version": "0.8.0",
"lockfileVersion": 3,
"requires": true,
"packages": {
"": {
"name": "@modelcontextprotocol/inspector",
- "version": "0.7.0",
+ "version": "0.8.0",
"license": "MIT",
"workspaces": [
"client",
"server"
],
"dependencies": {
- "@modelcontextprotocol/inspector-client": "^0.7.0",
- "@modelcontextprotocol/inspector-server": "^0.7.0",
+ "@modelcontextprotocol/inspector-client": "^0.8.0",
+ "@modelcontextprotocol/inspector-server": "^0.8.0",
"concurrently": "^9.0.1",
"shell-quote": "^1.8.2",
"spawn-rx": "^5.1.2",
@@ -32,7 +32,7 @@
},
"client": {
"name": "@modelcontextprotocol/inspector-client",
- "version": "0.7.0",
+ "version": "0.8.0",
"license": "MIT",
"dependencies": {
"@modelcontextprotocol/sdk": "^1.6.1",
@@ -11571,7 +11571,7 @@
},
"server": {
"name": "@modelcontextprotocol/inspector-server",
- "version": "0.7.0",
+ "version": "0.8.0",
"license": "MIT",
"dependencies": {
"@modelcontextprotocol/sdk": "^1.6.1",
diff --git a/package.json b/package.json
index 28b93d8..d323dda 100644
--- a/package.json
+++ b/package.json
@@ -1,6 +1,6 @@
{
"name": "@modelcontextprotocol/inspector",
- "version": "0.7.0",
+ "version": "0.8.0",
"description": "Model Context Protocol inspector",
"license": "MIT",
"author": "Anthropic, PBC (https://anthropic.com)",
@@ -36,8 +36,8 @@
"publish-all": "npm publish --workspaces --access public && npm publish --access public"
},
"dependencies": {
- "@modelcontextprotocol/inspector-client": "^0.7.0",
- "@modelcontextprotocol/inspector-server": "^0.7.0",
+ "@modelcontextprotocol/inspector-client": "^0.8.0",
+ "@modelcontextprotocol/inspector-server": "^0.8.0",
"concurrently": "^9.0.1",
"shell-quote": "^1.8.2",
"spawn-rx": "^5.1.2",
diff --git a/server/package.json b/server/package.json
index 732993f..9072f51 100644
--- a/server/package.json
+++ b/server/package.json
@@ -1,6 +1,6 @@
{
"name": "@modelcontextprotocol/inspector-server",
- "version": "0.7.0",
+ "version": "0.8.0",
"description": "Server-side application for the Model Context Protocol inspector",
"license": "MIT",
"author": "Anthropic, PBC (https://anthropic.com)",