Commit 8ec90f7
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
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
29 | 29 | | |
30 | 30 | | |
31 | 31 | | |
32 | | - | |
33 | | - | |
34 | | - | |
35 | | - | |
36 | | - | |
37 | | - | |
38 | | - | |
39 | | - | |
40 | | - | |
| 32 | + | |
41 | 33 | | |
42 | 34 | | |
43 | 35 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
43 | 43 | | |
44 | 44 | | |
45 | 45 | | |
46 | | - | |
| 46 | + | |
| 47 | + | |
47 | 48 | | |
48 | 49 | | |
49 | 50 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
13 | | - | |
14 | | - | |
15 | | - | |
| 13 | + | |
| 14 | + | |
0 commit comments