Skip to main content
Glama
YUChoe

SQLite MCP Server

by YUChoe
testTool.ts1.07 kB
/** * 테스트 도구 - MCP 콘텐츠 구조 디버깅용 */ import { z } from 'zod'; import type { ToolDefinition, ToolResult } from '../types/index.js'; /** * 테스트 도구 정의 */ export const testTool: ToolDefinition = { name: 'test_tool', description: 'MCP 콘텐츠 구조 테스트용 간단한 도구', inputSchema: z.object({ message: z.string().describe('테스트 메시지') }), handler: testHandler }; /** * 테스트 핸들러 */ async function testHandler(params: { message: string }): Promise<ToolResult> { console.error('testHandler called with params:', JSON.stringify(params)); const result: ToolResult = { content: [{ type: 'text', text: `테스트 성공: ${params.message}` }] }; console.error('testHandler returning:', JSON.stringify(result)); return result; } /** * 테스트 함수 (MCP 서버에서 직접 호출용) */ export async function testFunction(params: { message: string }): Promise<ToolResult> { return await testHandler(params); }

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/YUChoe/sqlite-mcp'

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