Skip to content

agent-tool-mcp / Exports / RelayMcpTool

Class: RelayMcpTool

RelayMcpTool

Minimal relay tool for third-party MCP commands that need to spin up a Robota-based flow.

  • Caller provides tool-bound EventService and ownerPath (up to tool segment).
  • This tool appends a single agent segment and forwards control to the provided run() callback.
  • No prefix injection, no ownerPath inference, no fallback/clone/context creation inside.

Implements ITool without extending AbstractTool to avoid circular runtime dependency.

Table of contents

Constructors

Properties

Methods

Constructors

constructor

new RelayMcpTool(options): RelayMcpTool

Parameters

NameType
optionsIRelayMcpOptions

Returns

RelayMcpTool

Defined in

relay-mcp-tool.ts:49

Properties

schema

Readonly schema: IToolSchema

Defined in

relay-mcp-tool.ts:46

Methods

execute

execute(parameters, context?): Promise<IToolResult>

Parameters

NameType
parametersTToolParameters
context?IToolExecutionContext

Returns

Promise<IToolResult>

Defined in

relay-mcp-tool.ts:54


validate

validate(parameters): boolean

Parameters

NameType
parametersTToolParameters

Returns

boolean

Defined in

relay-mcp-tool.ts:97


validateParameters

validateParameters(parameters): IParameterValidationResult

Parameters

NameType
parametersTToolParameters

Returns

IParameterValidationResult

Defined in

relay-mcp-tool.ts:101


getDescription

getDescription(): string

Returns

string

Defined in

relay-mcp-tool.ts:117

Released under the MIT License.