@utaba/ucm-mcp-server 1.0.0 → 1.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +13 -5
- package/dist/index.js +1 -1
- package/dist/server/McpConfig.js +0 -3
- package/dist/tools/core/GetArtifactTool.js +0 -1
- package/package.json +1 -1
- package/package.json.backup +1 -1
package/README.md
CHANGED
|
@@ -15,17 +15,20 @@ npm install -g @utaba/ucm-mcp-server
|
|
|
15
15
|
## Quick Start
|
|
16
16
|
|
|
17
17
|
```bash
|
|
18
|
-
# Start the MCP server
|
|
19
|
-
ucm-mcp-server --
|
|
18
|
+
# Start the MCP server (uses default URL https://ucm.utaba.ai)
|
|
19
|
+
ucm-mcp-server --auth-token YOUR_AUTH_TOKEN
|
|
20
|
+
|
|
21
|
+
# Or specify a custom UCM URL
|
|
22
|
+
ucm-mcp-server --ucm-url https://custom.ucm.url --auth-token YOUR_AUTH_TOKEN
|
|
20
23
|
```
|
|
21
24
|
|
|
22
25
|
Get your auth token from https://ucm.utaba.ai
|
|
23
26
|
|
|
24
27
|
## Configuration
|
|
25
28
|
|
|
26
|
-
The UCM MCP server
|
|
29
|
+
The UCM MCP server accepts the following parameters:
|
|
27
30
|
|
|
28
|
-
- `--ucm-url <url
|
|
31
|
+
- `--ucm-url <url>`: UCM API base URL (default: https://ucm.utaba.ai)
|
|
29
32
|
- `--auth-token <token>` (required): Authentication token in format `{authorid}:{apikey}`
|
|
30
33
|
|
|
31
34
|
## Available MCP Tools
|
|
@@ -60,7 +63,6 @@ Add to your Claude Desktop configuration:
|
|
|
60
63
|
"command": "npx",
|
|
61
64
|
"args": [
|
|
62
65
|
"ucm-mcp-server",
|
|
63
|
-
"--ucm-url", "https://ucm.utaba.ai",
|
|
64
66
|
"--auth-token", "YOUR_AUTH_TOKEN"
|
|
65
67
|
]
|
|
66
68
|
}
|
|
@@ -68,6 +70,12 @@ Add to your Claude Desktop configuration:
|
|
|
68
70
|
}
|
|
69
71
|
```
|
|
70
72
|
|
|
73
|
+
## Usage with Claude Code
|
|
74
|
+
|
|
75
|
+
```bash
|
|
76
|
+
claude mcp add -s user ucm-mcp-server npx ucm-mcp-server --auth-token your-api-key-here
|
|
77
|
+
```
|
|
78
|
+
Note: The above adds it to your user scope and will be available in all of your projects. You can remove `-s user` for project scope.
|
|
71
79
|
## Documentation
|
|
72
80
|
|
|
73
81
|
For detailed documentation, visit:
|
package/dist/index.js
CHANGED
|
@@ -13,7 +13,7 @@ async function main() {
|
|
|
13
13
|
.name('ucm-mcp-server')
|
|
14
14
|
.description('Universal Context Manager - Read the mcp_ucm_quickstart first to avoid mistakes')
|
|
15
15
|
.version('1.0.0')
|
|
16
|
-
.
|
|
16
|
+
.option('-u, --ucm-url <url>', 'UCM API base URL (defaults to https://ucm.utaba.ai)')
|
|
17
17
|
.option('-p, --port <port>', 'Server port', '3001')
|
|
18
18
|
.option('--log-level <level>', 'Log level', 'ERROR')
|
|
19
19
|
.option('--auth-token <token>', 'Authentication token for UCM API format is {auhtorid}:{apikey}. Get one from https://ucm.utaba.ai')
|
package/dist/server/McpConfig.js
CHANGED
|
@@ -50,9 +50,6 @@ export class McpConfig {
|
|
|
50
50
|
return authors;
|
|
51
51
|
}
|
|
52
52
|
validateConfig() {
|
|
53
|
-
if (!this.config.ucmApiUrl) {
|
|
54
|
-
throw new Error('UCM API URL is required');
|
|
55
|
-
}
|
|
56
53
|
if (!this.config.ucmApiUrl.startsWith('http')) {
|
|
57
54
|
throw new Error('UCM API URL must be a valid HTTP/HTTPS URL');
|
|
58
55
|
}
|
|
@@ -69,7 +69,6 @@ export class GetArtifactTool extends BaseToolController {
|
|
|
69
69
|
response.metadata = {
|
|
70
70
|
id: artifact.id,
|
|
71
71
|
version: artifact.metadata?.version || pathComponents.version || 'latest',
|
|
72
|
-
name: artifact.metadata?.name,
|
|
73
72
|
description: artifact.metadata?.description,
|
|
74
73
|
author: author,
|
|
75
74
|
repository: pathComponents.repository,
|
package/package.json
CHANGED