@bitget-ai/bitget-agent-skill 4.0.1 → 4.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -5,6 +5,20 @@ All notable changes to `bitget-agent-skill` are documented in this file.
5
5
  The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
6
6
  and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
7
7
 
8
+ ## [4.0.2] - 2026-11-19
9
+
10
+ Publish after quant-data-platform with `disconnectAgent` and agent-oauth-server
11
+ without the one-client-per-account rule are both live.
12
+
13
+ ### Changed
14
+
15
+ - **Several agents can be connected to one Agentic account.** The server no longer refuses a second client. The account rules, the authorization notes and the FAQ say so, and the row for "already connected to another agent" is gone from the failure table.
16
+ - **Disconnecting is done by the agent.** When the user asks, the agent explains what it does and calls `do_request_open_api(operation_id="disconnectAgent", confirm=true)`. It ends that agent's authorization only; orders, positions and other agents are not affected. The skill no longer sends the user to the Bitget website to disconnect.
17
+
18
+ ### Added
19
+
20
+ - **Evaluation scenarios** for disconnecting through the agent, for an account shared with another agent, and for not disconnecting in response to an error.
21
+
8
22
  ## [4.0.1] - 2026-11-18
9
23
 
10
24
  Corrections from the first days of 4.0.0 in real clients and from the server's
