Skip to main content
Glama

SSH MCP Server

by mfangtao
types.d.ts1.07 kB
declare module '@modelcontextprotocol/sdk' { interface ToolDefinition { description: string; parameters: Record<string, { type: string; required?: boolean; default?: any; }>; execute: (params: any) => Promise<any>; } class Server { constructor(name: string); registerTool(name: string, definition: ToolDefinition): void; start(): void; } } declare module 'ssh2' { import { EventEmitter } from 'events'; interface ExecOptions { env?: Record<string, string>; pty?: boolean | object; } class Client extends EventEmitter { connect(config: { host: string; port?: number; username: string; privateKey?: string; password?: string; }): void; exec(command: string, callback: (err: Error, stream: any) => void): void; exec(command: string, options: ExecOptions, callback: (err: Error, stream: any) => void): void; end(): void; on(event: 'ready', listener: () => void): this; on(event: 'error', listener: (err: Error) => void): this; } }

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/mfangtao/mcp-ssh-server'

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