MCP Tools Example

This example focuses on MCP integration. It connects ClientAgentJS to the example server in scripts/mcp_server.py, lets you inspect the remote tools, and shows an ask() flow where the model can use MCP tools automatically.

  1. Run npm run build.
  2. Start the MCP server from scripts/mcp_server.py.
  3. Create or reuse a profile that points to an OpenAI-compatible provider.
  4. Save the MCP server and enable it in the active profile.

Server Setup

Agent Setup

Direct MCP Calls

Status

Output