diff --git a/examples/README.md b/examples/README.md index 463e078..80eb058 100644 --- a/examples/README.md +++ b/examples/README.md @@ -29,15 +29,7 @@ Ask the AI agent natural language questions like: - "What tasks are overdue?" - "Create an AI agent that monitors project deadlines" -### Alternative: HTTP/SSE mode - -If you prefer to run the MCP server as a standalone HTTP service: - -```bash -PORT=3001 npx @taskade/mcp-server --http --token YOUR_TASKADE_API_KEY -``` - -Then configure the n8n MCP node to use **HTTP Streamable** transport with URL `http://localhost:3001/mcp`. +> **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). ## More examples coming soon diff --git a/examples/n8n-taskade-mcp-workflow.json b/examples/n8n-taskade-mcp-workflow.json index 24293d3..9c1e221 100644 --- a/examples/n8n-taskade-mcp-workflow.json +++ b/examples/n8n-taskade-mcp-workflow.json @@ -43,7 +43,8 @@ "parameters": { "connectionType": "stdio", "command": "npx", - "arguments": "-y @taskade/mcp-server --token YOUR_TASKADE_API_KEY" + "arguments": "-y @taskade/mcp-server", + "environments": "TASKADE_API_KEY=YOUR_TASKADE_API_KEY" }, "id": "mcp-taskade", "name": "Taskade MCP", diff --git a/smithery.yaml b/smithery.yaml index e3eca7d..0a7e512 100644 --- a/smithery.yaml +++ b/smithery.yaml @@ -10,6 +10,5 @@ startCommand: type: string title: "Taskade API Key" description: "Your Taskade API key. Get it from Taskade Settings > API." - commandFunction: - |- - (config) => ({ command: 'npx', args: ['-y', '@taskade/mcp-server', '--token', config.apiKey] }) + commandFunction: |- + (config) => ({ command: 'npx', args: ['-y', '@taskade/mcp-server'], env: { TASKADE_API_KEY: config.apiKey } })