Barcode - WebMcpBarcode
18 Nov 20261 minute to read
WebMcpBarcode - Integrates the barcode family with WebMCP protocol
Manages tool registration, execution, and communication with the MCP server
Methods
destroy
Revokes registered tools, removes listeners and releases the parent reference.
Returns void
getModuleName
Returns the module name used for injection and lookup.
Returns string
init
Initializes the WebMCP adapter with the parent barcode.
Called by the parent BarcodeGenerator component after module injection.
| Parameter | Type | Description |
|---|---|---|
| parent | WebMcpBarcodeParent | The barcode instance that owns this adapter. |
Returns void
registerTools
Registers tools for WebMCP integration. Called automatically when WebMCP is enabled.
| Parameter | Type | Description |
|---|---|---|
| args | WebMcpRegisterRequest |
Tool registration request containing prefix, tools, and exposedTo |
Returns void
unregisterTools
Revokes every tool previously registered by this adapter instance.
Returns void