Skip to main content
Glama
jakenuts

mcp-cli-exec MCP Server

by jakenuts
validation.ts658 B
import type { ExecRawArgs, ExecArgs } from './types.js'; export const isValidExecRawArgs = (args: any): args is ExecRawArgs => typeof args === 'object' && args !== null && typeof args.command === 'string' && (args.timeout === undefined || typeof args.timeout === 'number'); export const isValidExecArgs = (args: any): args is ExecArgs => typeof args === 'object' && args !== null && typeof args.workingDirectory === 'string' && (typeof args.commands === 'string' || (Array.isArray(args.commands) && args.commands.every((cmd: any) => typeof cmd === 'string'))) && (args.timeout === undefined || typeof args.timeout === 'number');

Implementation Reference

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/jakenuts/mcp-cli-exec'

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