NAME

Claude::Agent::MCP::StdioServer - Stdio MCP server configuration

DESCRIPTION

Configuration for an external MCP server process.

Security note: The command and args are passed directly to the Claude CLI for execution. Ensure you only use trusted values - never construct a StdioServer from untrusted user input without validation, as this could enable command injection attacks.

ATTRIBUTES

  • command - Command to run (should be a trusted executable path)

  • args - ArrayRef of command arguments

  • env - HashRef of environment variables

  • type - Always 'stdio'

METHODS

to_hash

my $hash = $server->to_hash();

Convert the server configuration to a hash for JSON serialization.

AUTHOR

LNATION, <email at lnation.org>

LICENSE

This software is Copyright (c) 2026 by LNATION.

This is free software, licensed under The Artistic License 2.0 (GPL Compatible).