This feature is available in our paid editions. Contact us here, and we'll be delighted to assist you!

This documentaiton page shows what methods to call to update/edit your MCP server.

These steps assume you have already called the configure method on the sdk. If not, please check the embed-builder page.

Add Tool

Returns a promise that would resolve to the MCP server info schema


activepieces.addMcpTool({pieceName:"your_piece_name", connectionId:"your_connection_id "})

Request Parameters:

Parameter NameRequiredTypeDescription
pieceNamestringthe name of the piece you want to update as a tool from your MCP server
connectionIdstringoptional only if the piece doesn’t need a connection
status“ENABLED” or “DISABLED”Status of the tool after adding

Update Tool

Returns a promise that would resolve to the MCP server info schema

activepieces.updateMcpTool({pieceName:"your_piece_name", status:"DISABLED"})
Parameter NameRequiredTypeDescription
pieceNamestringthe name of the piece you want to update as a tool from your MCP server
connectionIdstringconnectionId of the piece you want to use
status“ENABLED” or “DISABLED”Status of the tool

Remove Tool

Returns a promise that would resolve to the MCP server info schema

activepieces.removeMcpTool({pieceName:"your_piece_name"})
Parameter NameRequiredTypeDescription
pieceNamestringthe name of the piece you want to remove as a tool from your MCP server

List Tools

Returns a promise that would resolve to the an object with a property pieces which is an array of McpPiece

activepieces.getMcpTools()

Get MCP server info

Returns a promise that would resolve to the MCP server info schema

activepieces.getMcpInfo()