# WxO Agent MCP [Health: Active]

**Category:** 💻 Developer Tools  
**Repository:** https://github.com/markusvankempen/wxo-agent-mcp  
**GitHub Stars:** 0  
**Views:** 0  
**Installs:** 0  
**Upvotes:** 0  
**Directory Page:** https://allmcps.com/mcp/wxo-agent-mcp

## Description
Invoke a Watson Orchestrate agent via MCP. Configure with WO_AGENT_ID.

## Claude Desktop Quick Installation
Install path detected from listing signals. Uses `npx` (confidence: high):

```json
"mcpServers": {
  "wxo-agent-mcp": {
    "command": "npx",
    "args": ["-y","wxo-agent-mcp"]
  }
}
```

## Documentation & README

# WxO Agent MCP

[![npm version](https://img.shields.io/npm/v/wxo-agent-mcp.svg)](https://www.npmjs.com/package/wxo-agent-mcp)
[![npm downloads](https://img.shields.io/npm/dm/wxo-agent-mcp.svg)](https://www.npmjs.com/package/wxo-agent-mcp)
[![License](https://img.shields.io/badge/license-Apache--2.0-blue.svg)](LICENSE)

<p align="center">
  <img src="https://raw.githubusercontent.com/markusvankempen/wxo-agent-mcp/HEAD/resources/icon.svg" alt="wxo-agent-mcp" width="128" />
</p>

<p align="center">
  <a href="https://cursor.directory/mcp/wxo-agent-mcp"><img src="https://img.shields.io/badge/Add_to_Cursor-WxO%20Agent%20MCP-0f62fe?style=for-the-badge" alt="Add MCP server to Cursor" /></a>
</p>

Simple MCP (Model Context Protocol) server that **invokes a single Watson Orchestrate agent** remotely. The agent is defined once via environment variables or MCP config.

Use this when you want a lightweight MCP that only chats with one agent—no tool management, no agent listing, no flows. Just `invoke_agent(message)` and `get_agent()`.

**Full documentation:** [DOCUMENTATION.md](https://github.com/markusvankempen/wxo-agent-mcp/blob/HEAD/DOCUMENTATION.md) (includes [screenshots](https://github.com/markusvankempen/wxo-agent-mcp/blob/HEAD/DOCUMENTATION.md#testing-in-langflow) for VS Code and Langflow).  
**Publishing:** [PUBLISHING.md](https://github.com/markusvankempen/wxo-agent-mcp/blob/HEAD/PUBLISHING.md) – npm and MCP Registry procedure.

### Architecture

```
                    ┌───────────────────────────────────────┐
                    │  Cursor • VS Code • Langflow • etc.   │
                    │  (MCP clients)                        │
                    └──────────────────┬───────────────────┘
                                       │ stdio / JSON-RPC
                                       ▼
                    ┌───────────────────────────────────────┐
                    │  wxo-agent-mcp                        │
                    │  invoke_agent • get_agent              │
                    └──────────────────┬───────────────────┘
                                       │ HTTP / REST
                                       ▼
                    ┌───────────────────────────────────────┐
                    │  Watson Orchestrate                   │
                    │  agent + tools + LLM                   │
                    └───────────────────────────────────────┘
```

## Tools

| Tool             | Description                                                                                            |
| ---------------- | ------------------------------------------------------------------------------------------------------ |
| **invoke_agent** | Send a message to the configured Watson Orchestrate agent. The agent responds using its tools and LLM. |
| **get_agent**    | Get details of the configured agent (name, description, tools, instructions).                          |

## Configuration

Set these in `.env` or your MCP client config (e.g. Cursor `mcp.json`):

```env
WO_API_KEY=your-ibm-cloud-api-key
WO_INSTANCE_URL=https://your-instance-id.orchestrate.ibm.com
WO_AGENT_ID=your-agent-id
# Or WO_AGENT_IDs=id1,id2  (first is used)
```

## Quick Start

```bash
npm install
npm run build
cp .env.example .env
# Edit .env with your credentials and agent ID
WO_API_KEY=... WO_INSTANCE_URL=... WO_AGENT_ID=... node dist/index.js
```

### Verify

```bash
# Default question ("Hello, who are you?")
WO_API_KEY=... WO_INSTANCE_URL=... WO_AGENT_IDs=... npm run test:verify

# Custom question
npm run test:verify -- -ask "What is the weather in Amsterdam?"
```

Runs `get_agent` and `invoke_agent` to confirm connectivity.

### Test in VS Code

1. Open the `wxo-agent-mcp` folder in VS Code.
2. Run `npm run build`.
3. `.vscode/mcp.json` registers the MCP server as **wxo-agent** and loads `.env`.
4. Open Copilot Chat (Ctrl+Shift+I) and ask: _Use invoke_agent to ask: What is the weather in Amsterdam?_  
   For "what can you do", use _Use invoke_agent to ask: What can you do?_ to avoid Copilot calling `get_agent` first.
5. Or run `npm run test:verify` from the terminal (Ctrl+`).

See [DOCUMENTATION.md](https://github.com/markusvankempen/wxo-agent-mcp/blob/HEAD/DOCUMENTATION.md#testing-locally-in-vs-code) for more prompts and setup.

**Question examples:** [Full list →](https://github.com/markusvankempen/wxo-agent-mcp/blob/HEAD/DOCUMENTATION.md#question-examples)

| invoke_agent                      | get_agent                           |
| --------------------------------- | ----------------------------------- |
| What is the weather in Amsterdam? | Use get_agent to show agent details |
| Tell me a dad joke                | What tools does my agent have?      |
| What time is it in Tokyo?         |                                     |
| What can you help me with?        |                                     |

**Langflow:** Add an MCP Tools component, choose STDIO, set Command=`node`, Args=`["/path/to/dist/index.js"]`, and env vars. See [DOCUMENTATION.md](https://github.com/markusvankempen/wxo-agent-mcp/blob/HEAD/DOCUMENTATION.md#testing-in-langflow).

## MCP Client Configuration

### One-click install (Cursor Directory)

**[Add to Cursor](https://cursor.directory/mcp/wxo-agent-mcp)** — Opens the Cursor Directory page. After adding, set `WO_API_KEY`, `WO_INSTANCE_URL`, and `WO_AGENT_ID` in Cursor MCP settings.

**For [cursor.directory/mcp/new](https://cursor.directory/mcp/new) submission:**

| Field | Value |
|-------|-------|
| **Cursor Deep Link** | `cursor://anysphere.cursor-deeplink/mcp/install?name=WxO%20Agent%20MCP&config=eyJjb21tYW5kIjoibnB4IiwiYXJncyI6WyIteSIsInd4by1hZ2VudC1tY3AiXSwiZW52Ijp7IldPX0FQSV9LRVkiOiJ5b3VyLWFwaS1rZXkiLCJXT19JTlNUQU5DRV9VUkwiOiJodHRwczovL3lvdXItaW5zdGFuY2Uub3JjaGVzdHJhdGUuaWJtLmNvbSIsIldPX0FHRU5UX0lEIjoieW91ci1hZ2VudC1pZCJ9fQ==` |
| **Install instructions** | https://github.com/markusvankempen/wxo-agent-mcp#mcp-client-configuration |

### Cursor (`.cursor/mcp.json`)

```json
{
    "mcpServers": {
        "wxo-agent": {
            "command": "npx",
            "args": ["-y", "wxo-agent-mcp"],
            "env": {
                "WO_API_KEY": "your-api-key",
                "WO_INSTANCE_URL": "https://xxx.orchestrate.ibm.com",
                "WO_AGENT_ID": "your-agent-id"
            }
        }
    }
}
```

### VS Code Copilot (`.vscode/mcp.json`)

The server is named **wxo-agent**. Use `envFile` to load `.env`:

```json
{
    "servers": {
        "wxo-agent": {
            "type": "stdio",
            "command": "node",
            "args": ["${workspaceFolder}/dist/index.js"],
            "envFile": "${workspaceFolder}/.env"
        }
    }
}
```

For npx (after publishing), use `"command": "npx"`, `"args": ["-y", "wxo-agent-mcp"]`, and add `env` with your credentials.

### Antigravity

Same config as Cursor. Copy `examples/antigravity-mcp.json` or add to your MCP config:

```json
{
    "mcpServers": {
        "wxo-agent": {
            "command": "npx",
            "args": ["-y", "wxo-agent-mcp"],
            "env": {
                "WO_API_KEY": "your-api-key",
                "WO_INSTANCE_URL": "https://xxx.orchestrate.ibm.com",
                "WO_AGENT_ID": "your-agent-id"
            }
        }
    }
}
```

## vs wxo-builder-mcp-server

|          | wxo-agent-mcp               | wxo-builder-mcp-server                               |
| -------- | --------------------------- | ---------------------------------------------------- |
| Purpose  | Invoke one agent            | Full dev toolkit (tools, agents, connections, flows) |
| Agent    | Single `WO_AGENT_ID`        | Multiple agents, `WO_AGENT_IDs`                      |
| Tools    | `invoke_agent`, `get_agent` | 30+ tools (list_skills, deploy_tool, etc.)           |
| Use case | Chat with a specific agent  | Build and manage Watson Orchestrate resources        |

## Links

- **npm:** [wxo-agent-mcp](https://www.npmjs.com/package/wxo-agent-mcp)
- **MCP Registry:** [io.github.markusvankempen/wxo-agent-mcp](https://registry.modelcontextprotocol.io)
- **GitHub:** [markusvankempen/wxo-agent-mcp](https://github.com/markusvankempen/wxo-agent-mcp)

## License

Apache-2.0

