Skip to main content
Glama
MCP-Server-Agent

MCP-Server-Agent

by domwokorach

My Agent Platform

The dashboard and MCP service for My Agent Platform.

MCP server

The server exposes nine Zod-validated tools over STDIO and Streamable HTTP:

npm run mcp

Use the Inspector during local development:

npm run mcp:inspect

Remote clients use POST /api/mcp. VS Code can load the STDIO server from .vscode/mcp.json.

Related MCP server: mcp-shell-server

Dashboard and management API

Run the dashboard with:

npm run dev

Open /dashboard/mcp for live status, read-only redacted logs, and the approved start, stop, and restart controls. The dashboard receives status changes using server-sent events.

Open /dashboard/terminal for an interactive, admin-only terminal backed by the MCP terminal_execute tool. Every command is authenticated (session, admin role), CSRF-checked, classified into a SAFE / REQUIRES_CONFIRMATION / ADMIN_ONLY / DENIED tier (src/lib/terminal/command-policy.ts), and then run through the same MCP security gateway pipeline used by STDIO/HTTP MCP clients (POST /api/terminal/execute). The tool itself stays disabled until an administrator sets MCP_TERMINAL_ENABLED=true.

Set MCP_MANAGEMENT_TOKEN in every production environment. Management API callers must provide it as a Bearer token. State-changing requests must also send x-mcp-csrf: 1 and a same-origin Origin:

curl -X POST http://localhost:3000/api/mcp/restart \
  -H "Authorization: Bearer $MCP_MANAGEMENT_TOKEN" \
  -H "x-mcp-csrf: 1"

On localhost, controls use a local-only development bootstrap; production requests without a configured token are rejected. The process manager starts only the repository's fixed tsx apps/mcp/src/index.ts command and redacts secrets from emitted logs.

MCP-Server-Agent

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      Not graded
      quality
      C
      maintenance
      Exposes a Windows or Linux host terminal to remote MCP clients via Streamable HTTP, enabling command execution, tunnel management, and privileged operations with security features like OAuth and audit logging.
      26 npm
      3
      MIT
    • A
      license
      Not graded
      quality
      C
      maintenance
      Enables MCP clients to run shell commands on the host and retrieve exit code, stdout, and stderr, with hardened authentication and an encrypted audit log.
      -
    • A
      license
      Not graded
      quality
      C
      maintenance
      Enables MCP clients to execute shell commands, manage long-running processes, and read/write files on the host machine with the permissions of the user running the server.
      5 npm
      MIT