@utaba/ucm-mcp-server 1.0.0 → 1.0.2
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 +8 -23
- 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
|
@@ -2,30 +2,10 @@
|
|
|
2
2
|
|
|
3
3
|
Universal Context Manager (UCM) Model Context Protocol (MCP) server for AI-native package management.
|
|
4
4
|
|
|
5
|
-
## Installation
|
|
6
|
-
|
|
7
|
-
```bash
|
|
8
|
-
# Global installation (recommended)
|
|
9
|
-
npm install -g ucm-mcp-server
|
|
10
|
-
|
|
11
|
-
# Or using the scoped package
|
|
12
|
-
npm install -g @utaba/ucm-mcp-server
|
|
13
|
-
```
|
|
14
|
-
|
|
15
|
-
## Quick Start
|
|
16
|
-
|
|
17
|
-
```bash
|
|
18
|
-
# Start the MCP server
|
|
19
|
-
ucm-mcp-server --ucm-url https://ucm.utaba.ai --auth-token YOUR_AUTH_TOKEN
|
|
20
|
-
```
|
|
21
|
-
|
|
22
5
|
Get your auth token from https://ucm.utaba.ai
|
|
23
6
|
|
|
24
7
|
## Configuration
|
|
25
8
|
|
|
26
|
-
The UCM MCP server requires the following parameters:
|
|
27
|
-
|
|
28
|
-
- `--ucm-url <url>` (required): UCM API base URL
|
|
29
9
|
- `--auth-token <token>` (required): Authentication token in format `{authorid}:{apikey}`
|
|
30
10
|
|
|
31
11
|
## Available MCP Tools
|
|
@@ -34,7 +14,7 @@ The server provides 11 MCP tools following the `mcp_ucm_` naming convention:
|
|
|
34
14
|
|
|
35
15
|
### System Tools
|
|
36
16
|
- `mcp_ucm_health_check` - Check MCP server and UCM API connectivity
|
|
37
|
-
- `mcp_ucm_quickstart` - Get the UCM quickstart guide
|
|
17
|
+
- `mcp_ucm_quickstart` - Get the UCM quickstart guide (Tell your AI to load this first)
|
|
38
18
|
|
|
39
19
|
### Discovery Tools
|
|
40
20
|
- `mcp_ucm_get_author_index` - Generate dynamic markdown index for an author
|
|
@@ -60,7 +40,6 @@ Add to your Claude Desktop configuration:
|
|
|
60
40
|
"command": "npx",
|
|
61
41
|
"args": [
|
|
62
42
|
"ucm-mcp-server",
|
|
63
|
-
"--ucm-url", "https://ucm.utaba.ai",
|
|
64
43
|
"--auth-token", "YOUR_AUTH_TOKEN"
|
|
65
44
|
]
|
|
66
45
|
}
|
|
@@ -68,6 +47,12 @@ Add to your Claude Desktop configuration:
|
|
|
68
47
|
}
|
|
69
48
|
```
|
|
70
49
|
|
|
50
|
+
## Usage with Claude Code
|
|
51
|
+
|
|
52
|
+
```bash
|
|
53
|
+
claude mcp add -s user ucm-mcp-server npx ucm-mcp-server --auth-token your-authtoken-here
|
|
54
|
+
```
|
|
55
|
+
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
56
|
## Documentation
|
|
72
57
|
|
|
73
58
|
For detailed documentation, visit:
|
|
@@ -76,4 +61,4 @@ For detailed documentation, visit:
|
|
|
76
61
|
|
|
77
62
|
## License
|
|
78
63
|
|
|
79
|
-
|
|
64
|
+
BSD-3-Clause - See LICENSE file for details
|
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