McpGatewaySkill

View as MarkdownOpen in Claude

Placeholder skill for future Model Context Protocol (MCP) server integration. Currently provides a stub mcp_invoke tool.

Class: McpGatewaySkill

Tools: mcp_invoke (placeholder, not yet functional)

Env vars: None

gateway_url
string

URL of the MCP gateway server.

tool_prefix
string

Prefix for tool names from this gateway.

auth_token
string

Authentication token for the MCP gateway.

This skill is a placeholder. The mcp_invoke tool returns a “not yet implemented” message. Full MCP integration is planned for a future release.

1import { AgentBase, McpGatewaySkill } from '@signalwire/sdk';
2
3const agent = new AgentBase({ name: 'assistant', route: '/assistant' });
4agent.setPromptText('You are a helpful assistant.');
5
6await agent.addSkill(new McpGatewaySkill({
7 gateway_url: 'http://localhost:8080',
8}));
9
10agent.run();