From 8bc2813fc28774b8fbf671230fa794f56211bdd5 Mon Sep 17 00:00:00 2001 From: Kenneth Ng Date: Fri, 20 Nov 2026 14:13:41 +0000 Subject: [PATCH 1/5] feat: add stackone-connection agent skill (ENG-3937) Transplants the stackone-connection skill (byte-identical) from agent-plugins@e736afa0 so end users who install the plugin get it auto-loaded alongside the MCP, and the dashboard agent-server can pin this repo as its skill source. Adds a dependency-free root package.json for that pin and tracks its version in release-please. Co-Authored-By: Claude Opus 4.8 --- .release-please-config.json | 3 +- package.json | 16 +++++ skills/stackone-connection/SKILL.md | 99 +++++++++++++++++++++++++++++ 3 files changed, 117 insertions(+), 1 deletion(-) create mode 100644 package.json create mode 100644 skills/stackone-connection/SKILL.md diff --git a/.release-please-config.json b/.release-please-config.json index 0067219..f6e78ca 100644 --- a/.release-please-config.json +++ b/.release-please-config.json @@ -13,7 +13,8 @@ { "type": "json", "path": ".grok-plugin/plugin.json", "jsonpath": "$.version" }, { "type": "json", "path": ".cursor-plugin/plugin.json", "jsonpath": "$.version" }, { "type": "json", "path": ".codex-plugin/plugin.json", "jsonpath": "$.version" }, - { "type": "json", "path": ".claude-plugin/marketplace.json", "jsonpath": "$.plugins[0].version" } + { "type": "json", "path": ".claude-plugin/marketplace.json", "jsonpath": "$.plugins[0].version" }, + { "type": "json", "path": "package.json", "jsonpath": "$.version" } ] } } diff --git a/package.json b/package.json new file mode 100644 index 0000000..f820270 --- /dev/null +++ b/package.json @@ -0,0 +1,16 @@ +{ + "name": "@stackone/stackone-plugin", + "version": "1.1.0", + "description": "StackOne hosted MCP connector plugin: a server manifest and agent skills, nothing runs locally.", + "license": "MIT", + "author": { + "name": "StackOne", + "email": "engineering@stackone.com", + "url": "https://www.stackone.com" + }, + "homepage": "https://docs.stackone.com", + "repository": { + "type": "git", + "url": "https://github.com/StackOneHQ/stackone-plugin.git" + } +} diff --git a/skills/stackone-connection/SKILL.md b/skills/stackone-connection/SKILL.md new file mode 100644 index 0000000..abdaef3 --- /dev/null +++ b/skills/stackone-connection/SKILL.md @@ -0,0 +1,99 @@ +--- +name: stackone-connection +description: Use when the user wants to connect or link an account, reconnect a broken or expired connector, choose between a connector's profiles before linking, or verify that a newly linked account works. Covers linking, reconnection, profile choice, and link diagnosis. Not for running a provider action on an already-working account. +license: MIT +metadata: + author: stackone + version: "1.0" +--- + +# Connecting and setting up accounts + +Linking an account, repairing a broken one, picking the right connector profile, and confirming a +new link all change account state. Each writes with the signed-in user's own permissions, so read +the current state first, make the one change that is needed, and make no write when the state you +want already holds. + +## Read before you write + +Find the thing before you touch it, and stop if it is already right. + +- A profile: `stackone_list_connector_profiles {connector_key: [""]}` or `stackone_get_connector_profile {id}`. `connector_key` is a list. +- An account: `stackone_list_linked_accounts {providers}` or `stackone_get_account {id}`. + +If the account is already linked and authenticated, or the profile already enables the action, say +so and change nothing. + +## Pick the profile deliberately + +A connector can have several profiles (for example a production and a sandbox one), and each links +through different credentials and enables different actions. + +- List them with `stackone_list_connector_profiles {connector_key: [""]}`. If more than one is active, + tell the user how they differ (name, environment, enabled action count) or ask what they need + before linking. +- Start the link with the chosen profile's `id`, passed as `connector_profile_id`. A bare + `provider` binds to the connector's default profile and makes the choice silently, so pass + `connector_profile_id` whenever more than one profile fits. + +``` +stackone_link_account { connector_profile_id: "", label: "Prod CRM" } +``` + +## Linking is one step + +`stackone_link_account` returns the auth link synchronously, but the account exists only after the +user finishes in the browser. There is no status-poll tool. + +1. `stackone_link_account { connector_profile_id | provider }` returns + `{ auth_link_url, expires_at, provider, connector_profile_id, next_steps }`. Give the user the + `auth_link_url` to open and relay `next_steps`. +2. When the user says they are done, confirm the account exists with a read: + `stackone_list_linked_accounts` or `stackone_get_account` returns the new account. Confirm + success from that read, never from the fact that you started the link. + +## Reconnect a broken account; do not replace it + +`stackone_link_account` has no `account_id` input, and this surface has no separate repair or +edit-mode tool. You reconnect an expired or deauthorized account by starting a fresh link through +the same connector profile the account already uses, then confirming by re-reading the account. + +- Read the broken account with `stackone_get_account {id}`. Its output names the provider and the + profile (`integration_config_labels`), but not the profile id. +- Look the profile up with `stackone_list_connector_profiles {connector_key: [""]}` and match it by name to get its `id`. +- Relink through that profile: + +``` +stackone_link_account { connector_profile_id: "" } +``` + +Do not delete the old account first, and do not start a bare `provider` link when more than one +profile exists for the connector. Confirm the repair by re-reading the account and checking its +status. + +## Diagnose a new or suspect link from evidence + +When a link looks wrong, run the actual reads and report which work and which fail, rather than +guessing. + +- Find the account's read actions and run one: `stackone_search_actions`, then + `stackone_execute_action { action_id, stackone_account_id }`. Use a read action to test a read; + never run a write or delete to probe. +- If the account authenticates but one read fails, the link is working and the gap is a + provider-side permission. Quote the provider's own error and recommend the minimal fix (for + example granting a view-level scope), not reconnecting, relinking, or replacing the account. +- Recommend reconnecting only when the evidence shows the account itself is not authenticated. + +## No collateral writes + +Stay inside what the user asked. Do not delete accounts, change a profile's actions, suspend or +re-enable accounts, message anyone other than the user, or run any write or delete action to test a +read. When a step would change state the user did not ask about, stop and ask first. + +## Finish + +Tell the user the state that now holds and how you confirmed it: the account that is linked and its +status from the read-back, and the profile it linked through. If an action remains with the user +(opening the auth URL, granting a provider-side permission), say what it is. Report what you did not +do when you chose not to. From 9687175f74b7975f193067377ecfead75a80ca0a Mon Sep 17 00:00:00 2001 From: Kenneth Ng Date: Fri, 20 Nov 2026 14:15:51 +0000 Subject: [PATCH 2/5] ci: assert both skills in the Claude Code install smoke-check (ENG-3937) The install smoke-check hardcoded Skills (1); the plugin now ships two skills. Assert Skills (2) and that stackone-connection is detected alongside stackone-actions. Co-Authored-By: Claude Opus 4.8 --- .github/workflows/validate.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/validate.yml b/.github/workflows/validate.yml index b1887d9..45b0463 100644 --- a/.github/workflows/validate.yml +++ b/.github/workflows/validate.yml @@ -84,8 +84,9 @@ jobs: claude plugin install stackone@stackone claude plugin details stackone@stackone | tee details.txt grep -q "MCP servers (1)" details.txt - grep -q "Skills (1)" details.txt + grep -q "Skills (2)" details.txt grep -q "stackone-actions" details.txt + grep -q "stackone-connection" details.txt codex: name: Codex / ChatGPT (install from source) From f63f032dc7170a71ed4e21012a7f30bef0eba63d Mon Sep 17 00:00:00 2001 From: Kenneth Ng Date: Fri, 20 Nov 2026 14:36:51 +0000 Subject: [PATCH 3/5] refactor: trim skill frontmatter to repo convention, mark package private (ENG-3937) Drop license/metadata from the stackone-connection SKILL.md frontmatter to match the repo's existing skill (name + description only); body unchanged. Add "private": true to package.json to prevent accidental npm publish. Co-Authored-By: Claude Opus 4.8 --- package.json | 1 + skills/stackone-connection/SKILL.md | 4 ---- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/package.json b/package.json index f820270..5a4f8ec 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,7 @@ { "name": "@stackone/stackone-plugin", "version": "1.1.0", + "private": true, "description": "StackOne hosted MCP connector plugin: a server manifest and agent skills, nothing runs locally.", "license": "MIT", "author": { diff --git a/skills/stackone-connection/SKILL.md b/skills/stackone-connection/SKILL.md index abdaef3..2312f9b 100644 --- a/skills/stackone-connection/SKILL.md +++ b/skills/stackone-connection/SKILL.md @@ -1,10 +1,6 @@ --- name: stackone-connection description: Use when the user wants to connect or link an account, reconnect a broken or expired connector, choose between a connector's profiles before linking, or verify that a newly linked account works. Covers linking, reconnection, profile choice, and link diagnosis. Not for running a provider action on an already-working account. -license: MIT -metadata: - author: stackone - version: "1.0" --- # Connecting and setting up accounts From edea85761b19a1560076fe9ac09d8d810b9d5e94 Mon Sep 17 00:00:00 2001 From: Kenneth Ng Date: Fri, 20 Nov 2026 14:42:08 +0000 Subject: [PATCH 4/5] docs: README reflects the second bundled skill (ENG-3937) Two skills now ship, so 'the bundled skill is Markdown' becomes plural, and the repository-layout tree lists skills/stackone-connection/SKILL.md. Co-Authored-By: Claude Opus 4.8 --- README.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index bc11f61..e90ad62 100644 --- a/README.md +++ b/README.md @@ -44,7 +44,7 @@ In Antigravity, you can also type `/stackone-actions` and describe a task. The [ - **Auth:** OAuth 2.1 with PKCE against `https://idp-api.stackone.com/api/auth`. The server takes either kind of client the host brings: a URL-based client ID backed by a client ID metadata document, or one from dynamic client registration. On first use your host opens the StackOne sign-in page. No API keys or secrets live in this repo. - **Scopes:** `mcp`, `offline_access` (refresh tokens so you sign in once). - **Network endpoints this plugin calls:** `mcp.stackone.com` (the MCP server) and `idp-api.stackone.com` (sign-in). Nothing else. -- **What runs locally:** nothing. No hooks, no scripts, no bundled binaries. The bundled skill is Markdown. StackOne runs the actions on its hosted MCP server. +- **What runs locally:** nothing. No hooks, no scripts, no bundled binaries. The bundled skills are Markdown. StackOne runs the actions on its hosted MCP server. - **Data:** actions run against the SaaS accounts you have linked in StackOne, under the permissions of that link. Privacy policy: . Terms: . ## Repository layout @@ -64,6 +64,7 @@ stackone-plugin/ ├── mcp.json # server config read by Cursor ├── .mcp.json # server config read by Claude Code, Grok Build, Codex ├── skills/stackone-actions/SKILL.md # Connected-app workflow +├── skills/stackone-connection/SKILL.md # Account linking and setup ├── assets/logo.png, logo.svg └── scripts/check-manifests.py ``` From a425484e312ae752e5393ac4901498714772462b Mon Sep 17 00:00:00 2001 From: Kenneth Ng Date: Fri, 20 Nov 2026 14:54:34 +0000 Subject: [PATCH 5/5] feat: connection skill defers to the dashboard when link tools are absent (ENG-3937) For sessions without the management tools (feat_management_mcp off), the skill now tells the agent to send the user to the StackOne dashboard instead of walking them toward link tools that are not present. The clause fires only when those tools are absent, so the gated dashboard path is unchanged. Co-Authored-By: Claude Opus 4.8 --- skills/stackone-connection/SKILL.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/skills/stackone-connection/SKILL.md b/skills/stackone-connection/SKILL.md index 2312f9b..d30254a 100644 --- a/skills/stackone-connection/SKILL.md +++ b/skills/stackone-connection/SKILL.md @@ -10,6 +10,8 @@ new link all change account state. Each writes with the signed-in user's own per the current state first, make the one change that is needed, and make no write when the state you want already holds. +If this session has no connector-profile or account-linking tools (such as `stackone_list_connector_profiles` or `stackone_link_account`), linking is not available here: tell the user to link the account in the StackOne dashboard at app.stackone.com, and do not attempt the steps below. + ## Read before you write Find the thing before you touch it, and stop if it is already right.