fix types, eliminate client/server

This commit is contained in:
Ashwin Bhat
2024-10-11 08:34:28 -07:00
parent df8051b975
commit 50f86ebbfe
3 changed files with 16 additions and 43 deletions

View File

@@ -3,19 +3,11 @@ import { Button } from "@/components/ui/button";
import { Input } from "@/components/ui/input";
import { Send, AlertCircle } from "lucide-react";
import { Alert, AlertDescription, AlertTitle } from "@/components/ui/alert";
import { Tool } from "mcp-typescript/types.js";
import { useState } from "react";
import { Label } from "@/components/ui/label";
import ListPane from "./ListPane";
export type Tool = {
name: string;
description?: string | undefined;
inputSchema: {
type: string;
properties?: Record<string, { type: string; description: string }>;
};
};
const ToolsTab = ({
tools,
listTools,