Skip to main content
Glama
NorthSeacoder

Frontend Test Generation & Code Review MCP Server

legacy-tool-adapter.ts502 B
/** * LegacyToolAdapter - 将现有工具包装为 BaseTool */ import { BaseTool, ToolMetadata } from './base-tool.js'; export class LegacyToolAdapter<TInput, TOutput> extends BaseTool<TInput, TOutput> { constructor( private metadata: ToolMetadata, private executor: (input: TInput) => Promise<TOutput> ) { super(); } getMetadata(): ToolMetadata { return this.metadata; } protected executeImpl(input: TInput): Promise<TOutput> { return this.executor(input); } }

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/NorthSeacoder/fe-testgen-mcp'

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