diff --git a/.gitignore b/.gitignore index 3e71bf2..0f4928e 100644 --- a/.gitignore +++ b/.gitignore @@ -3,3 +3,4 @@ node_modules server/build client/dist client/tsconfig.app.tsbuildinfo +client/tsconfig.node.tsbuildinfo diff --git a/client/package.json b/client/package.json index cf896a8..1199b41 100644 --- a/client/package.json +++ b/client/package.json @@ -22,7 +22,8 @@ "react": "^18.3.1", "react-dom": "^18.3.1", "tailwind-merge": "^2.5.3", - "tailwindcss-animate": "^1.0.7" + "tailwindcss-animate": "^1.0.7", + "zod": "^3.23.8" }, "devDependencies": { "@eslint/js": "^9.11.1", diff --git a/client/src/App.tsx b/client/src/App.tsx index 8f1cbfa..5747b9d 100644 --- a/client/src/App.tsx +++ b/client/src/App.tsx @@ -40,7 +40,7 @@ import NotificationsTab from "./components/NotificationsTab"; import PromptsTab, { Prompt } from "./components/PromptsTab"; import ToolsTab from "./components/ToolsTab"; import History from "./components/History"; -import { AnyZodObject } from "node_modules/zod/lib"; +import { AnyZodObject } from "zod"; const App = () => { const [connectionStatus, setConnectionStatus] = useState< diff --git a/client/src/components/ResourcesTab.tsx b/client/src/components/ResourcesTab.tsx index e16dd1f..f315933 100644 --- a/client/src/components/ResourcesTab.tsx +++ b/client/src/components/ResourcesTab.tsx @@ -5,11 +5,6 @@ import { TabsContent } from "@/components/ui/tabs"; import { Resource } from "mcp-typescript/types.js"; import ListPane from "./ListPane"; -export type Resource = { - uri: string; - name: string; -}; - const ResourcesTab = ({ resources, listResources, @@ -38,7 +33,7 @@ const ResourcesTab = ({ renderItem={(resource) => (
{selectedTool.description}
- {Object.entries(selectedTool.inputSchema.properties).map( + {Object.entries(selectedTool.inputSchema.properties ?? []).map( ([key, value]) => (