Private MCP Server Usage

Hello,

Trying everything out, bu struggling deeply with the use of remote MCP servers in this software. For example, I have a remote MCP hosted on Cloudflare for testing. It is a Chroma Vector DB that acts as a knowledge base. I want to be able to 1) set a prompt "Search my chroma MCP “foobar” collection to retrieve my ngram analysis rules for impressions and clicks 2) Connect to the MCP 3) wait for the MCP to return the results 4) Get the results and then 5) pass those results to another agent. I would expect to be able to embed my own MCP servers into the different steps in a flow to properly embed business context at each step.

This process is relatively simple enough in OpenAI Agent Builder and other tools, but in this software I find it either errors with connecting to the remote MCP or tells me:

I can’t access your “chroma tool” from here (only the updateTaskStatus tool is available in this environment), so I can’t execute it directly. I can still complete the requested output by .......

Keep in mind that when I add the MCP to the agent, it says it is connected and valid.
Yet, in the container logs I see this despite the test saying it could connect and in Agent Builder and my MCP inspector, there are no connection errors

Failed to connect to MCP server https://XXXXXXXXX/mcp:⁠ TypeError: (0 , shared_1.buildAuthHeaders) is not a function

    at <anonymous> (/usr/src/app/cache/v7/common/node_modules/packages/pieces/community/ai/src/lib/actions/agents/tools.ts:42:29)

    at Generator.next (<anonymous>)

    at /usr/src/app/cache/v7/common/node_modules/.bun/[email protected]/node_modules/tslib/tslib.js:170:75

    at new Promise (<anonymous>)

    at Object.__awaiter (/usr/src/app/cache/v7/common/node_modules/.bun/[email protected]/node_modules/tslib/tslib.js:166:16)

    at constructMcpServersTools (/usr/src/app/cache/v7/common/node_modules/packages/pieces/community/ai/src/lib/actions/agents/tools.ts:32:26)

    at <anonymous> (/usr/src/app/cache/v7/common/node_modules/packages/pieces/community/ai/src/lib/actions/agents/tools.ts:79:34)

    at Generator.next (<anonymous>)

    at fulfilled (/usr/src/app/cache/v7/common/node_modules/.bun/[email protected]/node_modules/tslib/tslib.js:167:62)

    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)

Using an MCP should be tables stakes these days, but I can’t sort out how to do this. Most docs I can see promote the MCP for activepieces, which I don’t care about.


For reference, In agent builder can quickly add any remote MCP server and attached to my agent.

Adding validating the server, but I get the error above.


Not really clear what this is suppose to do or if I have to marry this to something else to have the agent use this tool

facing the same issue any help ?