You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+62-1Lines changed: 62 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -14,6 +14,64 @@ The MCP server for [Shortcut](https://shortcut.com).
14
14
15
15
## Usage
16
16
17
+
The only required input is your Shortcut API token. You can find it in your [Shortcut account settings](https://app.shortcut.com/settings/account/api-tokens).
18
+
19
+
Once you have a valid token, you can pass it to the MCP server as an environement variable or a CLI argument.
20
+
21
+
Examples:
22
+
23
+
```json
24
+
"shortcut": {
25
+
"command": "npx",
26
+
"args": [
27
+
"-y",
28
+
"@shortcut/mcp@latest"
29
+
],
30
+
"env": {
31
+
"SHORTCUT_API_TOKEN": "<YOUR_SHORTCUT_API_TOKEN>"
32
+
}
33
+
}
34
+
```
35
+
36
+
```json
37
+
"shortcut": {
38
+
"command": "npx",
39
+
"args": [
40
+
"-y",
41
+
"@shortcut/mcp@latest",
42
+
"SHORTCUT_API_TOKEN=<YOUR_SHORTCUT_API_TOKEN>"
43
+
]
44
+
}
45
+
```
46
+
47
+
Due to an issue in `gemini-cli` that redacts environment variables that contain the word "token", you can also use the alternative name `SHORTCUT_API_TKN` instead of `SHORTCUT_API_TOKEN`. This works for both the environment variable and the CLI argument:
48
+
49
+
```json
50
+
"shortcut": {
51
+
"command": "npx",
52
+
"args": [
53
+
"-y",
54
+
"@shortcut/mcp@latest"
55
+
],
56
+
"env": {
57
+
"SHORTCUT_API_TKN": "<YOUR_SHORTCUT_API_TOKEN>"
58
+
}
59
+
}
60
+
```
61
+
62
+
```json
63
+
"shortcut": {
64
+
"command": "npx",
65
+
"args": [
66
+
"-y",
67
+
"@shortcut/mcp@latest",
68
+
"SHORTCUT_API_TKN=<YOUR_SHORTCUT_API_TOKEN>"
69
+
]
70
+
}
71
+
```
72
+
73
+
For more information on how to setup the MCP for your tool of choice, see below.
74
+
17
75
### Windsurf
18
76
19
77
See the [official Windsurf docs](https://docs.windsurf.com/windsurf/cascade/mcp) for more information.
@@ -71,7 +129,6 @@ See the [official Claude Code docs](https://docs.anthropic.com/en/docs/claude-co
71
129
Add the MCP server from the command line:
72
130
73
131
```shell
74
-
# Grab your Shortcut token here: https://app.shortcut.com/settings/account/api-tokens
@@ -319,6 +376,10 @@ You can also check the list of [common issues](#common-issues) below to see if t
319
376
320
377
### Common Issues and Solutions
321
378
379
+
#### MCP fails on startup in Gemini CLI
380
+
381
+
If you are using the Gemini CLI and the MCP fails with the following error: `✕ Error during discovery for MCP server 'shortcut': MCP error -32000: Connection closed`, it might be due to an issue in Gemini where it redacts environment variables that contain the word `token`. You can either pass the Shortcut token as a CLI argument, or use the alternative name `SHORTCUT_API_TKN` instead of `SHORTCUT_API_TOKEN`. See the [Usage section](#usage) for more information.
382
+
322
383
#### NPX command not working when using MISE for version management
323
384
324
385
If you are using MISE for managing Node and NPM versions, you may encounter a "Client closed" error when trying to run the MCP server. Installing this extension into your IDE might help: https://github.com/hverlin/mise-vscode/.
0 commit comments