Skip to main content
Glama
types.ts1.72 kB
import { WebSocket } from "ws"; // ツール型定義(既存ツールとの互換性のため残す) // 注: MCP SDK使用時は、これらは主にツール内部で使用され、SDKにはZodスキーマとして登録されます /** * MCPツールの基本情報を定義するインターフェース * AI/LLMがツールを理解するために必要な情報を含む * * @interface Tool */ export interface Tool { name: string; description: string; inputSchema: InputSchema; } /** * ツール入力パラメータのJSON Schemaを定義するインターフェース * ツールの引数の型、必須項目、制約などを記述 * * @interface InputSchema */ export interface InputSchema { type: string; properties: Record<string, Property>; required?: string[]; } /** * JSON Schemaのプロパティ定義 * 各パラメータの型、説明、制約を記述 * * @interface Property */ export interface Property { type: string; description: string; enum?: string[]; minimum?: number; maximum?: number; default?: any; items?: Property; properties?: Record<string, Property>; required?: string[]; } // サーバー型定義 /** * 接続中のMinecraftプレイヤー情報 * WebSocket接続とプレイヤー識別情報を保持 * * @interface ConnectedPlayer */ export interface ConnectedPlayer { ws: WebSocket | null; name: string; id: string; } /** * ツール実行結果の型定義 * 成功/失敗ステータス、メッセージ、データを含む統一された結果フォーマット * * @interface ToolCallResult */ export interface ToolCallResult { success: boolean; message?: string; data?: any; error?: string; }

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/Mming-Lab/minecraft-bedrock-mcp-server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server