NAME
Claude::Agent::MCP::Server - SDK MCP server configuration
DESCRIPTION
Defines an SDK MCP server configuration.
ATTRIBUTES
name - Server name (used in tool naming: mcp__name__tool)
tools - ArrayRef of Claude::Agent::MCP::ToolDefinition objects
version - Server version (default: '1.0.0')
type - Server type (default: 'sdk')
METHODS
to_hash
my $hash = $server->to_hash();
Convert the server configuration to a hash for JSON serialization.
get_tool
my $tool = $server->get_tool($tool_name);
Get a tool definition by name.
tool_names
my $names = $server->tool_names();
Get the full MCP tool names for all tools in this server.
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).