package/README.md CHANGED
@@ -146,7 +146,7 @@ Any client that supports MCP with OAuth can connect. `references/authorization.m
146
146
  - **No API keys on your machine.** You approve access in the browser; the skill never asks you to create, paste, or store a key.
147
147
  - **The skill files are inert.** Plain Markdown with no runtime process and no network access.
148
148
  - **Scoped to an Agentic sub-account.** Withdrawals and main ↔ sub-account transfers are not exposed to the agent.
149
- - **You can revoke at any time.** On the Bitget website go to "Sub-account management" → "Disconnect Agent". Clear open orders first. This ends every login on that account.
149
+ - **You can disconnect at any time.** Tell your AI "disconnect from Bitget". It ends that agent's authorization at once; open orders and positions stay on the account, and other agents connected to it keep working.
150
150
 
151
151
  ---
152
152
 
@@ -195,13 +195,13 @@ npx @bitget-ai/bitget-agent-skill@latest --target all
195
195
  The skill instructs the AI to preview every write, show you a confirmation card, and wait for your clear "yes" before executing.
196
196
 
197
197
  **Do I need an API key?**
198
- No. Access is granted through browser authorization and can be revoked on the Bitget website.
198
+ No. Access is granted through browser authorization and can be ended at any time by asking your AI to disconnect.
199
199
 
200
200
  **Does the skill file need network access?**
201
201
  No. It is Markdown. All requests are made by your AI client to the cloud MCP.
202
202
 
203
203
  **Can I connect two AI clients to the same Agentic account?**
204
- Not two different clients. An account is connected to one client at a time, and a second client is refused until you disconnect the first on the Bitget website. Give each client its own Agentic account.
204
+ Yes. Each client authorizes separately and neither disconnects the other. Each agent checks positions and open orders on the exchange before it writes.
205
205
 
206
206
  **Can I still use `bgc` and the local API-key skill?**
207
207
  No. That edition is no longer supported. See [Upgrading from 3.x](#upgrading-from-3x).
package/VERSION CHANGED
@@ -1 +1 @@
1
- 4.0.1
1
+ 4.0.2
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bitget-ai/bitget-agent-skill",
3
- "version": "4.0.1",
3
+ "version": "4.0.2",
4
4
  "packageManager": "pnpm@8.14.1",
5
5
  "description": "Official Bitget AI skill — teaches Claude Code, Codex, Cursor, OpenClaw and other AI agents to connect the Bitget cloud MCP (https://agent.bitget.com/mcp), authorize a Bitget Agentic account with browser OAuth, and trade or query from natural language. No local API keys. Run `npx @bitget-ai/bitget-agent-skill` to deploy into your AI tool's skill directory.",
6
6
  "type": "module",
@@ -19,8 +19,8 @@ license: MIT
19
19
  compatibility: Requires an AI client that can connect remote HTTP MCP servers with OAuth, and network access to agent.bitget.com and bitget.com.
20
20
  metadata:
21
21
  author: "Bitget"
22
- version: "4.0.1"
23
- updated: "2026-11-18"
22
+ version: "4.0.2"
23
+ updated: "2026-11-19"
24
24
  mcp-server: "https://agent.bitget.com/mcp"
25
25
  ---
26
26
 
@@ -96,13 +96,16 @@ The server refuses high-risk writes (cancel all, close all, countdown cancel-all
96
96
 
97
97
  ## Account rules
98
98
 
99
- - **One Agentic account is connected to one client at a time.** While an account is connected to one client (for example Codex), authorizing a different client (for example Cursor) for that account is refused with "already connected to another agent". Nothing is replaced, and the first client keeps working. The user picks or creates another Agentic account for this client, or disconnects the first client on the website.
100
- - **Authorizing the same client again keeps the earlier login valid.** Two installs of the same client can therefore act on one account without seeing each other's chat. Check positions and open orders on the exchange before a write; do not rely on what you remember.
99
+ - **Several agents can be connected to one Agentic account.** Each one authorizes separately, and connecting another does not disconnect the ones already there. The user may also be trading by hand. So check positions and open orders on the exchange before a write; do not rely on what you remember, and do not assume an order you did not place is a mistake.
101
100
  - **This client holds one login.** Authorizing it for a different account switches this client to that account. Anything it was watching on the old account stops, so warn the user before you switch and never switch the login silently.
102
- - **Several agents can run at once,** each with its own Agentic account. If the user wants one agent to manage several accounts, or several clients on one account, point them to the [product feedback group](https://telegram.me/+o1tYqQ_lXxllYjgy). Use the same link for product-level questions this skill cannot answer.
103
- - **Disconnecting** happens on the Bitget website, not through the MCP, and you cannot do it for the user. It ends every login on that account. Tell them:
101
+ - If the user wants one agent to manage several accounts, point them to the [product feedback group](https://telegram.me/+o1tYqQ_lXxllYjgy). Use the same link for product-level questions this skill cannot answer.
102
+ - **Disconnecting is done here, by you.** When the user clearly asks to disconnect or log out of Bitget, say what will happen (this agent's authorization ends; open orders and positions stay on the account; other agents connected to it keep working), then call:
104
103
 
105
- > Please go to "Sub-account management" on the web and use "Disconnect Agent". You must clear open orders before disconnecting. Funds can be transferred back in sub-account management; that step is not a prerequisite for disconnect.
104
+ ```
105
+ do_request_open_api(operation_id="disconnectAgent", confirm=true)
106
+ ```
107
+
108
+ Do not send the user to the Bitget website to disconnect. Do not call it for any other reason, such as an error or an expired token.
106
109
 
107
110
  - **Token validity** is judged only by an unauthorized or HTTP 401 result from a private call. Do not assume a lifetime, and do not describe it as an API key expiring. Once the token is invalid, stop trading and re-authorize first.
108
111
 
@@ -37,7 +37,7 @@ If no window opens but a link is returned, open it with whatever this environmen
37
37
  ## On the authorization page
38
38
 
39
39
  - **First authorization:** the user creates a new Agentic account. Accounts created by the old SDK or npm tools cannot be selected: choosing one fails, and Codex reports `invalid_request`.
40
- - **Re-authorization:** an account this client created or connected through this flow before can be reused. An account that is connected to a different client is refused ("already connected to another agent"): the user picks or creates another account, or disconnects the other client on the website first.
40
+ - **Re-authorization:** an account created or connected through this flow before can be reused, including one that another agent is connected to. Both agents then work on it.
41
41
  - **Account list full:** the user deletes a few unused old accounts, then creates a new one. Do not fall back to an old-SDK account.
42
42
 
43
43
  ## Client ids
@@ -57,7 +57,7 @@ Any client that supports MCP with OAuth can connect; it does not have to be on a
57
57
 
58
58
  A client that is not in the table presents its own id or registers itself; nothing needs to be set by hand.
59
59
 
60
- Keep the id the same from one authorization to the next. An id spelled differently counts as a different client, and the account then refuses it as "already connected to another agent".
60
+ Keep the id the same from one authorization to the next, so the connection is recognized as the same client each time.
61
61
 
62
62
  ## Codex notes
63
63
 
@@ -8,9 +8,9 @@ Find the situation in the table and take the action. If nothing matches and the
8
8
  |---|---|
9
9
  | The three server tools are missing | Connection problem: follow `first-time-setup.md` from "Check that the tools are available". Do not open authorization, install `@bitget-ai/bitget-agent-mcp`, or reinstall this skill |
10
10
  | Not logged in, and the user wants to trade or query the account | Follow `authorization.md` |
11
- | A private call returns unauthorized or HTTP 401, or the user disconnected on the web | The token is invalid. Stop trading and follow `authorization.md` |
11
+ | A private call returns unauthorized or HTTP 401, or this agent was disconnected | The token is invalid. Stop trading and follow `authorization.md` |
12
12
  | The user cancelled, or the callback did not complete | Say "Authorization was not completed. Should I start again?" |
13
- | Authorization is refused with "already connected to another agent" | The account is connected to a different client. A client id spelled differently counts as a different client, so in Cursor check that `auth.CLIENT_ID` in `mcp.json` is exactly `cursor`. Otherwise the user picks or creates another Agentic account, or disconnects the other client on the website. Do not retry the same account |
13
+ | The user asks to disconnect or log out | `do_request_open_api(operation_id="disconnectAgent", confirm=true)`, after telling them what it does ("Account rules" in `SKILL.md`). Do not send them to the Bitget website |
14
14
  | The flow finishes but a private call still says not logged in | Wait a few seconds and retry the read-only call once. If it still fails, run one fresh authorization round |
15
15
  | Codex: the authorization link does not complete | The `codex mcp login` command that printed it is no longer running. Run it again and keep it running until the user finishes ("Codex notes" in `authorization.md`) |
16
16
  | Selecting an existing account on the authorization page fails | The account was created by the old SDK or npm tools. The user creates a new account |