The Decision MCP Server bridges IBM ODM with modern AI assistants and orchestration platforms.
It enables you to:
- Expose decision services as tools for AI assistants
- Automate decisions dynamically in workflows
- Integrate easily with Watson Orchestrate, Claude Desktop, and Cursor AI
- Centralize and expose business logic to end users and bots
- Tool Integration: Add and invoke ODM decision services as tools
- Decision Storage: Manage resources with a local storage system
- Authentication: Zen API Key, Basic Auth, and OpenID Connect
- Multi-Platform: Works with Watson Orchestrate, Claude Desktop, and Cursor AI
Verify your Python and uv
installation:
uv python list
If you want to use a local ODM instance for development or testing, you can start it using Docker Compose:
docker-compose up
...
upload_materials | âś… ODM Ready for MCP Server
upload_materials exited with code 0
Once the containers are running, access the ODM web console at http://localhost:9060 using the default credentials:
- Username:
odmAdmin
- Password:
odmAdmin
This ODM instance will be available for the MCP Server, pre-populated with sample data for testing and development purposes.
-
Open Claude Desktop Settings:
- On macOS, click the Claude menu in the top menu bar and select Settings.
- On Windows, access Settings from the Claude application.
-
Navigate to the Developer tab and click Edit Config:
- macOS:
~/Library/Application Support/Claude/claude_desktop_config.json
- Windows:
%APPDATA%\Claude\claude_desktop_config.json
- macOS:
-
Add the following configuration:
{ "mcpServers": { "decision-mcp-server": { "command": "uvx", "args": [ "--from", "git+https://github.com/DecisionsDev/decision-mcp-server", "decision-mcp-server" ] } } }
-
Restart Claude Desktop.
Refer to the Parameters Table for a list of supported environment variables and CLI arguments.
This walkthrough demonstrates how Claude Desktop can interact with IBM ODM Developer Edition through the Decision MCP Server. The scenario showcases two decision services:
- Vacation Policy Decision Service – Computes vacation days based on company policy.
- Beauty Advice Decision Service – Provides personalized beauty recommendations.
Once Claude Desktop is configured with the MCP Server, it automatically connects to the ODM Developer Edition. The MCP Server retrieves and exposes the available decision services as Claude tools.
âś… You should see both tools listed in Claude's interface:
compute_vacation
beauty_advice
The user initiates a conversation in Claude with a natural language request:
User: "I need to compute my vacation."
Claude recognizes this intent and activates the computeVacation
tool.
Claude prompts the user for the necessary information:
Claude: "Can you provide your employee ID and hiring date?"
The user responds with:
User: "Employee ID: 12345, Hiring Date: 2018-06-01"
Claude sends the input to the ODM decision service via the MCP Server. The service processes the request and returns a result, such as:
ODM Response:
{ "timeoffDays": "33 days per year" }
Claude interprets and presents the result:
Claude: "Based on your hiring date, you are entitled to 33 time-off days."
The user can experiment with different inputs:
User: "What if I was hired on 2000-01-01?"
Claude reuses the tool, sends the new input, and returns the updated result.
The user can now try a different tool:
User: "Can I get some beauty advice?"
Claude activates the beauty_advice
tool and may ask follow-up questions (e.g., skin type, preferences) before invoking the ODM service and returning personalized recommendations.
- This scenario demonstrates how Claude can dynamically interact with multiple decision services.
- The tools are exposed automatically by the MCP Server based on the ODM configuration.
- You can extend this setup with additional decision services or integrate it into broader workflows using Watson Orchestrate.
- Watch our demo video:
The Watson Orchestrate ADK integration allows you to connect the Decision MCP Server to Watson Orchestrate for dynamic decision-making workflows.
For detailed instructions, see the Watson Orchestrate ADK Integration Guide.
Depending on your IBM ODM deployment, use the appropriate authentication method:
- Environment: Cloud Pak for Business Automation (CP4BA)
- Authentication: Zen API Key
- CLI:
--zenapikey <your-zen-api-key>
- Env:
ZENAPIKEY=<your-zen-api-key>
- Environment: IBM ODM deployed on Kubernetes (including OpenShift)
- Authentication:
- Basic Auth:
- CLI:
--username <user> --password <pass>
- Env:
ODM_USERNAME=<user> ODM_PASSWORD=<pass>
- CLI:
- OpenID Connect (using Client Credentials):
- CLI:
--client_id <CLIENT_ID> --client_secret <CLIENT_SECRET> --token_url <TOKEN_URL>
and optionally--scope <scope>
- Env:
CLIENT_ID=<client_id> CLIENT_SECRET=<client_secret> TOKEN_URL=<URL>
and optionallySCOPE=<scope>
- CLI:
- Basic Auth:
- Environment: Local Docker or Developer Edition
- Authentication: Basic Auth
- CLI:
--username <user> --password <pass>
- Env:
ODM_USERNAME=<user> ODM_PASSWORD=<pass>
CLI Argument | Environment Variable | Description | Default |
---|---|---|---|
--url |
ODM_URL |
URL of the Decision Server console (used for management and deployment operations) | http://localhost:9060/res |
--runtime-url |
ODM_RUNTIME_URL |
URL of the Decision Server runtime (used for executing decision services) | <ODM_URL>/DecisionService |
--username |
ODM_USERNAME |
Username for Basic Auth or Zen authentication | odmAdmin |
--password |
ODM_PASSWORD |
Password for Basic Auth | odmAdmin |
--zenapikey |
ZENAPIKEY |
Zen API Key for authentication with Cloud Pak for Business Automation | |
--client_id |
CLIENT_ID |
OpenID Connect client ID for authentication | |
--client_secret |
CLIENT_SECRET |
OpenID Connect client secret for authentication | |
--token_url |
TOKEN_URL |
OpenID Connect token endpoint URL for authentication | |
--scope |
SCOPE |
OpenID Connect scope used when requesting an access token using Client Credentials for authentication | openid |
--verifyssl |
VERIFY_SSL |
Whether to verify SSL certificates (True or False ) |
True |
--ssl_cert_path |
SSL_CERT_PATH |
Path to the SSL certificate file. If not provided, defaults to system certificates. | |
--log-level |
LOG_LEVEL |
Set the logging level (DEBUG , INFO , WARNING , ERROR , CRITICAL ) |
INFO |
--traces-dir |
TRACES_DIR |
Directory to store execution traces | ~/.mcp-server/traces |
--trace-enable |
TRACE_ENABLE |
Enable or disable trace storage (True or False ) |
False |
--trace-maxsize |
TRACE_MAXSIZE |
Maximum number of traces to store before removing oldest traces | 50 |
You can configure the MCP server for clients like Claude Desktop or Cursor AI using JSON configuration.
You may use both environment variables and command-line arguments. CLI arguments always take precedence.
{
"mcpServers": {
"decision-mcp-server": {
"command": "uvx",
"args": [
"--from",
"git+https://github.com/DecisionsDev/decision-mcp-server",
"decision-mcp-server",
"--url", "http://localhost:9060/res",
"--username", "odmAdmin",
"--password", "odmAdmin"
]
}
}
}
Add an env
object to your MCP server configuration. Each key-value pair sets an environment variable for the MCP server process:
{
"mcpServers": {
"decision-mcp-server": {
"command": "uvx",
"args": [
"--from",
"git+https://github.com/DecisionsDev/decision-mcp-server",
"decision-mcp-server"
],
"env": {
"ODM_URL": "http://localhost:9060/res",
"ODM_USERNAME": "odmAdmin",
"ODM_PASSWORD": "odmAdmin"
}
}
}
}
Alternatively, pass configuration options directly in the args
array.
Each argument is passed to the MCP server as if running from the command line.
{
"mcpServers": {
"decision-mcp-server": {
"command": "uvx",
"args": [
"--from",
"git+https://github.com/DecisionsDev/decision-mcp-server",
"decision-mcp-server",
"--url", "https://your-odm-url",
"--username", "your-username",
"--password", "your-password"
]
}
}
}
"args": [
"--from",
"git+https://github.com/DecisionsDev/decision-mcp-server",
"decision-mcp-server",
"--zenapikey", "YOUR_ZEN_API_KEY","--username","YOUR_ZENUSERNAME"
]
or
"env": {
"ZENAPIKEY": "YOUR_ZEN_API_KEY",
"USERNAME": "YOUR_ZEN_USERNAME"
}
Tips:
- Use CLI arguments for quick overrides or non-sensitive parameters.
- Use environment variables for secrets.
- You can mix both methods if needed. CLI arguments override environment variables.
Recommended: For local development and testing, use the Basic Auth example above. For production or Cloud Pak deployments, use the Zen API Key or OpenID Connect options as appropriate for your environment.
You can configure how your Decision Server rulesets are exposed as MCP tools by setting specific ruleset properties in IBM ODM. These properties control whether a ruleset is available as a tool and how it's presented to AI assistants.
You can add ruleset properties using any of these methods:
-
In Rule Designer:
- Open your ruleset project
- Right-click on the ruleset > Properties > Ruleset Properties
- Add the desired properties with their values
- Save and deploy your ruleset
-
In Decision Center:
- Open the ruleset > Settings > Properties
- Add the desired properties with their values
- Save and deploy your ruleset
-
In Decision Server Console:
- Log in to the Decision Server Console
- Navigate to Explorer > Rulesets
- Select your ruleset
- Click on the "Properties" tab
- Add the desired properties with their values
- Click "Save"
Property | Description | Default |
---|---|---|
agent.enabled |
Controls whether the ruleset is exposed as an MCP tool | false |
agent.name |
Customizes the name of the tool as exposed to AI assistants | Name of the decision operation. Display Name in the Decision Server console. |
agent.description |
Overrides the default description of the ruleset when exposed as a tool | Description of the decision operation |
agent.enabled=true
agent.description=This tool calculates vacation days based on employee tenure and position
Note: After updating ruleset properties, you need to redeploy the ruleset for changes to take effect.
When exposing decision services as tools for LLMs, the quality of the tool descriptions significantly impacts how effectively the LLM can utilize them. Here are best practices for optimizing your tool descriptions:
Having detailed descriptions of what a service does and the expected parameter values can guide the LLM to be more precise when triggering tools.
Allow to compute the beauty advise. This takes as parameters:
- age: should be between 0 and 110
- sex: Value should be Male or Female
- skin color: should be one of these values: Dark, Ebony, Ivory, Light, Medium or Unknown
- hair color: should be one of these values: Black, Blonde, Brown, Gray, Red, White or Unknown
For the hair color or skin color, you can suggest possible values.
This detailed description helps the LLM understand:
- The purpose of the service ("compute beauty advice")
- Valid parameter ranges and constraints
- Acceptable enumeration values
- Guidance on how to handle certain parameters
When service descriptions alone aren't sufficient to fully describe the API signature, you can augment your OpenAPI generation by adding Swagger annotations to your Java classes:
package miniloan;
import io.swagger.v3.oas.annotations.media.Schema;
/**
* This class models a borrower.
* A borrower is created with a name, a credit score, and a yearly income.
*/
@Schema(description = "This class models a borrower. A borrower is created with a name, a credit score, and a yearly income.")
public class Borrower {
@Schema(description = "The name of the borrower.")
private String name;
@Schema(description = "The credit score of the borrower.", format = "int32")
private int creditScore;
@Schema(description = "The yearly income of the borrower.", format = "int32")
private int yearlyIncome;
public Borrower() {
}
}
These annotations provide:
- Detailed descriptions for each field
- Format specifications
- Additional metadata that can be included in the generated OpenAPI specification
Note: It's not necessary to package the Swagger JAR file in the XOM (Execution Object Model) as it's already part of the IBM ODM product. You can use the annotations directly without adding additional dependencies to your project.
By combining rich service descriptions with properly annotated model classes, you can create tool definitions that LLMs can understand and use with high precision, reducing errors and improving the quality of interactions.
- For IBM ODM, see IBM Documentation.
- For Watson Orchestrate ADK, see Getting Started.
- For Claude Desktop, see Claude Documentation.
- Add sample scenario in the documentation - On going
- Put in place intensive unit-tests with Coverage
- Investigate XOM annotation
- Investigate How to inject description from Decision Center
- Store and expose Decision Trace executions as MCP resources
- Manage ODM certificate
- Declare Structured Output
- Decide naming convention prefix for Ruleset properties. (tools -> agent/decisionassistant )
- Verify OpenID Connect authentication
- Expose a tool to explain decisions
- Record demo video for Claude Desktop integration
- Add a docker-compose to inject to deploy the ruleapps.
- Support configuration via CLI and environment variables
- Verify Zen authentication support
- Support multiple Decision Server endpoints
- Test and document Claude Desktop integration
- Test Cursor AI integration
- Implement Notification Context