From 10438a54ef42d89ffc622eea3f67f9f6cb144666 Mon Sep 17 00:00:00 2001 From: Faisal Reza Date: Mon, 28 Sep 2026 11:41:03 +0100 Subject: [PATCH 01/12] fix(stackone-agents): update stale StackOne docs links and MCP guidance StackOne restructured its docs, which broke the MCP guide links (e.g. /mcp/framework-guides/claude-code returned 404). - Point MCP-from-code at api.stackone.com/mcp (API key + x-account-id) and the /embed/call-actions/mcp framework guides - Document the OAuth endpoint (mcp.stackone.com/mcp) for AI apps and update the Claude Code example to the current OAuth flow - Resolve per-framework/app/A2A guides from overview pages and llms.txt instead of hardcoded lists, so new or removed guides need no skill edit - Fix the Python SDK framework list (add LangGraph, drop Google ADK) and add Python conversion methods - Bump skill metadata version to 2.1 Co-Authored-By: Claude Opus 5.5 --- .../skills/stackone-agents/SKILL.md | 33 +++++++------- .../references/integration-guide.md | 45 ++++++++++++------- 2 files changed, 47 insertions(+), 31 deletions(-) diff --git a/plugins/integrations/stackone-agents/skills/stackone-agents/SKILL.md b/plugins/integrations/stackone-agents/skills/stackone-agents/SKILL.md index 77539e0..34ac0d5 100644 --- a/plugins/integrations/stackone-agents/skills/stackone-agents/SKILL.md +++ b/plugins/integrations/stackone-agents/skills/stackone-agents/SKILL.md @@ -5,7 +5,7 @@ license: MIT compatibility: Requires network access to fetch live documentation. TypeScript SDK requires Node.js and zod>=3.25. Python SDK requires Python 3.9+. metadata: author: stackone - version: "2.0" + version: "2.1" --- # StackOne Agents — AI Integration @@ -15,7 +15,7 @@ metadata: SDK APIs change frequently. Before writing code: 1. For TypeScript: fetch `https://raw.githubusercontent.com/stackoneHQ/stackone-ai-node/refs/heads/main/README.md` 2. For Python: fetch `https://raw.githubusercontent.com/stackoneHQ/stackone-ai-python/refs/heads/main/README.md` -3. For MCP setup: fetch `https://docs.stackone.com/mcp/quickstart` +3. For MCP setup: fetch `https://docs.stackone.com/embed/call-actions/mcp` These sources contain the latest code examples and API surface. Do not rely solely on this skill for code snippets. @@ -26,8 +26,8 @@ These sources contain the latest code examples and API surface. Do not rely sole | Method | Best for | Language | |--------|----------|----------| | **TypeScript SDK** (`@stackone/ai`) | Custom agents with OpenAI, Vercel AI, Claude, Claude Agent SDK | TypeScript/JavaScript | -| **Python SDK** (`stackone-ai`) | Custom agents with LangChain, CrewAI, PydanticAI, Google ADK | Python | -| **MCP Server** | Claude Code, Claude Desktop, ChatGPT, Cursor, Windsurf — no code needed | Any (config only) | +| **Python SDK** (`stackone-ai`) | Custom agents with OpenAI, LangChain, LangGraph, CrewAI, PydanticAI | Python | +| **MCP Server** | Agents in any framework with an MCP client (Anthropic SDK, OpenAI Agents SDK, Google ADK, Azure AI Foundry, etc.) | Any | | **A2A Protocol** | Agent-to-agent communication | Any | Consult `references/integration-guide.md` for a detailed decision tree. @@ -84,22 +84,25 @@ pip install stackone-ai Fetch the Python README for usage examples and framework integrations: `https://raw.githubusercontent.com/stackoneHQ/stackone-ai-python/refs/heads/main/README.md` -The Python SDK supports: OpenAI, LangChain, CrewAI, PydanticAI, Google ADK. +The Python SDK supports: OpenAI, LangChain, LangGraph, CrewAI, PydanticAI. -### Step 2c: MCP Server path (no code required) +### Step 2c: MCP from your agent code -StackOne's MCP server is at `https://api.stackone.com/mcp`. +Use this path for frameworks the SDKs don't cover (e.g. Google ADK, OpenAI Agents SDK, Azure AI Foundry) or when you prefer a standard MCP client. -For client-specific setup instructions, fetch the relevant guide: -- Claude Code: `https://docs.stackone.com/mcp/framework-guides/claude-code` -- Claude Desktop: `https://docs.stackone.com/mcp/app-guides/claude-desktop` -- Other clients: fetch `https://docs.stackone.com/llms.txt` and search for the client name +StackOne's MCP server for agent code is at `https://api.stackone.com/mcp`. Every request needs: +- `Authorization: Basic ` (append a colon to the API key, then base64 encode) +- `x-account-id: ` (switch this per customer for multi-tenant agents; see Step 3) -**Testing the MCP connection**: +Fetch the overview first: `https://docs.stackone.com/embed/call-actions/mcp.md`. It links to a setup guide for each supported agent framework (Anthropic SDK, OpenAI Agents SDK, LangChain, Google ADK, etc.). Follow the link that matches the user's framework, appending `.md` to get the page as markdown. If the framework isn't listed there, search `https://docs.stackone.com/llms.txt` for it. + +**Testing the MCP connection**: see `https://docs.stackone.com/embed/call-actions/mcp/troubleshooting` for using MCP Inspector with the auth headers: ```bash npx @modelcontextprotocol/inspector https://api.stackone.com/mcp ``` +**Using StackOne in an AI app instead of building an agent?** Claude Code, Claude Desktop, ChatGPT, Cursor and other AI apps connect to `https://mcp.stackone.com/mcp` with OAuth, with no API key or account ID needed. See `https://docs.stackone.com/connect/ai-platforms/overview` (and Example 2 below). + ### Step 3: Handle multi-tenant access For applications serving multiple customers, each with their own connected accounts: @@ -136,9 +139,9 @@ Result: Working agent that can query BambooHR employees through StackOne. User says: "How do I use StackOne MCP in Claude Code?" Actions: -1. Fetch `https://docs.stackone.com/mcp/framework-guides/claude-code` for the setup guide -2. Walk through adding the MCP server config with their API key and account ID -3. Test with `npx @modelcontextprotocol/inspector` first +1. Fetch `https://docs.stackone.com/connect/ai-platforms/claude-code` for the setup guide +2. Run `claude mcp add --transport http --scope user stackone https://mcp.stackone.com/mcp` +3. In Claude Code, run `/mcp`, select **stackone**, then **Authenticate** to complete the OAuth consent flow Result: Claude Code can call StackOne tools directly. diff --git a/plugins/integrations/stackone-agents/skills/stackone-agents/references/integration-guide.md b/plugins/integrations/stackone-agents/skills/stackone-agents/references/integration-guide.md index 445c58e..14eebb7 100644 --- a/plugins/integrations/stackone-agents/skills/stackone-agents/references/integration-guide.md +++ b/plugins/integrations/stackone-agents/skills/stackone-agents/references/integration-guide.md @@ -13,23 +13,21 @@ Are you writing code for a custom agent? │ │ ├── Anthropic Claude → tools.toAnthropic() │ │ ├── Vercel AI SDK → await tools.toAISDK() │ │ └── Claude Agent SDK → await tools.toClaudeAgentSdk() -│ └── Python → Use stackone-ai (Python SDK) -│ ├── OpenAI → OpenAI integration -│ ├── LangChain → LangChain integration -│ ├── CrewAI → CrewAI integration -│ ├── PydanticAI → PydanticAI integration -│ └── Google ADK → Google ADK integration -├── NO → Are you configuring an existing AI tool? -│ ├── YES → Use MCP Server (https://api.stackone.com/mcp) -│ │ ├── Claude Code → docs.stackone.com/mcp/framework-guides/claude-code -│ │ ├── Claude Desktop → docs.stackone.com/mcp/app-guides/claude-desktop -│ │ ├── ChatGPT → docs.stackone.com/mcp/app-guides/chatgpt -│ │ ├── Cursor → docs.stackone.com/mcp/framework-guides/cursor -│ │ ├── Windsurf → docs.stackone.com/mcp/framework-guides/windsurf -│ │ └── Others → check docs.stackone.com/llms.txt for guides +│ ├── Python → Use stackone-ai (Python SDK) +│ │ ├── OpenAI → tools.to_openai() +│ │ ├── LangChain → tools.to_langchain() +│ │ ├── LangGraph → tools.to_langchain() + ToolNode +│ │ ├── CrewAI → tools.to_langchain() +│ │ └── PydanticAI → tools.to_pydantic_ai() +│ └── Other framework, or prefer a standard MCP client → Use MCP Server +│ (https://api.stackone.com/mcp, API key + x-account-id) +│ └── Fetch docs.stackone.com/embed/call-actions/mcp.md and follow the framework guide link +├── NO → Are you using StackOne from an existing AI app (Claude Code, Cursor, ChatGPT, ...)? +│ ├── YES → Connect via OAuth (https://mcp.stackone.com/mcp) +│ │ └── Fetch docs.stackone.com/connect/ai-platforms/overview.md and follow the app guide link │ └── NO → Agent-to-agent communication? │ └── YES → Use A2A Protocol -│ └── Fetch docs.stackone.com/llms.txt for A2A pages +│ └── Fetch docs.stackone.com/embed/call-actions/agent2agent.md and follow the framework/platform guide link ``` ## Framework Conversion Methods (TypeScript SDK) @@ -42,9 +40,24 @@ Are you writing code for a custom agent? | Vercel AI SDK | `await tools.toAISDK()` | Yes | | Claude Agent SDK | `await tools.toClaudeAgentSdk()` | Yes | +## Framework Conversion Methods (Python SDK) + +| Framework | Method | +|-----------|--------| +| OpenAI | `tools.to_openai()` | +| LangChain | `tools.to_langchain()` | +| LangGraph | `tools.to_langchain()` (wrap in a `ToolNode`) | +| CrewAI | `tools.to_langchain()` (CrewAI accepts LangChain tools) | +| PydanticAI | `tools.to_pydantic_ai()` | + ## Key Documentation URLs +Each overview page below links to its individual guides, so fetch the overview and follow the relevant link rather than guessing guide URLs. Append `.md` to any docs.stackone.com page to get markdown. If a page can't be found, search `https://docs.stackone.com/llms.txt`, which indexes every page. + - TypeScript SDK README: `https://raw.githubusercontent.com/stackoneHQ/stackone-ai-node/refs/heads/main/README.md` - Python SDK README: `https://raw.githubusercontent.com/stackoneHQ/stackone-ai-python/refs/heads/main/README.md` -- MCP Quickstart: `https://docs.stackone.com/mcp/quickstart` +- MCP overview: `https://docs.stackone.com/embed/call-actions/mcp` +- MCP troubleshooting: `https://docs.stackone.com/embed/call-actions/mcp/troubleshooting` +- AI platforms (MCP clients): `https://docs.stackone.com/connect/ai-platforms/overview` +- A2A overview: `https://docs.stackone.com/embed/call-actions/agent2agent` - All docs: `https://docs.stackone.com/llms.txt` From 27fdcd2aa04dcabe718178276b6042fd147ac90d Mon Sep 17 00:00:00 2001 From: Faisal Reza Date: Mon, 28 Sep 2026 11:44:20 +0100 Subject: [PATCH 02/12] fix(stackone-agents): restore AI apps row in integration method table Split the MCP Server row into agent code (API key) and AI apps (OAuth) so requests like "set up StackOne in Claude Code" are routed correctly from Step 1. Co-Authored-By: Claude Opus 5.5 --- .../stackone-agents/skills/stackone-agents/SKILL.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/plugins/integrations/stackone-agents/skills/stackone-agents/SKILL.md b/plugins/integrations/stackone-agents/skills/stackone-agents/SKILL.md index 34ac0d5..3676354 100644 --- a/plugins/integrations/stackone-agents/skills/stackone-agents/SKILL.md +++ b/plugins/integrations/stackone-agents/skills/stackone-agents/SKILL.md @@ -27,7 +27,8 @@ These sources contain the latest code examples and API surface. Do not rely sole |--------|----------|----------| | **TypeScript SDK** (`@stackone/ai`) | Custom agents with OpenAI, Vercel AI, Claude, Claude Agent SDK | TypeScript/JavaScript | | **Python SDK** (`stackone-ai`) | Custom agents with OpenAI, LangChain, LangGraph, CrewAI, PydanticAI | Python | -| **MCP Server** | Agents in any framework with an MCP client (Anthropic SDK, OpenAI Agents SDK, Google ADK, Azure AI Foundry, etc.) | Any | +| **MCP Server (agent code)** | Agents in any framework with an MCP client (Anthropic SDK, OpenAI Agents SDK, Google ADK, Azure AI Foundry, etc.) | Any | +| **MCP Server (AI apps)** | Using StackOne from Claude Code, Claude Desktop, ChatGPT, Cursor and other AI apps via OAuth, no code needed | Any (config only) | | **A2A Protocol** | Agent-to-agent communication | Any | Consult `references/integration-guide.md` for a detailed decision tree. From 0a181a6d1f44652da5d0a56a2125ac73b748a43f Mon Sep 17 00:00:00 2001 From: Faisal Reza Date: Mon, 28 Sep 2026 11:49:15 +0100 Subject: [PATCH 03/12] fix(stackone-agents): add Step 2d for MCP in AI apps Give the AI apps (OAuth) path its own step to match the Step 1 table, resolving app guides from the AI platforms overview page. Co-Authored-By: Claude Opus 5.5 --- .../stackone-agents/skills/stackone-agents/SKILL.md | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/plugins/integrations/stackone-agents/skills/stackone-agents/SKILL.md b/plugins/integrations/stackone-agents/skills/stackone-agents/SKILL.md index 3676354..3093b9b 100644 --- a/plugins/integrations/stackone-agents/skills/stackone-agents/SKILL.md +++ b/plugins/integrations/stackone-agents/skills/stackone-agents/SKILL.md @@ -102,7 +102,15 @@ Fetch the overview first: `https://docs.stackone.com/embed/call-actions/mcp.md`. npx @modelcontextprotocol/inspector https://api.stackone.com/mcp ``` -**Using StackOne in an AI app instead of building an agent?** Claude Code, Claude Desktop, ChatGPT, Cursor and other AI apps connect to `https://mcp.stackone.com/mcp` with OAuth, with no API key or account ID needed. See `https://docs.stackone.com/connect/ai-platforms/overview` (and Example 2 below). +### Step 2d: MCP Server path (no code required) + +For using StackOne from Claude Code, Claude Desktop, ChatGPT, Cursor and other AI apps. + +AI apps connect to `https://mcp.stackone.com/mcp` with OAuth. The user signs in, then picks the project, linked accounts and actions on the consent screen, so no API key or account ID is needed. + +Fetch `https://docs.stackone.com/connect/ai-platforms/overview.md`. It links to a setup guide for each supported app. Follow the link for the user's app, appending `.md` to get the page as markdown. If the app isn't listed there, search `https://docs.stackone.com/llms.txt` for it. + +See Example 2 for Claude Code. ### Step 3: Handle multi-tenant access From a685fb6257d1ac16bd8ec210151551aaeac72736 Mon Sep 17 00:00:00 2001 From: Faisal Reza Date: Mon, 28 Sep 2026 11:51:06 +0100 Subject: [PATCH 04/12] fix(stackone-agents): add general 404 fallback for docs URLs If any docs.stackone.com URL 404s, look the page up by topic in llms.txt; if an SDK README 404s, find it via the GitHub repo. Co-Authored-By: Claude Opus 5.5 --- .../stackone-agents/skills/stackone-agents/SKILL.md | 4 ++++ .../skills/stackone-agents/references/integration-guide.md | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/plugins/integrations/stackone-agents/skills/stackone-agents/SKILL.md b/plugins/integrations/stackone-agents/skills/stackone-agents/SKILL.md index 3093b9b..e06ff47 100644 --- a/plugins/integrations/stackone-agents/skills/stackone-agents/SKILL.md +++ b/plugins/integrations/stackone-agents/skills/stackone-agents/SKILL.md @@ -19,6 +19,10 @@ SDK APIs change frequently. Before writing code: These sources contain the latest code examples and API surface. Do not rely solely on this skill for code snippets. +**If any URL in this skill returns 404** (StackOne reorganizes its docs from time to time): +- For a `docs.stackone.com` page, fetch `https://docs.stackone.com/llms.txt`, which indexes every docs page by title and description. Search it for the page's topic (e.g. "MCP", "AI Platforms", "Agent2Agent", "Claude Code") and use the URL listed there. +- For an SDK README, open the repository instead (`https://github.com/stackoneHQ/stackone-ai-node` or `https://github.com/stackoneHQ/stackone-ai-python`) and find the current README. + ## Instructions ### Step 1: Choose an integration method diff --git a/plugins/integrations/stackone-agents/skills/stackone-agents/references/integration-guide.md b/plugins/integrations/stackone-agents/skills/stackone-agents/references/integration-guide.md index 14eebb7..f3f5ed4 100644 --- a/plugins/integrations/stackone-agents/skills/stackone-agents/references/integration-guide.md +++ b/plugins/integrations/stackone-agents/skills/stackone-agents/references/integration-guide.md @@ -52,7 +52,7 @@ Are you writing code for a custom agent? ## Key Documentation URLs -Each overview page below links to its individual guides, so fetch the overview and follow the relevant link rather than guessing guide URLs. Append `.md` to any docs.stackone.com page to get markdown. If a page can't be found, search `https://docs.stackone.com/llms.txt`, which indexes every page. +Each overview page below links to its individual guides, so fetch the overview and follow the relevant link rather than guessing guide URLs. Append `.md` to any docs.stackone.com page to get markdown. If any docs.stackone.com URL here returns 404, fetch `https://docs.stackone.com/llms.txt` (it indexes every page by title and description), search it for the page's topic (e.g. "MCP", "AI Platforms", "Agent2Agent") and use the URL listed there. - TypeScript SDK README: `https://raw.githubusercontent.com/stackoneHQ/stackone-ai-node/refs/heads/main/README.md` - Python SDK README: `https://raw.githubusercontent.com/stackoneHQ/stackone-ai-python/refs/heads/main/README.md` From 52bbbbe4b8b92ccb6f7d7f88e957dddff8cfcc97 Mon Sep 17 00:00:00 2001 From: Faisal Reza Date: Mon, 28 Sep 2026 11:52:45 +0100 Subject: [PATCH 05/12] fix(stackone-agents): drop per-step llms.txt fallbacks The general 404 rule in the Important section now covers these. Co-Authored-By: Claude Opus 5.5 --- .../stackone-agents/skills/stackone-agents/SKILL.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/integrations/stackone-agents/skills/stackone-agents/SKILL.md b/plugins/integrations/stackone-agents/skills/stackone-agents/SKILL.md index e06ff47..fd7bf78 100644 --- a/plugins/integrations/stackone-agents/skills/stackone-agents/SKILL.md +++ b/plugins/integrations/stackone-agents/skills/stackone-agents/SKILL.md @@ -99,7 +99,7 @@ StackOne's MCP server for agent code is at `https://api.stackone.com/mcp`. Every - `Authorization: Basic ` (append a colon to the API key, then base64 encode) - `x-account-id: ` (switch this per customer for multi-tenant agents; see Step 3) -Fetch the overview first: `https://docs.stackone.com/embed/call-actions/mcp.md`. It links to a setup guide for each supported agent framework (Anthropic SDK, OpenAI Agents SDK, LangChain, Google ADK, etc.). Follow the link that matches the user's framework, appending `.md` to get the page as markdown. If the framework isn't listed there, search `https://docs.stackone.com/llms.txt` for it. +Fetch the overview first: `https://docs.stackone.com/embed/call-actions/mcp.md`. It links to a setup guide for each supported agent framework (Anthropic SDK, OpenAI Agents SDK, LangChain, Google ADK, etc.). Follow the link that matches the user's framework, appending `.md` to get the page as markdown. **Testing the MCP connection**: see `https://docs.stackone.com/embed/call-actions/mcp/troubleshooting` for using MCP Inspector with the auth headers: ```bash @@ -112,7 +112,7 @@ For using StackOne from Claude Code, Claude Desktop, ChatGPT, Cursor and other A AI apps connect to `https://mcp.stackone.com/mcp` with OAuth. The user signs in, then picks the project, linked accounts and actions on the consent screen, so no API key or account ID is needed. -Fetch `https://docs.stackone.com/connect/ai-platforms/overview.md`. It links to a setup guide for each supported app. Follow the link for the user's app, appending `.md` to get the page as markdown. If the app isn't listed there, search `https://docs.stackone.com/llms.txt` for it. +Fetch `https://docs.stackone.com/connect/ai-platforms/overview.md`. It links to a setup guide for each supported app. Follow the link for the user's app, appending `.md` to get the page as markdown. See Example 2 for Claude Code. From 6851da92815fdc432883bc3e8a74910b78800424 Mon Sep 17 00:00:00 2001 From: Faisal Reza Date: Mon, 28 Sep 2026 11:57:35 +0100 Subject: [PATCH 06/12] fix(stackone-agents): keep MCP (no code required) as Step 2c Restore the AI apps path to its original Step 2c position and table row, with MCP from agent code following as Step 2d, to minimise the diff against the original skill. Co-Authored-By: Claude Opus 5.5 --- .../skills/stackone-agents/SKILL.md | 24 +++++++++---------- 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/plugins/integrations/stackone-agents/skills/stackone-agents/SKILL.md b/plugins/integrations/stackone-agents/skills/stackone-agents/SKILL.md index fd7bf78..1b8a8bb 100644 --- a/plugins/integrations/stackone-agents/skills/stackone-agents/SKILL.md +++ b/plugins/integrations/stackone-agents/skills/stackone-agents/SKILL.md @@ -31,8 +31,8 @@ These sources contain the latest code examples and API surface. Do not rely sole |--------|----------|----------| | **TypeScript SDK** (`@stackone/ai`) | Custom agents with OpenAI, Vercel AI, Claude, Claude Agent SDK | TypeScript/JavaScript | | **Python SDK** (`stackone-ai`) | Custom agents with OpenAI, LangChain, LangGraph, CrewAI, PydanticAI | Python | -| **MCP Server (agent code)** | Agents in any framework with an MCP client (Anthropic SDK, OpenAI Agents SDK, Google ADK, Azure AI Foundry, etc.) | Any | | **MCP Server (AI apps)** | Using StackOne from Claude Code, Claude Desktop, ChatGPT, Cursor and other AI apps via OAuth, no code needed | Any (config only) | +| **MCP Server (agent code)** | Agents in any framework with an MCP client (Anthropic SDK, OpenAI Agents SDK, Google ADK, Azure AI Foundry, etc.) | Any | | **A2A Protocol** | Agent-to-agent communication | Any | Consult `references/integration-guide.md` for a detailed decision tree. @@ -91,7 +91,17 @@ Fetch the Python README for usage examples and framework integrations: The Python SDK supports: OpenAI, LangChain, LangGraph, CrewAI, PydanticAI. -### Step 2c: MCP from your agent code +### Step 2c: MCP Server path (no code required) + +For using StackOne from Claude Code, Claude Desktop, ChatGPT, Cursor and other AI apps. + +AI apps connect to `https://mcp.stackone.com/mcp` with OAuth. The user signs in, then picks the project, linked accounts and actions on the consent screen, so no API key or account ID is needed. + +Fetch `https://docs.stackone.com/connect/ai-platforms/overview.md`. It links to a setup guide for each supported app. Follow the link for the user's app, appending `.md` to get the page as markdown. + +See Example 2 for Claude Code. + +### Step 2d: MCP from your agent code Use this path for frameworks the SDKs don't cover (e.g. Google ADK, OpenAI Agents SDK, Azure AI Foundry) or when you prefer a standard MCP client. @@ -106,16 +116,6 @@ Fetch the overview first: `https://docs.stackone.com/embed/call-actions/mcp.md`. npx @modelcontextprotocol/inspector https://api.stackone.com/mcp ``` -### Step 2d: MCP Server path (no code required) - -For using StackOne from Claude Code, Claude Desktop, ChatGPT, Cursor and other AI apps. - -AI apps connect to `https://mcp.stackone.com/mcp` with OAuth. The user signs in, then picks the project, linked accounts and actions on the consent screen, so no API key or account ID is needed. - -Fetch `https://docs.stackone.com/connect/ai-platforms/overview.md`. It links to a setup guide for each supported app. Follow the link for the user's app, appending `.md` to get the page as markdown. - -See Example 2 for Claude Code. - ### Step 3: Handle multi-tenant access For applications serving multiple customers, each with their own connected accounts: From 154e790e95666cd7929363e11396659948569a1c Mon Sep 17 00:00:00 2001 From: Faisal Reza Date: Mon, 28 Sep 2026 12:02:49 +0100 Subject: [PATCH 07/12] fix(stackone-agents): use session token URLs for AI app MCP setup Replace the OAuth instructions in Step 2c, the Step 1 table and the Claude Code example with the session token URL method (api.stackone.com/mcp?token=...), including a warning to treat the URL like a password. Co-Authored-By: Claude Opus 5.5 --- .../skills/stackone-agents/SKILL.md | 17 +++++++++++------ .../references/integration-guide.md | 2 +- 2 files changed, 12 insertions(+), 7 deletions(-) diff --git a/plugins/integrations/stackone-agents/skills/stackone-agents/SKILL.md b/plugins/integrations/stackone-agents/skills/stackone-agents/SKILL.md index 1b8a8bb..e2dcbbb 100644 --- a/plugins/integrations/stackone-agents/skills/stackone-agents/SKILL.md +++ b/plugins/integrations/stackone-agents/skills/stackone-agents/SKILL.md @@ -31,7 +31,7 @@ These sources contain the latest code examples and API surface. Do not rely sole |--------|----------|----------| | **TypeScript SDK** (`@stackone/ai`) | Custom agents with OpenAI, Vercel AI, Claude, Claude Agent SDK | TypeScript/JavaScript | | **Python SDK** (`stackone-ai`) | Custom agents with OpenAI, LangChain, LangGraph, CrewAI, PydanticAI | Python | -| **MCP Server (AI apps)** | Using StackOne from Claude Code, Claude Desktop, ChatGPT, Cursor and other AI apps via OAuth, no code needed | Any (config only) | +| **MCP Server (AI apps)** | Using StackOne from Claude Code, Claude Desktop, ChatGPT, Cursor and other AI apps via a session token URL, no code needed | Any (config only) | | **MCP Server (agent code)** | Agents in any framework with an MCP client (Anthropic SDK, OpenAI Agents SDK, Google ADK, Azure AI Foundry, etc.) | Any | | **A2A Protocol** | Agent-to-agent communication | Any | @@ -95,9 +95,14 @@ The Python SDK supports: OpenAI, LangChain, LangGraph, CrewAI, PydanticAI. For using StackOne from Claude Code, Claude Desktop, ChatGPT, Cursor and other AI apps. -AI apps connect to `https://mcp.stackone.com/mcp` with OAuth. The user signs in, then picks the project, linked accounts and actions on the consent screen, so no API key or account ID is needed. +AI apps connect with a session token URL, which carries its own credential, so no API key or account ID header is needed: +1. In the StackOne dashboard, go to **Connectors**, open a connector, then click **Use in Agent**. +2. Pick a linked account, set the expiry (one year by default), select **HTTPS MCP** and copy the URL. It looks like `https://api.stackone.com/mcp?token={session_token}`. +3. Add the URL to the app as an MCP server with no authentication. Each URL covers one linked account, so add one server per account. -Fetch `https://docs.stackone.com/connect/ai-platforms/overview.md`. It links to a setup guide for each supported app. Follow the link for the user's app, appending `.md` to get the page as markdown. +Anyone holding the URL has access to that account until it expires, so treat it like a password and never commit it. + +Fetch `https://docs.stackone.com/connect/ai-platforms/overview.md`. It links to a setup guide for each supported app. Follow the link for the user's app, appending `.md` to get the page as markdown. Use the guide's "Connecting with a session token instead" section for app-specific steps. See Example 2 for Claude Code. @@ -152,9 +157,9 @@ Result: Working agent that can query BambooHR employees through StackOne. User says: "How do I use StackOne MCP in Claude Code?" Actions: -1. Fetch `https://docs.stackone.com/connect/ai-platforms/claude-code` for the setup guide -2. Run `claude mcp add --transport http --scope user stackone https://mcp.stackone.com/mcp` -3. In Claude Code, run `/mcp`, select **stackone**, then **Authenticate** to complete the OAuth consent flow +1. Fetch `https://docs.stackone.com/connect/ai-platforms/claude-code.md` and use its "Connecting with a session token instead" section +2. Have the user generate a session token URL (Connectors → open a connector → **Use in Agent** → **HTTPS MCP**) +3. Run `claude mcp add --transport http gsheets "https://api.stackone.com/mcp?token={session_token}"`, one server per linked account (e.g. `gsheets`, `slack`) Result: Claude Code can call StackOne tools directly. diff --git a/plugins/integrations/stackone-agents/skills/stackone-agents/references/integration-guide.md b/plugins/integrations/stackone-agents/skills/stackone-agents/references/integration-guide.md index f3f5ed4..dae210d 100644 --- a/plugins/integrations/stackone-agents/skills/stackone-agents/references/integration-guide.md +++ b/plugins/integrations/stackone-agents/skills/stackone-agents/references/integration-guide.md @@ -23,7 +23,7 @@ Are you writing code for a custom agent? │ (https://api.stackone.com/mcp, API key + x-account-id) │ └── Fetch docs.stackone.com/embed/call-actions/mcp.md and follow the framework guide link ├── NO → Are you using StackOne from an existing AI app (Claude Code, Cursor, ChatGPT, ...)? -│ ├── YES → Connect via OAuth (https://mcp.stackone.com/mcp) +│ ├── YES → Connect with a session token URL (https://api.stackone.com/mcp?token={session_token}) │ │ └── Fetch docs.stackone.com/connect/ai-platforms/overview.md and follow the app guide link │ └── NO → Agent-to-agent communication? │ └── YES → Use A2A Protocol From d0767d8952fce013605f1a2c0fa37258032fa5fa Mon Sep 17 00:00:00 2001 From: Faisal Reza Date: Mon, 28 Sep 2026 12:05:30 +0100 Subject: [PATCH 08/12] fix(stackone-agents): defer session token setup steps to the docs Replace copied dashboard steps with a pointer to each app guide's session token section, keeping only the security warning. Co-Authored-By: Claude Opus 5.5 --- .../stackone-agents/skills/stackone-agents/SKILL.md | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/plugins/integrations/stackone-agents/skills/stackone-agents/SKILL.md b/plugins/integrations/stackone-agents/skills/stackone-agents/SKILL.md index e2dcbbb..e1d6356 100644 --- a/plugins/integrations/stackone-agents/skills/stackone-agents/SKILL.md +++ b/plugins/integrations/stackone-agents/skills/stackone-agents/SKILL.md @@ -95,14 +95,9 @@ The Python SDK supports: OpenAI, LangChain, LangGraph, CrewAI, PydanticAI. For using StackOne from Claude Code, Claude Desktop, ChatGPT, Cursor and other AI apps. -AI apps connect with a session token URL, which carries its own credential, so no API key or account ID header is needed: -1. In the StackOne dashboard, go to **Connectors**, open a connector, then click **Use in Agent**. -2. Pick a linked account, set the expiry (one year by default), select **HTTPS MCP** and copy the URL. It looks like `https://api.stackone.com/mcp?token={session_token}`. -3. Add the URL to the app as an MCP server with no authentication. Each URL covers one linked account, so add one server per account. +AI apps connect using a session token URL generated in the StackOne dashboard. Fetch `https://docs.stackone.com/connect/ai-platforms/overview.md`. It links to a setup guide for each supported app. Follow the link for the user's app, appending `.md` to get the page as markdown, and use its "Connecting with a session token instead" section. -Anyone holding the URL has access to that account until it expires, so treat it like a password and never commit it. - -Fetch `https://docs.stackone.com/connect/ai-platforms/overview.md`. It links to a setup guide for each supported app. Follow the link for the user's app, appending `.md` to get the page as markdown. Use the guide's "Connecting with a session token instead" section for app-specific steps. +The URL grants access to a linked account on its own, so treat it like a password and never commit it. See Example 2 for Claude Code. @@ -158,8 +153,7 @@ User says: "How do I use StackOne MCP in Claude Code?" Actions: 1. Fetch `https://docs.stackone.com/connect/ai-platforms/claude-code.md` and use its "Connecting with a session token instead" section -2. Have the user generate a session token URL (Connectors → open a connector → **Use in Agent** → **HTTPS MCP**) -3. Run `claude mcp add --transport http gsheets "https://api.stackone.com/mcp?token={session_token}"`, one server per linked account (e.g. `gsheets`, `slack`) +2. Walk the user through generating a session token URL and adding it with `claude mcp add`, as described in that section Result: Claude Code can call StackOne tools directly. From e4424d44fa2d38a9b5f3317ba09e3a786869c42b Mon Sep 17 00:00:00 2001 From: Faisal Reza Date: Mon, 28 Sep 2026 12:07:15 +0100 Subject: [PATCH 09/12] fix(stackone-agents): address review feedback - Extend the general docs fallback to cover pages that load but don't link the needed guide, not just 404s - Clarify that MCP Inspector auth headers are added in the Inspector UI Co-Authored-By: Claude Opus 5.5 --- .../stackone-agents/skills/stackone-agents/SKILL.md | 4 ++-- .../skills/stackone-agents/references/integration-guide.md | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/plugins/integrations/stackone-agents/skills/stackone-agents/SKILL.md b/plugins/integrations/stackone-agents/skills/stackone-agents/SKILL.md index e1d6356..c6081bf 100644 --- a/plugins/integrations/stackone-agents/skills/stackone-agents/SKILL.md +++ b/plugins/integrations/stackone-agents/skills/stackone-agents/SKILL.md @@ -19,7 +19,7 @@ SDK APIs change frequently. Before writing code: These sources contain the latest code examples and API surface. Do not rely solely on this skill for code snippets. -**If any URL in this skill returns 404** (StackOne reorganizes its docs from time to time): +**If any URL in this skill returns 404, or a page doesn't cover what you need** (e.g. an overview page doesn't link the user's framework or app; StackOne reorganizes its docs from time to time): - For a `docs.stackone.com` page, fetch `https://docs.stackone.com/llms.txt`, which indexes every docs page by title and description. Search it for the page's topic (e.g. "MCP", "AI Platforms", "Agent2Agent", "Claude Code") and use the URL listed there. - For an SDK README, open the repository instead (`https://github.com/stackoneHQ/stackone-ai-node` or `https://github.com/stackoneHQ/stackone-ai-python`) and find the current README. @@ -111,7 +111,7 @@ StackOne's MCP server for agent code is at `https://api.stackone.com/mcp`. Every Fetch the overview first: `https://docs.stackone.com/embed/call-actions/mcp.md`. It links to a setup guide for each supported agent framework (Anthropic SDK, OpenAI Agents SDK, LangChain, Google ADK, etc.). Follow the link that matches the user's framework, appending `.md` to get the page as markdown. -**Testing the MCP connection**: see `https://docs.stackone.com/embed/call-actions/mcp/troubleshooting` for using MCP Inspector with the auth headers: +**Testing the MCP connection**: launch MCP Inspector, then add the `Authorization` and `x-account-id` headers in the Inspector UI before connecting (see `https://docs.stackone.com/embed/call-actions/mcp/troubleshooting`): ```bash npx @modelcontextprotocol/inspector https://api.stackone.com/mcp ``` diff --git a/plugins/integrations/stackone-agents/skills/stackone-agents/references/integration-guide.md b/plugins/integrations/stackone-agents/skills/stackone-agents/references/integration-guide.md index dae210d..316f2de 100644 --- a/plugins/integrations/stackone-agents/skills/stackone-agents/references/integration-guide.md +++ b/plugins/integrations/stackone-agents/skills/stackone-agents/references/integration-guide.md @@ -52,7 +52,7 @@ Are you writing code for a custom agent? ## Key Documentation URLs -Each overview page below links to its individual guides, so fetch the overview and follow the relevant link rather than guessing guide URLs. Append `.md` to any docs.stackone.com page to get markdown. If any docs.stackone.com URL here returns 404, fetch `https://docs.stackone.com/llms.txt` (it indexes every page by title and description), search it for the page's topic (e.g. "MCP", "AI Platforms", "Agent2Agent") and use the URL listed there. +Each overview page below links to its individual guides, so fetch the overview and follow the relevant link rather than guessing guide URLs. Append `.md` to any docs.stackone.com page to get markdown. If any docs.stackone.com URL here returns 404, or an overview page doesn't link the guide you need, fetch `https://docs.stackone.com/llms.txt` (it indexes every page by title and description), search it for the page's topic (e.g. "MCP", "AI Platforms", "Agent2Agent") and use the URL listed there. - TypeScript SDK README: `https://raw.githubusercontent.com/stackoneHQ/stackone-ai-node/refs/heads/main/README.md` - Python SDK README: `https://raw.githubusercontent.com/stackoneHQ/stackone-ai-python/refs/heads/main/README.md` From 9ac97cf978657a6e0edca5c9bd4c2d2265d9f247 Mon Sep 17 00:00:00 2001 From: Faisal Reza Date: Mon, 28 Sep 2026 12:09:59 +0100 Subject: [PATCH 10/12] fix(stackone-agents): remove duplicate docs fallback from integration guide The general fallback rule in SKILL.md already covers this, and the guide is only reached via SKILL.md. Co-Authored-By: Claude Opus 5.5 --- .../skills/stackone-agents/references/integration-guide.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/integrations/stackone-agents/skills/stackone-agents/references/integration-guide.md b/plugins/integrations/stackone-agents/skills/stackone-agents/references/integration-guide.md index 316f2de..3a73af5 100644 --- a/plugins/integrations/stackone-agents/skills/stackone-agents/references/integration-guide.md +++ b/plugins/integrations/stackone-agents/skills/stackone-agents/references/integration-guide.md @@ -52,7 +52,7 @@ Are you writing code for a custom agent? ## Key Documentation URLs -Each overview page below links to its individual guides, so fetch the overview and follow the relevant link rather than guessing guide URLs. Append `.md` to any docs.stackone.com page to get markdown. If any docs.stackone.com URL here returns 404, or an overview page doesn't link the guide you need, fetch `https://docs.stackone.com/llms.txt` (it indexes every page by title and description), search it for the page's topic (e.g. "MCP", "AI Platforms", "Agent2Agent") and use the URL listed there. +Each overview page below links to its individual guides, so fetch the overview and follow the relevant link rather than guessing guide URLs. Append `.md` to any docs.stackone.com page to get markdown. - TypeScript SDK README: `https://raw.githubusercontent.com/stackoneHQ/stackone-ai-node/refs/heads/main/README.md` - Python SDK README: `https://raw.githubusercontent.com/stackoneHQ/stackone-ai-python/refs/heads/main/README.md` From b590c7999d06fd88ca7d9119eb5b334385f58dd3 Mon Sep 17 00:00:00 2001 From: Faisal Reza Date: Mon, 28 Sep 2026 12:11:43 +0100 Subject: [PATCH 11/12] fix(stackone-agents): state the .md docs tip once in SKILL.md Move the "append .md for markdown" tip into the Important section and drop the per-step and integration guide copies. Co-Authored-By: Claude Opus 5.5 --- .../stackone-agents/skills/stackone-agents/SKILL.md | 6 ++++-- .../skills/stackone-agents/references/integration-guide.md | 2 +- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/plugins/integrations/stackone-agents/skills/stackone-agents/SKILL.md b/plugins/integrations/stackone-agents/skills/stackone-agents/SKILL.md index c6081bf..51783b0 100644 --- a/plugins/integrations/stackone-agents/skills/stackone-agents/SKILL.md +++ b/plugins/integrations/stackone-agents/skills/stackone-agents/SKILL.md @@ -19,6 +19,8 @@ SDK APIs change frequently. Before writing code: These sources contain the latest code examples and API surface. Do not rely solely on this skill for code snippets. +When fetching any `docs.stackone.com` page, append `.md` to the URL to get it as markdown. + **If any URL in this skill returns 404, or a page doesn't cover what you need** (e.g. an overview page doesn't link the user's framework or app; StackOne reorganizes its docs from time to time): - For a `docs.stackone.com` page, fetch `https://docs.stackone.com/llms.txt`, which indexes every docs page by title and description. Search it for the page's topic (e.g. "MCP", "AI Platforms", "Agent2Agent", "Claude Code") and use the URL listed there. - For an SDK README, open the repository instead (`https://github.com/stackoneHQ/stackone-ai-node` or `https://github.com/stackoneHQ/stackone-ai-python`) and find the current README. @@ -95,7 +97,7 @@ The Python SDK supports: OpenAI, LangChain, LangGraph, CrewAI, PydanticAI. For using StackOne from Claude Code, Claude Desktop, ChatGPT, Cursor and other AI apps. -AI apps connect using a session token URL generated in the StackOne dashboard. Fetch `https://docs.stackone.com/connect/ai-platforms/overview.md`. It links to a setup guide for each supported app. Follow the link for the user's app, appending `.md` to get the page as markdown, and use its "Connecting with a session token instead" section. +AI apps connect using a session token URL generated in the StackOne dashboard. Fetch `https://docs.stackone.com/connect/ai-platforms/overview.md`. It links to a setup guide for each supported app. Follow the link for the user's app and use its "Connecting with a session token instead" section. The URL grants access to a linked account on its own, so treat it like a password and never commit it. @@ -109,7 +111,7 @@ StackOne's MCP server for agent code is at `https://api.stackone.com/mcp`. Every - `Authorization: Basic ` (append a colon to the API key, then base64 encode) - `x-account-id: ` (switch this per customer for multi-tenant agents; see Step 3) -Fetch the overview first: `https://docs.stackone.com/embed/call-actions/mcp.md`. It links to a setup guide for each supported agent framework (Anthropic SDK, OpenAI Agents SDK, LangChain, Google ADK, etc.). Follow the link that matches the user's framework, appending `.md` to get the page as markdown. +Fetch the overview first: `https://docs.stackone.com/embed/call-actions/mcp.md`. It links to a setup guide for each supported agent framework (Anthropic SDK, OpenAI Agents SDK, LangChain, Google ADK, etc.). Follow the link that matches the user's framework. **Testing the MCP connection**: launch MCP Inspector, then add the `Authorization` and `x-account-id` headers in the Inspector UI before connecting (see `https://docs.stackone.com/embed/call-actions/mcp/troubleshooting`): ```bash diff --git a/plugins/integrations/stackone-agents/skills/stackone-agents/references/integration-guide.md b/plugins/integrations/stackone-agents/skills/stackone-agents/references/integration-guide.md index 3a73af5..1e57727 100644 --- a/plugins/integrations/stackone-agents/skills/stackone-agents/references/integration-guide.md +++ b/plugins/integrations/stackone-agents/skills/stackone-agents/references/integration-guide.md @@ -52,7 +52,7 @@ Are you writing code for a custom agent? ## Key Documentation URLs -Each overview page below links to its individual guides, so fetch the overview and follow the relevant link rather than guessing guide URLs. Append `.md` to any docs.stackone.com page to get markdown. +Each overview page below links to its individual guides, so fetch the overview and follow the relevant link rather than guessing guide URLs. - TypeScript SDK README: `https://raw.githubusercontent.com/stackoneHQ/stackone-ai-node/refs/heads/main/README.md` - Python SDK README: `https://raw.githubusercontent.com/stackoneHQ/stackone-ai-python/refs/heads/main/README.md` From 56791bedb18b3ba92c594d8b2238043ee4f4e41b Mon Sep 17 00:00:00 2001 From: Faisal Reza Date: Mon, 28 Sep 2026 15:53:50 +0100 Subject: [PATCH 12/12] fix(SOL-419): align docs fetching guidance across skills - .md suffix only for urls not already ending in .md; llms.txt as is - .md on remaining docs urls - contact support when docs do not cover it Co-Authored-By: Claude Opus 5.5 --- .../stackone-agents/skills/stackone-agents/SKILL.md | 7 ++++--- .../stackone-agents/references/integration-guide.md | 8 ++++---- 2 files changed, 8 insertions(+), 7 deletions(-) diff --git a/plugins/integrations/stackone-agents/skills/stackone-agents/SKILL.md b/plugins/integrations/stackone-agents/skills/stackone-agents/SKILL.md index 51783b0..1e84e9f 100644 --- a/plugins/integrations/stackone-agents/skills/stackone-agents/SKILL.md +++ b/plugins/integrations/stackone-agents/skills/stackone-agents/SKILL.md @@ -15,15 +15,16 @@ metadata: SDK APIs change frequently. Before writing code: 1. For TypeScript: fetch `https://raw.githubusercontent.com/stackoneHQ/stackone-ai-node/refs/heads/main/README.md` 2. For Python: fetch `https://raw.githubusercontent.com/stackoneHQ/stackone-ai-python/refs/heads/main/README.md` -3. For MCP setup: fetch `https://docs.stackone.com/embed/call-actions/mcp` +3. For MCP setup: fetch `https://docs.stackone.com/embed/call-actions/mcp.md` These sources contain the latest code examples and API surface. Do not rely solely on this skill for code snippets. -When fetching any `docs.stackone.com` page, append `.md` to the URL to get it as markdown. +When fetching a `docs.stackone.com` page whose URL doesn't already end in `.md`, append `.md` to get it as markdown. `llms.txt` is already plain text, so fetch it as is. **If any URL in this skill returns 404, or a page doesn't cover what you need** (e.g. an overview page doesn't link the user's framework or app; StackOne reorganizes its docs from time to time): - For a `docs.stackone.com` page, fetch `https://docs.stackone.com/llms.txt`, which indexes every docs page by title and description. Search it for the page's topic (e.g. "MCP", "AI Platforms", "Agent2Agent", "Claude Code") and use the URL listed there. - For an SDK README, open the repository instead (`https://github.com/stackoneHQ/stackone-ai-node` or `https://github.com/stackoneHQ/stackone-ai-python`) and find the current README. +- If the docs don't cover the question, say so and suggest contacting StackOne support. Don't invent an answer. ## Instructions @@ -113,7 +114,7 @@ StackOne's MCP server for agent code is at `https://api.stackone.com/mcp`. Every Fetch the overview first: `https://docs.stackone.com/embed/call-actions/mcp.md`. It links to a setup guide for each supported agent framework (Anthropic SDK, OpenAI Agents SDK, LangChain, Google ADK, etc.). Follow the link that matches the user's framework. -**Testing the MCP connection**: launch MCP Inspector, then add the `Authorization` and `x-account-id` headers in the Inspector UI before connecting (see `https://docs.stackone.com/embed/call-actions/mcp/troubleshooting`): +**Testing the MCP connection**: launch MCP Inspector, then add the `Authorization` and `x-account-id` headers in the Inspector UI before connecting (see `https://docs.stackone.com/embed/call-actions/mcp/troubleshooting.md`): ```bash npx @modelcontextprotocol/inspector https://api.stackone.com/mcp ``` diff --git a/plugins/integrations/stackone-agents/skills/stackone-agents/references/integration-guide.md b/plugins/integrations/stackone-agents/skills/stackone-agents/references/integration-guide.md index 1e57727..7ab46eb 100644 --- a/plugins/integrations/stackone-agents/skills/stackone-agents/references/integration-guide.md +++ b/plugins/integrations/stackone-agents/skills/stackone-agents/references/integration-guide.md @@ -56,8 +56,8 @@ Each overview page below links to its individual guides, so fetch the overview a - TypeScript SDK README: `https://raw.githubusercontent.com/stackoneHQ/stackone-ai-node/refs/heads/main/README.md` - Python SDK README: `https://raw.githubusercontent.com/stackoneHQ/stackone-ai-python/refs/heads/main/README.md` -- MCP overview: `https://docs.stackone.com/embed/call-actions/mcp` -- MCP troubleshooting: `https://docs.stackone.com/embed/call-actions/mcp/troubleshooting` -- AI platforms (MCP clients): `https://docs.stackone.com/connect/ai-platforms/overview` -- A2A overview: `https://docs.stackone.com/embed/call-actions/agent2agent` +- MCP overview: `https://docs.stackone.com/embed/call-actions/mcp.md` +- MCP troubleshooting: `https://docs.stackone.com/embed/call-actions/mcp/troubleshooting.md` +- AI platforms (MCP clients): `https://docs.stackone.com/connect/ai-platforms/overview.md` +- A2A overview: `https://docs.stackone.com/embed/call-actions/agent2agent.md` - All docs: `https://docs.stackone.com/llms.txt`