Skip to content

Commit bb30e26

Browse files
authored
doc: [DBACLD-194156] documentation updates
2 parents 27977ee + 12fc913 commit bb30e26

File tree

1 file changed

+45
-40
lines changed

1 file changed

+45
-40
lines changed

README.md

Lines changed: 45 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
This Model Context Protocol (MCP) server empowers AI assistants by accessing decisions from IBM Decision Intelligence or IBM Automation Decision Services.
66

7-
The MCP server is available as an npm package in the free npm registry at https://www.npmjs.com/package/di-mcp-server.
7+
The MCP server for Decision Intelligence and Automation Decision Services is available as an npm package in the free npm registry at https://www.npmjs.com/package/di-mcp-server.
88

99
It supports both STDIO and streamable HTTP transports for local or remote deployments for supporting any MCP clients.
1010

@@ -43,12 +43,12 @@ npx -y di-mcp-server <CREDENTIALS> --url <RUNTIME_BASE_URL> [--transport <TRANSP
4343

4444
where
4545
- `CREDENTIALS` is one of the following options:
46-
- `--apikey <DI_API_KEY>` where `DI_API_KEY` is the API key for accessing the decision runtime of IBM Decision Intelligence.
47-
- `--username <USERNAME> --password <PASSWORD>` where `USERNAME` and `PASSWORD` are the basic authentication credentials to connect to the decision runtime of IBM Automation Decision Services.
48-
- `--username <USERNAME> --apikey <ZEN_API_KEY>` where `USERNAME` and `ZEN_API_KEY` are the Zen API key credentials to access the decision runtime of IBM Automation Decision Services (see [Authorizing HTTP requests by using the Zen API key](https://www.ibm.com/docs/en/cloud-paks/cp-biz-automation/25.0.0?topic=administering-authorizing-http-requests-by-using-zen-api-key))
49-
- `RUNTIME_BASE_URL` is the base URL of the decision runtime REST API. For IBM Decision Intelligence its pattern is: `https://<TENANT_NAME>.decision-prod-us-south.decision.saas.ibm.com/ads/runtime/api/v1` where TENANT_NAME is the name of the tenant.
46+
- `--apikey <DI_API_KEY>` where `DI_API_KEY` is the API key to access the decision runtime for Decision Intelligence.
47+
- `--username <USERNAME> --password <PASSWORD>` where `USERNAME` and `PASSWORD` are the basic authentication credentials to connect to the decision runtime for Automation Decision Services.
48+
- `--username <USERNAME> --apikey <ZEN_API_KEY>` where `USERNAME` and `ZEN_API_KEY` are the Zen API key credentials to access the decision runtime for Automation Decision Services (see [Authorizing HTTP requests by using the Zen API key](https://www.ibm.com/docs/en/cloud-paks/cp-biz-automation/25.0.0?topic=administering-authorizing-http-requests-by-using-zen-api-key))
49+
- `RUNTIME_BASE_URL` is the base URL of the decision runtime REST API. For Decision Intelligence its pattern is: `https://<TENANT_NAME>.decision-prod-us-south.decision.saas.ibm.com/ads/runtime/api/v1` where TENANT_NAME is the name of the tenant.
5050
- `TRANSPORT` (optional) is the transport protocol, either `STDIO` (default) or `HTTP`.
51-
- `RUNTIME` (optional) is the decision runtime, either `DI` (default) or `ADS` for using the decision runtime of respectively IBM Decision Intelligence or IBM Automation Decision Services.
51+
- `RUNTIME` (optional) is the decision runtime, either `DI` (default) or `ADS` for using the decision runtime for respectively Decision Intelligence or Automation Decision Services.
5252
- `DEPLOYMENT_SPACES` (optional) is a comma-separated list of deployment spaces to scan (defaults to `development`).
5353

5454
- Example:
@@ -70,15 +70,15 @@ You can integrate decision services into IBM watsonx Orchestrate by adding the M
7070

7171
[![Thumbnail](./doc/wo1-thumbnail.png)](doc/wo1.png)
7272

73-
2. Click **Import**
73+
2. Click **Import**.
7474

7575
[![Thumbnail](./doc/wo2-thumbnail.png)](doc/wo2.png)
7676

77-
3. Then click **Import from mcp server**
77+
3. Click **Import from MCP server**.
7878

7979
[![Thumbnail](./doc/wo3-thumbnail.png)](doc/wo3.png)
8080

81-
4. Click **Add MCP server**
81+
4. Click **Add MCP server**.
8282

8383
[![Thumbnail](./doc/wo4-thumbnail.png)](doc/wo4.png)
8484

@@ -92,43 +92,45 @@ You can integrate decision services into IBM watsonx Orchestrate by adding the M
9292

9393
Your agent is now empowered with decisions.
9494

95-
#### Use a connection to specify the APIKEY and URL environment variables
95+
#### Specifying the APIKEY and URL environment variables
9696

97-
1. Open the main menu, then click **Manage**, then click **Connections**, to open the Connection settings
97+
You can use the connection setting to specity the API key and URL environment variables.
98+
99+
1. Open the main menu, expand **Manage**, and then click **Connections**. The Connection settings opens.
98100

99101
[![Thumbnail](./doc/wxO-connection-01-thumbnail.png)](doc/wxO-connection-01.png)
100102

101-
2. Click **Add new connection** to launch the **Add new connection** wizard
103+
2. Click **Add new connection** to launch the **Add new connection** wizard.
102104

103105
[![Thumbnail](./doc/wxO-connection-02-thumbnail.png)](doc/wxO-connection-02.png)
104106

105-
3. Fill in the **Connection ID** and **Display name** fields, then click **Save and continue**
107+
3. Enter the **Connection ID** and **Display name** fields, and then click **Save and continue**.
106108

107109
[![Thumbnail](./doc/wxO-connection-03-thumbnail.png)](doc/wxO-connection-03.png)
108110

109111
4. In the **Configure draft connection** panel:
110-
- Select **Key Value Pair** as **Authentication Type**
111-
- Fill-in the **Key** and **Value** fields to define the `APIKEY` environment variable
112-
- Then click **Add key value pair**
112+
- Select **Key Value Pair** as **Authentication Type**.
113+
- Enter the **Key** and **Value** fields to define the `APIKEY` environment variable.
114+
- Click **Add key value pair**.
113115

114116
[![Thumbnail](./doc/wxO-connection-04-thumbnail.png)](doc/wxO-connection-04.png)
115117

116-
5. Fill-in the **Key** and **Value** fields to define the `URL` environment variable, then click **Connect**
118+
5. Enter the **Key** and **Value** fields to define the `URL` environment variable, and then click **Connect**.
117119

118120
[![Thumbnail](./doc/wxO-connection-05-thumbnail.png)](doc/wxO-connection-05.png)
119121

120-
6. When the draft connection is connected, click **Next**
122+
6. When the draft connection is connected, click **Next**.
121123

122124
[![Thumbnail](./doc/wxO-connection-06-thumbnail.png)](doc/wxO-connection-06.png)
123125

124-
7. Similarly configure the live connection, then click **Add connection**
126+
7. Similarly configure the live connection. When it is done, click **Add connection**.
125127

126128
[![Thumbnail](./doc/wxO-connection-07-thumbnail.png)](doc/wxO-connection-07.png)
127129

128130
8. In the **Add MCP Server** wizard:
129-
- Select the display name corresponding to the connection you just configured
130-
- Fill-in the `npx` command **WITHOUT** the `--apikey` and `--url` arguments
131-
- Click **Connect** then **Done**
131+
- Select the display name corresponding to the connection you just configured.
132+
- Enter the `npx` command **WITHOUT** the `--apikey` and `--url` arguments.
133+
- Click **Connect**, and then click **Done**.
132134

133135
[![Thumbnail](./doc/wxO-connection-08-thumbnail.png)](doc/wxO-connection-08.png)
134136

@@ -190,19 +192,22 @@ For more information, see https://modelcontextprotocol.io/quickstart/user.
190192

191193
### Integrating decision services into Cursor
192194

193-
1. In Cursor, click the cog wheel icon to open Cursor settings
195+
You can integrate decision services into Cursor by adding the MCP server.
196+
197+
1. In Cursor, click the cog wheel icon to open the Cursor settings.
194198

195-
2. Click **Tools & Integration** in the setting categories listed on the left-hand side
199+
2. Click **Tools & Integration** in the settings categories that are listed on the left.
196200

197201
[![Thumbnail](./doc/cursor1-thumbnail.png)](doc/cursor1.png)
198202

199-
3. Click **+ New MCP Server**, this will open Cursor's `mcp.json` configuration file
203+
3. Click **+ New MCP Server**, to open Cursor's `mcp.json` configuration file.
200204

201205
[![Thumbnail](./doc/cursor2-thumbnail.png)](doc/cursor2.png)
202206

203207
4. Add a new MCP server entry.
204-
As for Claude Desktop, you can specify the API key and base URL of the decision runtime REST API using:
205-
- Either command line arguments:
208+
209+
As for Claude Desktop, you can specify the API key and base URL of the decision runtime REST API using with one of the following methods:
210+
- Using command line arguments:
206211
```json
207212
{
208213
[..]
@@ -222,7 +227,7 @@ As for Claude Desktop, you can specify the API key and base URL of the decision
222227
[..]
223228
}
224229
```
225-
- Or environment variables:
230+
- Using environment variables:
226231
```json
227232
{
228233
[..]
@@ -240,23 +245,23 @@ As for Claude Desktop, you can specify the API key and base URL of the decision
240245
}
241246
```
242247

243-
For more information, see Cursor's documentation about [_Installing MCP servers_](https://docs.cursor.com/en/context/mcp#installing-mcp-servers).
248+
For more information, see Cursor's documentation about [_Installing MCP servers_](https://docs.cursor.com/en/context/mcp#installing-mcp-servers) in the Cursor documentation.
244249

245-
### Using Custom Tool Names
250+
### Using custom tool names
246251

247-
When integrating with MCP hosts, you may need to customize the tool names to meet specific requirements or limitations, such as:
252+
When you integrate with MCP hosts, you might need to customize the tool names to meet specific requirements or limitations, such as:
248253
- Maximum length restrictions
249254
- Forbidden characters
250255
- Naming conventions
251256

252-
#### Default Tool Naming Algorithm
257+
#### Default tool naming algorithm
253258

254-
By default, tool names are generated as follows:
259+
By default, tool names are generated in the following way:
255260
1. Combines the decision service name with the operation ID: `decisionServiceName operationID`
256261
2. Replaces spaces and forward slashes with underscores: `decisionServiceName_operationID`
257262
3. Handles name collisions by using the decision service ID: use `decisionServiceID_operationID` if `decisionServiceName_operationID` already exists
258263

259-
#### Customizing Tool Names with the decision REST API
264+
#### Customizing tool names with the decision runtime REST API
260265

261266
If the default naming strategy doesn't meet the requirements of your MCP hosts, you can specify custom tool names by setting the `mcpToolName.OPERATION_ID` decision metadata:
262267
```json
@@ -308,9 +313,9 @@ Run the following command to test the MCP server:
308313
npm test
309314
```
310315

311-
### Code Coverage
316+
### Code coverage
312317

313-
The project is configured with Jest's built-in code coverage capabilities. To generate a code coverage report:
318+
The project is configured with Jest's built-in code coverage capabilities. To generate a code coverage report, run the following command:
314319

315320
```bash
316321
npm run test:coverage
@@ -327,7 +332,7 @@ The coverage report includes:
327332
- Function coverage: percentage of functions called
328333
- Line coverage: percentage of executable lines executed
329334

330-
Coverage thresholds are set to 70% for statements, branches, functions, and lines. If coverage falls below these thresholds, the test command will fail.
335+
Coverage thresholds are set to 70% for statements, branches, functions, and lines. If the coverage falls below these thresholds, the test command fails.
331336

332337
To view the detailed HTML coverage report, open `coverage/lcov-report/index.html` in your browser after running the coverage command.
333338
### Running the MCP server in development mode with `nodemon`
@@ -349,14 +354,14 @@ APIKEY=<APIKEY> URL=<URL> npm run dev
349354

350355
| Name | Description |
351356
|-------------------|----------------------------------------------------------------------------------------------------------------------------------|
352-
| APIKEY | API key to access the decision runtime of either IBM Decision Intelligence or IBM Automation Decision Services |
357+
| APIKEY | API key to access the decision runtime for either Decision Intelligence or Automation Decision Services |
353358
| DEPLOYMENT_SPACES | Optional comma-separated list of deployment spaces to scan (default: `development`) |
354359
| DEBUG | When the value is `true`, the debug messages are written to the `stderr` of the MCP server |
355-
| PASSWORD | Password to access the decision runtime of IBM Automation Decision Services with basic authentication |
360+
| PASSWORD | Password to access the decision runtime for Automation Decision Services with basic authentication |
356361
| RUNTIME | Optional target decision runtime: `DI` (default) or `ADS` |
357362
| TRANSPORT | Optional transport protocol: `STDIO` (default) or `HTTP` |
358363
| URL | Base URL of the decision runtime |
359-
| USERNAME | Username to access the decision runtime of IBM Automation Decision Services either with basic authentication or Zen API key</br> |
364+
| USERNAME | Username to access the decision runtime for Automation Decision Services either with basic authentication or Zen API key</br> |
360365

361366
## License
362367
[Apache 2.0](LICENSE)

0 commit comments

Comments
 (0)