youtrack-http-api-mcp 0.2.0 → 0.2.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 +45 -6
- package/package.json +1 -1
- package/server.mjs +6 -1
package/README.md
CHANGED
|
@@ -12,15 +12,27 @@ Works with any YouTrack instance that exposes the standard [YouTrack REST API](h
|
|
|
12
12
|
|
|
13
13
|
## Install
|
|
14
14
|
|
|
15
|
-
From source (
|
|
15
|
+
### From source (Git repo)
|
|
16
16
|
|
|
17
17
|
```bash
|
|
18
|
-
git clone https://
|
|
18
|
+
git clone https://github.com/rkorablin/youtrack-http-api-mcp.git
|
|
19
19
|
cd youtrack-http-api-mcp
|
|
20
20
|
npm install
|
|
21
21
|
```
|
|
22
22
|
|
|
23
|
-
|
|
23
|
+
### From npm
|
|
24
|
+
|
|
25
|
+
As a local dependency:
|
|
26
|
+
|
|
27
|
+
```bash
|
|
28
|
+
npm install youtrack-http-api-mcp
|
|
29
|
+
```
|
|
30
|
+
|
|
31
|
+
Or globally (for `npx` / CLI usage):
|
|
32
|
+
|
|
33
|
+
```bash
|
|
34
|
+
npm install -g youtrack-http-api-mcp
|
|
35
|
+
```
|
|
24
36
|
|
|
25
37
|
## Configuration
|
|
26
38
|
|
|
@@ -45,10 +57,12 @@ node server.mjs
|
|
|
45
57
|
|
|
46
58
|
### Cursor / MCP host
|
|
47
59
|
|
|
48
|
-
Add to your MCP config (e.g. `.cursor/mcp.json` under `mcpServers`)
|
|
60
|
+
Add to your MCP config (e.g. `.cursor/mcp.json` under `mcpServers`).
|
|
61
|
+
|
|
62
|
+
#### Option 1: Local clone
|
|
49
63
|
|
|
50
64
|
```json
|
|
51
|
-
"youtrack
|
|
65
|
+
"youtrack": {
|
|
52
66
|
"command": "node",
|
|
53
67
|
"args": ["/absolute/path/to/youtrack-http-api-mcp/server.mjs"],
|
|
54
68
|
"env": {
|
|
@@ -58,7 +72,32 @@ Add to your MCP config (e.g. `.cursor/mcp.json` under `mcpServers`):
|
|
|
58
72
|
}
|
|
59
73
|
```
|
|
60
74
|
|
|
61
|
-
|
|
75
|
+
#### Option 2: npm / npx
|
|
76
|
+
|
|
77
|
+
If installed globally:
|
|
78
|
+
|
|
79
|
+
```json
|
|
80
|
+
"youtrack": {
|
|
81
|
+
"command": "youtrack-http-api-mcp",
|
|
82
|
+
"env": {
|
|
83
|
+
"YOUTRACK_URL": "https://youtrack.example.com",
|
|
84
|
+
"YOUTRACK_TOKEN": "YOUR_TOKEN"
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
```
|
|
88
|
+
|
|
89
|
+
Or via `npx`:
|
|
90
|
+
|
|
91
|
+
```json
|
|
92
|
+
"youtrack": {
|
|
93
|
+
"command": "npx",
|
|
94
|
+
"args": ["-y", "youtrack-http-api-mcp"],
|
|
95
|
+
"env": {
|
|
96
|
+
"YOUTRACK_URL": "https://youtrack.example.com",
|
|
97
|
+
"YOUTRACK_TOKEN": "YOUR_TOKEN"
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
```
|
|
62
101
|
|
|
63
102
|
## Current tools (MVP)
|
|
64
103
|
|
package/package.json
CHANGED
package/server.mjs
CHANGED
|
@@ -39,7 +39,12 @@ async function ytCommand(command, opts = {}) {
|
|
|
39
39
|
}
|
|
40
40
|
|
|
41
41
|
function jsonContent(value) {
|
|
42
|
-
return [
|
|
42
|
+
return [
|
|
43
|
+
{
|
|
44
|
+
type: 'text',
|
|
45
|
+
text: typeof value === 'string' ? value : JSON.stringify(value, null, 2)
|
|
46
|
+
}
|
|
47
|
+
];
|
|
43
48
|
}
|
|
44
49
|
|
|
45
50
|
const server = new Server(
|