We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/Stack-AI-MCP/stacks-mcp-server'
If you have feedback or need assistance with the MCP directory API, please join our Discord server
PluginBase.ts•604 B
import type { ToolBase } from './ToolBase.js';
import type { WalletClientBase } from './types.js';
/**
* Abstract base class for plugins that provide tools
* Based on VeChain MCP PluginBase pattern
*/
export abstract class PluginBase<TWalletClient extends WalletClientBase = WalletClientBase> {
/**
* Returns the tools provided by this plugin
*/
abstract getTools(walletClient: TWalletClient): ToolBase[] | Promise<ToolBase[]>;
/**
* Indicates if the plugin supports the given wallet client
*/
supportsWalletClient(walletClient: TWalletClient): boolean {
return true;
}
}