@bitget-ai/bitget-agent-skill 4.0.4 → 4.1.1

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,70 @@ 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.1.1] - 2026-11-25
9
+
10
+ Publish only after the cloud MCP's `search` takes `skill` and the preview of
11
+ `placeOrder` carries `preflight`.
12
+
13
+ ### Changed
14
+
15
+ - **The skill reports its version.** It tells the agent to pass
16
+ `skill="4.1.1"` on `search`. The skill is a file on the user's machine, so
17
+ until now nothing showed how many agents follow which version; the MCP
18
+ keeps the value with its record of the call. Nothing else is sent, and the
19
+ result of the search does not change.
20
+ - **Previewing an order checks it.** The preview of `placeOrder` now carries
21
+ `preflight`: the server reads the symbol's precision and minimum, the
22
+ price, and the account's position mode, balance and position, and lists
23
+ what the exchange would refuse. The skill says to correct those problems
24
+ and no longer tells the agent to read the position mode itself before a
25
+ futures order.
26
+ - **One call for the state of the account.** Where the skill says to check
27
+ positions and open orders before a write, it names `getAccountSnapshot`.
28
+ - **`instructed_at`.** When a write carries out a signal or a scheduled
29
+ rule, the skill says to pass the time that instruction was issued.
30
+
31
+ ## [4.1.0] - 2026-11-24
32
+
33
+ Publish only after the cloud MCP lists `search`, `read`, and `write`.
34
+
35
+ ### Changed
36
+
37
+ - **The skill uses the MCP's new tools: `search`, `read`, `write`.** `search`
38
+ finds an action by plain words and returns what it takes, the rules that
39
+ are particular to it, and a call that works; `read` runs queries and
40
+ changes nothing; `write` runs actions that change the account. They
41
+ replace `guide`, `do_query`, and `do_request_open_api`, which the server
42
+ keeps for clients that have not updated. The skill says how to carry on
43
+ with the older tools when a chat still has an old tool list.
44
+ - **Rules of single actions are no longer in the skill.** Which parameter a
45
+ query takes, how a stock token is written, which interval spellings exist:
46
+ these are in the `params` and `notes` of each search result, kept with the
47
+ server and tested against the exchange. The skill keeps what holds for
48
+ every action: search first, take parameters from the result, preview and
49
+ confirm writes, never resend a write whose outcome is unknown, the account
50
+ rules, and disconnecting.
51
+ - **Writes.** The preview may carry `warnings`; the skill says to correct the
52
+ call before showing the confirmation card. For futures it says to read the
53
+ account's position mode first.
54
+ - **Troubleshooting.** New rows for a call refused before sending
55
+ (`notSent`), for an action sent to the wrong tool, and for a chat with an
56
+ old tool list.
57
+
58
+ ### Removed
59
+
60
+ - The stock-token paragraph drafted for 4.0.5 (never published). Part of it
61
+ was wrong: `get-reality-orderbook` and `get-reality-fills` are the
62
+ market's order book and trades, open to whitelisted institutions only, not
63
+ the account's own orders and fills. The correct rules are in the server's
64
+ definitions.
65
+
66
+ ### Existing users
67
+
68
+ Update with `npx @bitget-ai/bitget-agent-skill@latest --target all`. Nothing
69
+ else changes: the same MCP address, the same login. Until then the older
70
+ tools keep working.
71
+
8
72
  ## [4.0.4] - 2026-11-24
9
73
 
10
74
  ### Fixed
package/README.md CHANGED
@@ -65,12 +65,12 @@ Installing the skill needs Node.js 20 or later. An AI app that cannot run comman
65
65
  ```mermaid
66
66
  graph LR
67
67
  A[You<br/>natural language] --> B[AI agent<br/>with this skill]
68
- B -->|guide / do_query / do_request_open_api| C[Bitget cloud MCP<br/>agent.bitget.com/mcp]
68
+ B -->|search / read / write| C[Bitget cloud MCP<br/>agent.bitget.com/mcp]
69
69
  C --> D[Bitget]
70
70
  style B fill:#28a745,stroke:#333,stroke-width:2px,color:#fff
71
71
  ```
72
72
 
