Skip to content

Commit 8ec90f7

Browse files
authored
fix: Smithery installs (env token) + honest HTTP docs (#43)
* fix: pass Smithery API key via env, not the ignored --token flag The published CLI reads only the TASKADE_API_KEY env var and parses no argv, so smithery.yaml passing ['--token', config.apiKey] meant every Smithery stdio install started with no token and exited with the validateAccessToken error. Switch the commandFunction to set env: { TASKADE_API_KEY: config.apiKey }. Also correct the n8n example docs: the --http/--token flags are not supported by the published CLI (stdio only); point HTTP/remote use to hosted endpoint #6. * fix(examples): n8n workflow passes token via environments, not --token Addresses Copilot review: the n8n workflow node still used the ignored --token CLI flag. Pass TASKADE_API_KEY via the node's environments field so the imported workflow actually authenticates (consistent with the stdio docs). * style(smithery): use canonical block-scalar header on commandFunction Move the |- block-scalar indicator onto the key line (commandFunction: |-) so the YAML is unambiguous for stricter parsers. Parsed value is identical.
1 parent 3ec42c5 commit 8ec90f7

3 files changed

Lines changed: 5 additions & 13 deletions

File tree

examples/README.md

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -29,15 +29,7 @@ Ask the AI agent natural language questions like:
2929
- "What tasks are overdue?"
3030
- "Create an AI agent that monitors project deadlines"
3131

32-
### Alternative: HTTP/SSE mode
33-
34-
If you prefer to run the MCP server as a standalone HTTP service:
35-
36-
```bash
37-
PORT=3001 npx @taskade/mcp-server --http --token YOUR_TASKADE_API_KEY
38-
```
39-
40-
Then configure the n8n MCP node to use **HTTP Streamable** transport with URL `http://localhost:3001/mcp`.
32+
> **Note:** The published `@taskade/mcp-server` CLI runs over **stdio** only — configure the n8n MCP Client node with the command `npx -y @taskade/mcp-server` and a `TASKADE_API_KEY` environment variable. The `--http`/`--token` flags are **not** supported by the published CLI. A standalone HTTP/SSE transport is not yet exposed; track the hosted remote endpoint at [#6](https://github.com/taskade/mcp/issues/6).
4133
4234
## More examples coming soon
4335

examples/n8n-taskade-mcp-workflow.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,8 @@
4343
"parameters": {
4444
"connectionType": "stdio",
4545
"command": "npx",
46-
"arguments": "-y @taskade/mcp-server --token YOUR_TASKADE_API_KEY"
46+
"arguments": "-y @taskade/mcp-server",
47+
"environments": "TASKADE_API_KEY=YOUR_TASKADE_API_KEY"
4748
},
4849
"id": "mcp-taskade",
4950
"name": "Taskade MCP",

smithery.yaml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,5 @@ startCommand:
1010
type: string
1111
title: "Taskade API Key"
1212
description: "Your Taskade API key. Get it from Taskade Settings > API."
13-
commandFunction:
14-
|-
15-
(config) => ({ command: 'npx', args: ['-y', '@taskade/mcp-server', '--token', config.apiKey] })
13+
commandFunction: |-
14+
(config) => ({ command: 'npx', args: ['-y', '@taskade/mcp-server'], env: { TASKADE_API_KEY: config.apiKey } })

0 commit comments

Comments
 (0)