Skip to main content
Glama
masx200

Persistent Terminal MCP Server

by masx200
list-tools.mjs788 B
import { Client } from "@modelcontextprotocol/sdk/client/index.js"; import { StdioClientTransport } from "@modelcontextprotocol/sdk/client/stdio.js"; async function main() { const transport = new StdioClientTransport({ command: "node", args: ["dist/index.js"], cwd: "/Users/admin/Desktop/node-pty", }); const client = new Client( { name: "debug-client", version: "1.0.0", }, { capabilities: { roots: {}, sampling: {}, }, }, ); await client.connect(transport); const tools = await client.listTools(); console.log( "Tools:", tools.tools.map((t) => t.name), ); await client.close(); await transport.close(); } main().catch((err) => { console.error("Error:", err); process.exit(1); });

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/masx200/persistent-terminal-mcp'

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