73
- - **Three tools.** The MCP exposes `guide` (find what is available), `do_query` (market and reference data), and `do_request_open_api` (trading and account actions).
73
+ - **Three tools.** The MCP exposes `search` (find what you need by words, with what the call takes and a call that works), `read` (queries: market data, balances, positions, orders), and `write` (actions that change the account). The earlier `guide`, `do_query`, and `do_request_open_api` still work during the transition; skill 4.1.0 and later uses the new three.
74
74
  - **Market data needs no login.** Trading, account, and Reality / rToken actions need you to authorize once in the browser.
75
75
  - **Login is an OAuth token held by your AI client's MCP connection.** It is not an API key, and it is not written into the skill files.
76
76
  - **Writes are previewed first.** The skill has the AI preview a write with `dry_run`, show you a confirmation card, and only execute after you agree. High-risk actions such as cancel-all, close-all, set leverage, and repay also require an explicit `confirm` on the server. When the exchange gives no answer to a write, the AI is told not to retry and to check whether the order exists.
@@ -84,7 +84,7 @@ One skill, `bitget-agentic`, following the [Agent Skills](https://agentskills.io
84
84
 
85
85
  | File | Purpose |
86
86
  |---|---|
87
- | `SKILL.md` | The three tools, where to start, the `guide` → execute workflow, write safety, and account rules. |
87
+ | `SKILL.md` | The three tools, where to start, the `search` → `read` / `write` workflow, write safety, and account rules. |
88
88
  | `references/first-time-setup.md` | Install the skill, register the MCP in each client, and check that the tools are available. |
89
89
  | `references/authorization.md` | Opening authorization in each client, client ids, Codex notes, network and proxy. |
90
90
  | `references/legacy-migration.md` | Detecting an old local Bitget MCP setup and what to tell the user. |
@@ -185,7 +185,7 @@ When you authorize for the first time, create a **new** Agentic account. Account
185
185
 
186
186
  Re-run the installer, then restart your AI tool. Check that `SKILL.md` exists in the location shown in [Installation](#installation).
187
187
 
188
- ### The AI cannot see `guide`, `do_query`, or `do_request_open_api`
188
+ ### The AI cannot see `search`, `read`, or `write`
189
189
 
190
190
  The MCP is not registered in this client, or an old local Bitget MCP is still in the config and shadows the new one. Register the address as in [Connect the Cloud MCP](#connect-the-cloud-mcp) and remove the old entry.
191
191
 
package/VERSION CHANGED
@@ -1 +1 @@
1
- 4.0.4
1
+ 4.1.1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bitget-ai/bitget-agent-skill",
3
- "version": "4.0.4",
3
+ "version": "4.1.1",
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",
@@ -209,8 +209,10 @@ function validateSkill(dirName) {
209
209
  return errors;
210
210
  }
211
211
 
212
- // One version, written in four places. A release where they disagree publishes
213
- // a package whose skill reports a different version than npm does.
212
+ // One version, written in four places, and a fifth inside the skill's text:
213
+ // the version it tells the agent to report on search (skill="x.y.z"). A
214
+ // release where they disagree publishes a package whose skill reports a
215
+ // different version than npm does.
214
216
  function versionErrors(skillDirs) {
215
217
  const errors = [];
216
218
  const read = (file) => (existsSync(join(ROOT, file)) ? readFileSync(join(ROOT, file), "utf8") : null);
@@ -235,6 +237,15 @@ function versionErrors(skillDirs) {
235
237
  else if (found[1] !== version) {
236
238
  errors.push(`skills/${dir}/SKILL.md metadata.version is ${found[1]}, VERSION is ${version}`);
237
239
  }
240
+ const reported = [...skill.matchAll(/skill="([^"]+)"/g)].map((m) => m[1]);
241
+ if (reported.length === 0) {
242
+ errors.push(`skills/${dir}/SKILL.md does not tell the agent to pass skill="${version}" on search`);
243
+ }
244
+ for (const value of reported) {
245
+ if (value !== version) {
246
+ errors.push(`skills/${dir}/SKILL.md says skill="${value}", VERSION is ${version}`);
247
+ }
248
+ }
238
249
  }
239
250
 
240
251
  const changelog = read("CHANGELOG.md");
@@ -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.4"
23
- updated: "2026-11-19"
22
+ version: "4.1.1"
23
+ updated: "2026-11-25"
24
24
  mcp-server: "https://agent.bitget.com/mcp"
25
25
  ---
26
26
 
@@ -30,28 +30,30 @@ The Bitget cloud MCP at `https://agent.bitget.com/mcp` lets an AI agent trade an
30
30
 
31
31
  There are no API keys in this flow. Never ask for, create, paste, or configure one (`BITGET_API_*`), and never copy the token into a file.
32
32
 
33
- The server has exactly three tools. This skill registers the server as `bitget-mcp-server`:
33
+ Use these three tools. This skill registers the server as `bitget-mcp-server`:
34
34
 
35
35
  | Tool | Purpose | Login needed |
36
36
  |---|---|---|
37
- | `bitget-mcp-server:guide` | Discover what is available and get the id to call | No |
38
- | `bitget-mcp-server:do_query` | Market and reference data, by `entry_id` | No |
39
- | `bitget-mcp-server:do_request_open_api` | Bitget market, trading, and account actions, by `operation_id` | Trading, account, and Reality / rToken: yes. Market: no |
37
+ | `bitget-mcp-server:search` | Find what you need by words, with what the call takes and a call that works | No |
38
+ | `bitget-mcp-server:read` | Run a query by name: prices, order book, balances, positions, orders, company data. Changes nothing | Account queries and stock-token company data: yes. Market data: no |
39
+ | `bitget-mcp-server:write` | Run an action that changes the account: orders, positions, settings | Yes |
40
40
 
41
- The rest of this skill writes the tool names without the server prefix. Anything else, including `mcp_auth`, is not a server tool.
41
+ The rest of this skill writes the tool names without the server prefix. `mcp_auth` and anything else not listed by the client is not a server tool.
42
+
43
+ The server also lists `guide`, `do_query`, and `do_request_open_api`. They are the older form of the same three and still work; use them only when `search` is not in this chat's tool list (an old tool list: reconnect the MCP or start a new chat when convenient). `guide` finds an id, `do_query` and `do_request_open_api` run it.
42
44
 
43
45
  Priorities, in order: safety, then a clear account state, then speed.
44
46
 
45
47
  ## Start here
46
48
 
47
- 1. **Are the three tools available in this chat?** Try `guide()`. If they are not, the MCP is not connected. That is a connection problem, not an authorization failure: follow [references/first-time-setup.md](references/first-time-setup.md).
48
- 2. **Does the request need login?** Market data does not, so answer it right away. For trading, account, or Reality requests, check login with one read-only account call:
49
+ 1. **Are the tools available in this chat?** Try `search(query="account balance", skill="4.1.1")`. If the tools are not there, the MCP is not connected. That is a connection problem, not an authorization failure: follow [references/first-time-setup.md](references/first-time-setup.md).
50
+ 2. **Does the request need login?** Market data does not, so answer it right away. For trading, account, or stock-token company data, check login with one read-only account call:
49
51
 
50
52
  ```
51
- do_request_open_api(operation_id="getAccountAssets", params={})
53
+ read(name="getAccountAssets", params={})
52
54
  ```
53
55
 
54
- (`getDeductInfo` also works.) Success means logged in. An unauthorized or HTTP 401 result means not logged in: follow [references/authorization.md](references/authorization.md). Start authorization unless the user explicitly says not to. "Just check the market first" is not a refusal.
56
+ Success means logged in. An unauthorized or HTTP 401 result means not logged in: follow [references/authorization.md](references/authorization.md). Start authorization unless the user explicitly says not to. "Just check the market first" is not a refusal.
55
57
  3. **Logged in:** use the two sections below.
56
58
 
57
59
  If you were told to read this file right after installing it, read all of it and continue in the same chat.
@@ -59,21 +61,34 @@ If you were told to read this file right after installing it, read all of it and
59
61
  ## Calling the MCP
60
62
 
61
63
  ```
62
- Market data: guide(surface="market_data") → entry_id → do_query(entry_id, params)
63
- Trade/account: guide(surface="open_api") → operation_id → do_request_open_api(operation_id, params)
64
+ search(query="BTC price") → name, params, notes, call → read(name, params)
65
+ search(query="place order") → name, params, notes, call → write(name, params, dry_run=true)
64
66
  ```
65
67
 
66
- Get every id from `guide`. Do not guess an `entry_id` or `operation_id`. If `guide` does not list something, tell the user it is not available. When an error carries `suggestions`, pick from those.
68
+ **Pass `skill="4.1.1"` on every `search` call.** It is this skill's version; it tells Bitget which skill versions are in use and changes nothing in the result.
69
+
70
+ **Search first, with the plain words of the thing:** "account balance", "open positions", "BTC candles", "stop loss", "funding rate", "NVDA company overview". Do not guess a name or a parameter, and do not rely on what you remember of Bitget's API: what an action takes is in the search result, and it is the server's current definition.
71
+
72
+ Each result gives:
73
+
74
+ - `name` and `tool`: what to call, through `read` or `write`.
75
+ - `params`: what it takes. The ones marked `required` must be sent.
76
+ - `notes`: rules that are particular to this action. Read them before the first call.
77
+ - `call`: the arguments of a call that works. Copy it and change the values. `exampleTested: false` means it is from Bitget's documentation and was not run.
78
+ - `notAvailable`: what was asked for is not offered. Tell the user; do not try something near it.
67
79
 
68
- Parameters for `do_request_open_api` use Bitget UTA v3 names. The two that go wrong most:
80
+ This skill does not repeat the rules of single actions (which parameter a query takes, how a stock token is written, which interval spellings exist). They are in `params` and `notes`, and they change with the server. What holds for every action:
69
81
 
70
- - **`category`**, not `productType`: `SPOT`, `MARGIN`, `USDT-FUTURES`, `COIN-FUTURES`, or `USDC-FUTURES`. Most trade and account actions need it.
71
- - **`qty`**, not `size`. It is in base coin (for example BTC), except spot / margin market buys and `COIN-FUTURES`, where it is in quote coin (for example USDT). Round it to the symbol's precision from `getInstruments`.
82
+ - Parameter names are Bitget UTA v3: `category` (`SPOT`, `MARGIN`, `USDT-FUTURES`, `COIN-FUTURES`, `USDC-FUTURES`) and `qty`, not `productType` and `size`.
83
+ - A call that lacks a required parameter is refused before it is sent (`notSent: true`), with `missing` and `expects`. Correct it from `expects`; nothing happened.
84
+ - When a result carries `adjusted`, the server corrected a parameter and says how to write it next time.
85
+ - When an error carries `hint`, do what it says. When it carries `suggestions`, pick from those.
86
+ - If `search` finds nothing for a plain word, the thing is not available here: tell the user.
72
87
 
73
88
  Not available through this MCP:
74
89
 
75
90
  - Withdrawals, transfers from the main account into the sub-account, and changes to main-account email, phone, or 2FA.
76
- - US stock direct, CFD, tax, staking / lending, and institutional lending.
91
+ - Trading US stocks themselves (stock tokens are available: search "stock token"), CFD, tax, staking / lending, and institutional lending.
77
92
 
78
93
  If the balance is insufficient, the user deposits from the main account on the Bitget website.
79
94
 
@@ -81,35 +96,36 @@ If the balance is insufficient, the user deposits from the main account on the B
81
96
 
82
97
  Writes move real funds, so each one takes three steps:
83
98
 
84
- 1. **Preview** with `dry_run: true`.
85
- 2. **Show a confirmation card:** symbol, side, size with its unit (see `qty` above: "0.01 BTC" and "0.01 USDT" are different orders), price type, account, mainnet, liquidation price when available, and "Confirm execution?".
86
- 3. **Execute** with `confirm: true` only after the user clearly replies "yes" or "confirm". "Just do it for me" is not confirmation. Pass `note` with the write: one sentence on why. It is kept with the record of the call.
99
+ 1. **Preview** with `write(name, params, dry_run=true)`. If the preview carries `warnings`, correct the call first. The preview of an order also carries `preflight`: the server has read the symbol's precision and minimum, the current price, and this account's position mode, balance and open position, and lists under `problems` what the exchange would refuse as written. Correct every problem before going on; do not read those things yourself first.
100
+ 2. **Show a confirmation card:** symbol, side, size with its unit, price type, account, mainnet, liquidation price when available, and "Confirm execution?". The unit of `qty` is in the action's `notes`: "0.01 BTC" and "0.01 USDT" are different orders.
101
+ 3. **Execute** with `write(name, params)` only after the user clearly replies "yes" or "confirm"; add `confirm=true` when the action is high-risk. "Just do it for me" is not confirmation. Pass `note` with the write: one sentence on why. It is kept with the record of the call. When the write carries out a signal, an alert or a scheduled rule, also pass `instructed_at`: the time that instruction was issued.
87
102
 
88
103
  The server refuses high-risk writes (cancel all, close all, countdown cancel-all, set leverage, repay, holding mode, account mode) without `confirm: true`.
89
104
 
90
- **If a write returns `outcomeUnknown: true`, do not submit it again.** The exchange gave no readable answer, so the order may or may not exist, and a second submission can become a second order. Look it up with the `clientOid` from the result (`getOrderDetails`), or list open orders and positions, then tell the user what you found.
105
+ **If a write returns `outcomeUnknown: true`, do not submit it again.** The exchange gave no readable answer, so the order may or may not exist, and a second submission can become a second order. Look it up with the `clientOid` from the result (`read(name="getOrderDetails", params={"clientOid": ...})`), or list open orders and positions, then tell the user what you found.
91
106
 
92
107
  - Check positions before closing one.
93
108
  - After a risk-type error, do not add size.
94
- - Batch place, cancel, or modify (`batchOrder`, `batchCancel`, `batchModifyOrders`): pass `params` as a JSON array of order objects, or as `{"orderList": [...]}` / `{"orders": [...]}`.
109
+ - A futures order is written differently in one-way and hedge position mode. The preview says which mode the account is in and whether the order fits it.
110
+ - Batch place, cancel, or modify (`batchOrder`, `batchCancel`, `batchModifyOrders`): pass `params` as a JSON array of order objects.
95
111
  - When rate limited, retry later. Do not re-authorize.
96
112
 
97
113
  ## Account rules
98
114
 
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.
115
+ - **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 (`read(name="getAccountSnapshot")` returns balance, positions and open orders in one call); do not rely on what you remember, and do not assume an order you did not place is a mistake.
100
116
  - **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.
101
117
  - 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
118
  - **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:
103
119
 
104
120
  ```
105
- do_request_open_api(operation_id="disconnectAgent", confirm=true)
121
+ write(name="disconnectAgent", confirm=true)
106
122
  ```
107
123
 
108
124
  Then clear this client's own copy of the login, or it keeps trying the old one: in Codex run `codex mcp logout bitget-mcp-server` (use the name the server was added under). To connect again later: `codex mcp login bitget-mcp-server`.
109
125
 
110
126
  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.
111
127
 
112
- - **Other agents on the account.** A result may carry `connectedAgents`: the other agents connected to this account, sent when one joins or leaves. Tell the user in one sentence. If one is marked `new`, say so plainly: the user may not have connected it. An order whose `clientOid` starts with another agent's `agentTag` is that agent's order: do not cancel or change it unless the user asks. `do_request_open_api(operation_id="getConnectedAgents")` lists every connection with when it was last active. To disconnect one of them at the user's request, pass its tag: `do_request_open_api(operation_id="disconnectAgent", params={"agentTag": "<tag>"}, confirm=true)`.
128
+ - **Other agents on the account.** A result may carry `connectedAgents`: the other agents connected to this account, sent when one joins or leaves. Tell the user in one sentence. If one is marked `new`, say so plainly: the user may not have connected it. An order whose `clientOid` starts with another agent's `agentTag` is that agent's order: do not cancel or change it unless the user asks. `read(name="getConnectedAgents")` lists every connection with when it was last active. To disconnect one of them at the user's request, pass its tag: `write(name="disconnectAgent", params={"agentTag": "<tag>"}, confirm=true)`.
113
129
  - **When a private call says why it is unauthorized,** tell the user that reason (for example "disconnected at the user's request", "disconnected by another agent", "not used for a long time") before you offer to authorize again.
114
130
 
115
131
  - **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.
@@ -133,7 +149,7 @@ Look the situation up in [references/troubleshooting.md](references/troubleshoot
133
149
 
134
150
  | File | Read it when |
135
151
  |---|---|
136
- | [references/first-time-setup.md](references/first-time-setup.md) | The three tools are missing, or the user is connecting for the first time |
152
+ | [references/first-time-setup.md](references/first-time-setup.md) | The tools are missing, or the user is connecting for the first time |
137
153
  | [references/authorization.md](references/authorization.md) | A private call is unauthorized, the user asks to re-authorize, or the client is Codex |
138
154
  | [references/legacy-migration.md](references/legacy-migration.md) | Before opening authorization, or when old Bitget config is suspected |
139
155
  | [references/troubleshooting.md](references/troubleshooting.md) | Any failure, or the user wants to delete an old account or API key |
@@ -16,7 +16,7 @@ Follow this when a private call returns unauthorized or HTTP 401, when the user
16
16
  1. **Check for legacy MCP config** (`legacy-migration.md`). If you find any, send the reminder from that file and carry on. Stop only if the user explicitly says they do not want to upgrade.
17
17
  2. **Warn the user if this client is already logged in:** authorizing switches this client to the account they pick. If that is a different account, ask them to deal with what this client was managing on the old one first.
18
18
  3. **Open authorization** from the client, as described below. Tell the user a browser window will open and that no API key is involved. Never fill in passwords for them.
19
- 4. **Verify** with `do_request_open_api(operation_id="getAccountAssets", params={})` (or `getDeductInfo`). Finishing the web page is not proof of login. If the first attempt says `Authentication required`, wait a few seconds and retry once.
19
+ 4. **Verify** with `read(name="getAccountAssets", params={})`. Finishing the web page is not proof of login. If the first attempt says `Authentication required`, wait a few seconds and retry once.
20
20
  5. **Tell the user:**
21
21
 
22
22
  > Authorization complete. An API Key will not be sent to you. Login state stays on the cloud MCP connection — you do not need to hand me any secret.
@@ -1,12 +1,12 @@
1
1
  # First-time setup
2
2
 
3
- Follow this when `guide`, `do_query`, and `do_request_open_api` are not available in the chat, or the user is connecting a Bitget Agentic account for the first time. Stay in the current chat unless step 3 says a new session is needed.
3
+ Follow this when `search`, `read`, and `write` are not available in the chat, or the user is connecting a Bitget Agentic account for the first time. Stay in the current chat unless step 3 says a new session is needed.
4
4
 
5
5
  ```
6
6
  Setup progress:
7
7
  - [ ] 1. Skill installed and read
8
8
  - [ ] 2. Cloud MCP registered in this client
9
- - [ ] 3. guide() works in this chat
9
+ - [ ] 3. search() works in this chat
10
10
  - [ ] 4. Legacy MCP config checked
11
11
  - [ ] 5. Authorized and verified
12
12
  ```
@@ -63,7 +63,7 @@ Nothing else needs to be configured. Recent Codex versions start the login right
63
63
 
64
64
  ## 3. Check that the tools are available
65
65
 
66
- Call `guide()` in this chat.
66
+ Call `search(query="account balance")` in this chat.
67
67
 
68
68
  - **Cursor and most other clients** load a newly registered server right away.
69
69
  - **Claude Code and Codex** load it when the next session starts. If you registered the server in this session, the tools will not appear here. First do what does not need them: step 4, and in Codex also the login from step 5. Then ask the user to start a new session and send "continue the Bitget setup". In the new session, start again from this step.
@@ -74,7 +74,7 @@ If the tools are missing in a session that started after the server was register
74
74
  2. Only when there is no legacy config and the tools are still missing, ask the user to open a new chat and send:
75
75
 
76
76
  ```
77
- I added https://agent.bitget.com/mcp to my MCP config, but this chat still cannot call guide / do_query / do_request_open_api. Check whether an old @bitget-ai/bitget-agent-mcp server or a local MCP with hand-filled API keys is still configured. If so, tell me how to remove it, then confirm the new connection.
77
+ I added https://agent.bitget.com/mcp to my MCP config, but this chat still cannot call search / read / write. Check whether an old @bitget-ai/bitget-agent-mcp server or a local MCP with hand-filled API keys is still configured. If so, tell me how to remove it, then confirm the new connection.
78
78
  ```
79
79
 
80
80
  Missing tools are a connection problem. Do not open authorization, install `@bitget-ai/bitget-agent-mcp`, or reinstall this skill to fix them.
@@ -12,7 +12,7 @@ Find the situation in the table and take the action. If nothing matches and the
12
12
  | The user cancelled, or the callback did not complete | Say "Authorization was not completed. Should I start again?" |
13
13
  | A result carries `connectedAgents` | Tell the user who else is connected, and point out any marked `new`. Leave their orders alone ("Account rules" in `SKILL.md`) |
14
14
  | The user asks to remove an agent they no longer use | `getConnectedAgents`, show the list with last activity, then `disconnectAgent` with that agent's `agentTag` and `confirm=true` after the user picks one |
15
- | 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. In Codex, then run `codex mcp logout bitget-mcp-server` |
15
+ | The user asks to disconnect or log out | `write(name="disconnectAgent", confirm=true)`, after telling them what it does ("Account rules" in `SKILL.md`). Do not send them to the Bitget website. In Codex, then run `codex mcp logout bitget-mcp-server` |
16
16
  | Codex keeps saying the server needs authentication after a disconnect | Codex is still trying the old login. Run `codex mcp logout bitget-mcp-server`, then `codex mcp login bitget-mcp-server` to connect again |
17
17
  | 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 |
18
18
  | 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`) |
@@ -24,11 +24,14 @@ Find the situation in the table and take the action. If nothing matches and the
24
24
  | The authorization page returns JSON 422 and OAuth parameters such as `response_type`, `client_id`, `redirect_uri`, `state`, or `code_challenge` are missing | The web login redirect dropped the parameters; the MCP is fine. Run one fresh authorization round. If it repeats, the user clears the site's login state and tries again |
25
25
  | The token exchange returns 403 with an HTML body | Usually a web firewall block, not an application error. Tell the user; do not treat it as an expired token |
26
26
  | Rate limited | Retry later. Do not re-authorize |
27
- | `Parameter ... cannot be empty` (40019) or `Parameter verification failed` (400172) | A required parameter is missing or has an old name. Check `category` and `qty` ("Calling the MCP" in `SKILL.md`), then the action's detail from `guide(surface="open_api", operation_id=...)`. Do not re-authorize |
27
+ | A call is refused with `notSent: true` and `missing` | A required parameter is absent. Nothing was sent. Add it from `expects` in the same result and call again |
28
+ | `Parameter ... cannot be empty` (40019) or `Parameter verification failed` (400172) | A parameter is missing, has an old name, or is in the wrong form. Compare the call with `expects` in the result, or with `search(query="<the action's name>")`. Do not re-authorize |
28
29
  | `checkBDScale` / `checkScale` error on an order (40808) | `qty` has more decimals than the symbol allows. Read the precision with `getInstruments`, round down, preview again |
29
30
  | `less than the minimum amount` (45110) | The order is below the symbol's minimum. Often `qty` was given in the wrong unit: a spot market buy takes quote coin. Tell the user the minimum; do not raise the size on your own |
30
31
  | `The user must bind the phone or Google` (40016) | The user binds a phone number or Google Authenticator in their Bitget account security settings, then retries. You cannot do it for them |
31
- | `Unknown action` | Use a name from the error's `suggestions`, or list the domain with `guide`. Do not guess again |
32
+ | `Unknown action` | Use a name from the error's `suggestions`, or `search` for the thing in plain words. Do not guess again |
33
+ | `read` says the name "changes the account", or `write` says it "is a query" | The action belongs to the other tool: the message gives the call |
34
+ | `search` is not in the tool list, but `guide` is | This chat has an old tool list. The older tools still work (`guide`, then `do_query` or `do_request_open_api`); reconnect the MCP or start a new chat when convenient |
32
35
  | A write returns `outcomeUnknown: true` | It may or may not have been executed. Do not submit it again. Look it up with the returned `clientOid` (`getOrderDetails`) or list open orders and positions, then tell the user what you found |
33
36
  | A result has `retryable: true` (`upstreamUnreachable`, `upstreamTimeout`, `authUnavailable`) | Nothing changed. Retry in a few seconds. Do not re-authorize |
34
37
  | Insufficient balance | The user deposits from the main account on the Bitget website |