Skip to content

Commit 2311bb3

Browse files
committed
Merge remote-tracking branch 'origin/main' into claude/project-thread-70v39y
2 parents 5c5d2de + 6ddf827 commit 2311bb3

60 files changed

Lines changed: 3256 additions & 348 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
---
2+
'@objectstack/mcp': patch
3+
'@objectstack/platform-objects': patch
4+
'@objectstack/runtime': patch
5+
'@object-ui/app-shell': patch
6+
'@object-ui/i18n': patch
7+
---
8+
9+
feat: put Connect an AI Assistant where each person looks, and call it that
10+
11+
Clause-②: no
12+
Metadata-protocol: none
13+
14+
The Connect an Agent page is now Connect an AI Assistant (连接 AI 助手, AI アシスタントを接続, Conectar un asistente de IA): the page title, its header and both of its navigation entries, in every shipped language. "Agent" already names the agents an author builds in Studio, and this page connects the AI assistant a person uses, such as Claude, Doubao or Cursor.
15+
16+
Where to find it:
17+
18+
- **Every signed-in person**: the avatar menu has a Connect an AI Assistant item, under Profile. In the Account app the entry has a group of its own, AI Assistant, open by default, instead of sitting inside the collapsed Developer group.
19+
- **Platform administrators**: in Setup the entry is in the top group, Overview, under System Overview, instead of near the bottom of Integrations. Who sees it does not change: both groups need `manage_platform_settings`.
20+
21+
All three doors appear only where the MCP server is enabled; with `OS_MCP_SERVER_ENABLED=false` the page, both menu entries and the avatar item are absent. The page address (`page/connect_agent`) and the nav item id (`nav_connect_agent`) are unchanged, so bookmarks and links keep working. The stdio start-up refusal and the API-key session refusal name the new page and paths.
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
---
2+
'@object-ui/app-shell': patch
3+
'@object-ui/i18n': patch
4+
---
5+
6+
feat(app-shell): Connect an Agent asks which AI client you use and shows only that client's steps
7+
8+
Clause-②: no
9+
Metadata-protocol: none
10+
11+
The Connect an Agent page no longer lays out every client at once. Under the endpoint and the SKILL.md download, which stay on top for everyone, the page asks which AI assistant you use (Claude, Codex, Cursor, WorkBuddy, Doubao Work, QwenWork) and shows that one's steps; switching is one click, and this browser remembers your choice (`os:pref:connect.client` in the console's workspace preference store). The API key form for scripts and CI moves out of the client list into a collapsed "Advanced: scripts and CI" section at the bottom. The three new strings ship in all ten console languages.

‎content/docs/ai/agents.mdx‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ architecture.
5353
Every deployment serves MCP at `/api/v1/mcp` by default (a core platform
5454
capability — set `OS_MCP_SERVER_ENABLED=false` to opt out), with two
5555
authentication tracks: The in-product entry point is the
56-
**Connect an Agent** page: per-client connect snippets, the portable
56+
**Connect an AI Assistant** page: per-client connect snippets, the portable
5757
SKILL.md download (`GET /api/v1/mcp/skill`), and API-key minting.
5858

5959
- **OAuth 2.1 (interactive clients — recommended).** Each deployment is its

‎content/docs/ai/connect-mcp.mdx‎

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ about the only thing left to do: **connecting a client and proving it works**.
1313
<Callout type="info">
1414
To turn the surface off, set `OS_MCP_SERVER_ENABLED=false` — the endpoint then
1515
returns 404 to a caller with an API key or token (an anonymous caller still gets
16-
401 first, with no OAuth metadata advertised), and the **Connect an Agent** page
16+
401 first, with no OAuth metadata advertised), and the **Connect an AI Assistant** page
1717
disappears with it, along with both its Setup and Account navigation entries. See
1818
[environment variables](/docs/deployment/environment-variables#mcp-server).
1919
</Callout>
@@ -95,7 +95,7 @@ client version offers none, add the request header
9595
| **Doubao Work** (豆包工作) | Skills · Connectors → New → New custom connector | Name `objectstack`, transport `HTTP`, server URL `<MCP URL>` |
9696
| **QwenWork** (千问办公) | Extensions → Connectors → + Add → Paste JSON config | `{ "mcpServers": { "objectstack": { "type": "streamable-http", "url": "<MCP URL>" } } }` |
9797

98-
The **Connect an Agent** page renders each of these with your deployment's URL
98+
The **Connect an AI Assistant** page renders each of these with your deployment's URL
9999
filled in. A client task that runs in the vendor's cloud, rather than on your
100100
machine, reaches only a deployment on public HTTPS — the same constraint as
101101
[claude.ai](#claude-desktop-and-claudeai).
@@ -118,13 +118,14 @@ Clients that read an `mcpServers` map connect the same way. With an API key:
118118

119119
## Headless: API keys
120120

121-
Mint a key from the **Connect an Agent** page in the Console. One page, two
121+
Mint a key from the **Connect an AI Assistant** page in the Console. One page, two
122122
doors — which one you have depends on your permissions:
123123

124-
- **Any signed-in user** — open the avatar menu (top right) → **Profile** to
125-
enter the Account app, then **Developer → Connect an Agent** in its sidebar.
124+
- **Any signed-in user** — open the avatar menu (top right) → **Connect an AI
125+
Assistant**. It opens the page in the Account app, whose sidebar lists it
126+
under **AI Assistant**.
126127
Direct link: `/_console/apps/com.objectstack.account/page/connect_agent`.
127-
- **Platform admins** — **Setup → Connect an Agent**, at
128+
- **Platform admins** — **Setup → Overview → Connect an AI Assistant**, at
128129
`/_console/apps/com.objectstack.setup/page/connect_agent`, reached from the
129130
Setup sidebar. The Setup app requires the `setup.access` permission, so this
130131
door alone is not enough for an ordinary member; the Account one needs none.

‎content/docs/api/index.mdx‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -66,9 +66,9 @@ permission model grants anonymous users. Two ways to authenticate:
6666
`curl -c cookies.txt` / `-b cookies.txt`. On a fresh dev database the seeded
6767
admin is `admin@objectos.ai` / `admin123`.
6868
- **API key** (scripts, CI, headless agents): mint one with `POST /api/v1/keys`
69-
(the key is shown once), or from the **Connect an Agent** page in the Console
70-
— **Account → Developer** for any signed-in user, **Setup → Connect an Agent**
71-
for platform admins. Minting needs a signed-in session: a request
69+
(the key is shown once), or from the **Connect an AI Assistant** page in the Console
70+
— the avatar menu or **Account → AI Assistant** for any signed-in user,
71+
**Setup → Overview** for platform admins. Minting needs a signed-in session: a request
7272
authenticated with an API key is refused `403 PERMISSION_DENIED`, so a key
7373
cannot mint another key. Send the key as `x-api-key: osk_…` or
7474
`Authorization: Bearer osk_…`. Keys expire (90 days by default, at most a

‎content/docs/deployment/environment-variables.mdx‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -292,7 +292,7 @@ OS_MCP_STDIO_ENABLED=true OS_MCP_STDIO_API_KEY=osk_... os start # start the lo
292292
|:---|:---|:---|:---|
293293
| `OS_MCP_SERVER_ENABLED` | boolean | `true` | The MCP **HTTP** surface (`/api/v1/mcp`) is a core capability and defaults **on**. Set `false` to disable it (the endpoint answers 404 to a caller with an API key or token and 401 to an anonymous one, and the Connect-an-Agent page disappears). |
294294
| `OS_MCP_STDIO_ENABLED` | boolean | `false` | Auto-start the long-lived **stdio** transport at boot. Opt-in and **stricter** than the HTTP surface. **Requires `OS_MCP_STDIO_API_KEY`** — stdio runs as that key's identity with RLS/FLS/tenant applied; if the key is missing or invalid, boot **fails closed** (stdio refuses to start). See ADR-0101. |
295-
| `OS_MCP_STDIO_API_KEY` | string | — | The `osk_...` API key the **stdio** transport runs as. Resolved through the same verify chain as the HTTP/REST surfaces, so reads are scoped to that identity's permissions. Mint one from the **Connect an Agent** page — **Account → Developer** for any signed-in user, **Setup → Connect an Agent** for platform admins — or `POST /api/v1/keys`. For full authority, mint a key on a platform-admin or dedicated **service** identity — there is deliberately no `system`/unscoped bypass. |
295+
| `OS_MCP_STDIO_API_KEY` | string | — | The `osk_...` API key the **stdio** transport runs as. Resolved through the same verify chain as the HTTP/REST surfaces, so reads are scoped to that identity's permissions. Mint one from the **Connect an AI Assistant** page — the avatar menu or **Account → AI Assistant** for any signed-in user, **Setup → Overview** for platform admins — or `POST /api/v1/keys`. For full authority, mint a key on a platform-admin or dedicated **service** identity — there is deliberately no `system`/unscoped bypass. |
296296
| `OS_MCP_SERVER_NAME` | string | `objectstack` | Server name advertised to MCP clients. |
297297
| `OS_MCP_SERVER_TRANSPORT` | enum | `stdio` | `stdio` \| `http`. Use `http` (Streamable HTTP) for a remote client; `stdio` for a local one. |
298298

‎content/docs/getting-started/build-with-claude-code.mdx‎

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -487,8 +487,9 @@ claude plugin marketplace add objectstack-ai/claude-plugin
487487
```
488488

489489
Every client's copy-paste-ready connect snippet — plus the SKILL.md download and
490-
API-key minting — lives on the **Connect an Agent** page: **Account → Developer**
491-
for any signed-in user, **Setup → Connect an Agent** for platform admins.
490+
API-key minting — lives on the **Connect an AI Assistant** page: the avatar menu
491+
or **Account → AI Assistant** for any signed-in user, **Setup → Overview** for
492+
platform admins.
492493

493494
For headless callers (CI, scripts), mint an API key instead
494495
(`POST /api/v1/keys`, shown once) and pass it as a header:

‎packages/cli/scripts/check-app-nav-i18n.mjs‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ const CLI_ROOT = join(HERE, '..');
145145
//
146146
// `account` satisfied both halves all along and was invisible anyway:
147147
// `@objectstack/mcp` contributes `nav_connect_agent` into
148-
// `grp_account_developer` (`connect-ui.ts`, #16746) and commit c744c0af3 supplied its
148+
// `grp_account_ai_assistant` (`connect-ui.ts`, #16746) and commit c744c0af3 supplied its
149149
// label in all four locales — while this gate printed a BYTE-IDENTICAL
150150
// `OK (…)` line before and after that landing, because every site below
151151
// narrowed to one app name. Widening the three obvious filters is NOT the fix:
@@ -407,8 +407,8 @@ const CONTRIBUTORS = [
407407
source: '@objectstack/mcp (CONNECT_AGENT_UI_BUNDLE)',
408408
// The one contributor that lands in BOTH apps: `CONNECT_AGENT_UI_BUNDLE`
409409
// carries two `navigationContributions` entries pointing at one page —
410-
// `setup`/`group_integrations` for admins and `account`/
411-
// `grp_account_developer` for the per-user half (#16746). The Account half
410+
// `setup`/`group_overview` for admins and `account`/
411+
// `grp_account_ai_assistant` for the per-user half (#16746). The Account half
412412
// is the contribution this gate was blind to.
413413
apps: ['setup', 'account'],
414414
async load() {

‎packages/cli/test/connect-agent-both-halves-wire.pin.test.ts‎

Lines changed: 23 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
// promise TOGETHER:
1010
//
1111
// 1. a PERMISSIONLESS principal gets `200` on `GET /api/v1/meta/apps/account`
12-
// with `nav_connect_agent` present in `grp_account_developer`; and
12+
// with `nav_connect_agent` present in `grp_account_ai_assistant`; and
1313
// 2. that SAME principal still gets `403` / `PERMISSION_DENIED` on
1414
// `GET /api/v1/meta/apps/setup`, with `connect_agent` absent from the body.
1515
//
@@ -215,12 +215,16 @@ describe('#17647 — Connect-an-Agent visibility: BOTH halves, over the wire', (
215215

216216
// `ACCOUNT_APP` declares no `requiredPermissions` — deliberately, so
217217
// every authenticated user reaches their own security surface — and the
218-
// fold puts the contributed entry inside the group that already carries
219-
// `nav_account_api_keys`.
218+
// fold puts the contributed entry into the AI Assistant slot the app
219+
// declares for it (#30895), leaving the collapsed Developer group as
220+
// authored.
221+
expect(groupChildren(account.body?.item, 'grp_account_ai_assistant'))
222+
.toEqual(['nav_connect_agent']);
220223
expect(groupChildren(account.body?.item, 'grp_account_developer'))
221-
.toEqual(['nav_account_api_keys', 'nav_account_oauth_apps', 'nav_connect_agent']);
222-
// The whole served tree, counted: 11 authored ids + the one contributed.
223-
expect(navIds(account.body?.item)).toHaveLength(12);
224+
.toEqual(['nav_account_api_keys', 'nav_account_oauth_apps']);
225+
// The whole served tree, counted: 12 authored ids (the AI Assistant
226+
// slot among them) + the one contributed.
227+
expect(navIds(account.body?.item)).toHaveLength(13);
224228
// …and the entry's TARGET rode along, so the menu item resolves.
225229
expect(JSON.stringify(account.body)).toContain('connect_agent');
226230

@@ -250,20 +254,23 @@ describe('#17647 — Connect-an-Agent visibility: BOTH halves, over the wire', (
250254
expect(setupAllowed.body?.error).toBeUndefined();
251255
const allowedIds = navIds(setupAllowed.body?.item);
252256
expect(allowedIds).toContain('nav_connect_agent');
253-
expect(groupChildren(setupAllowed.body?.item, 'group_integrations'))
254-
.toContain('nav_connect_agent');
257+
// The top group, behind System Overview (#30895).
258+
expect(groupChildren(setupAllowed.body?.item, 'group_overview'))
259+
.toEqual(['nav_system_overview', 'nav_connect_agent']);
255260
// The Setup tree the platform admin is served BY THIS COMPOSITION: 9
256-
// authored groups less `group_approvals`, which nothing contributes
257-
// into and the filter collapses, plus the 23 entries
258-
// `SETUP_NAV_CONTRIBUTIONS` carries, plus the MCP one. (25 until
259-
// #25098 moved the unfiltered Packages entry to Studio; 24 until
260-
// #30204 removed the Feature Flags entry with its namespace.)
261+
// authored groups less `group_approvals` and `group_integrations`,
262+
// which nothing in it contributes into and the filter collapses, plus
263+
// the 23 entries `SETUP_NAV_CONTRIBUTIONS` carries, plus the MCP one.
264+
// (25 until #25098 moved the unfiltered Packages entry to Studio; 24
265+
// until #30204 removed the Feature Flags entry with its namespace; 32
266+
// until #30895 moved the MCP entry out of `group_integrations`, the
267+
// one entry this composition put there.)
261268
// `nav_settings_branding` is not among them, and not because of a
262269
// tenancy wall (this harness boots none): since #24766 it is
263270
// contributed by `@objectstack/service-settings` together with the
264271
// `branding` namespace, offered only where no organization wall stands,
265272
// and this harness composes platform-objects and the MCP bundle alone.
266-
expect(allowedIds).toHaveLength(32);
273+
expect(allowedIds).toHaveLength(31);
267274
expect(allowedIds).not.toContain('nav_settings_branding');
268275
// The two per-user stores are reached from the User record page, not
269276
// from Setup's menu (#23803).
@@ -286,8 +293,8 @@ describe('#17647 — Connect-an-Agent visibility: BOTH halves, over the wire', (
286293
expect(withAccountHalf.statusCode).toBe(200);
287294
expect(withoutAccountHalf.statusCode).toBe(200);
288295
expect(navIds(withAccountHalf.body?.item)).toEqual(navIds(withoutAccountHalf.body?.item));
289-
// 32: the composition the count in the test above states.
290-
expect(navIds(withAccountHalf.body?.item)).toHaveLength(32);
296+
// 31: the composition the count in the test above states.
297+
expect(navIds(withAccountHalf.body?.item)).toHaveLength(31);
291298

292299
// The mechanism behind the invariance, asserted rather than assumed:
293300
// the bundle aims exactly one contribution at `setup` and one at

‎packages/cli/test/setup-integrations-order.pin.test.ts‎

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,14 +12,13 @@
1212
//
1313
// Webhooks / HTTP Deliveries `@objectstack/plugin-webhooks`
1414
// Datasources `@objectstack/service-datasource`
15-
// Connect an Agent `@objectstack/mcp`
1615
// Connector Credentials `@objectstack/service-automation`
1716
// Connector Connections `@objectstack/service-automation` (same contribution)
1817
// Cloud Connection `@objectstack/cloud-connection`
1918
//
2019
// Each contributor states the group's other priorities in its own header so
2120
// that its number sorts where it means to — and nothing held those headers to
22-
// the code. A later contributor could renumber one of the five and silently
21+
// the code. A later contributor could renumber one of the four and silently
2322
// reorder the menu an administrator reads. This file is that hold.
2423
//
2524
// ⛔ The priorities are READ from the real contributions, never copied here as
@@ -66,7 +65,6 @@ const GROUP = 'group_integrations';
6665
*/
6766
const EXPECTED_TIERS: readonly (readonly string[])[] = [
6867
['nav_webhooks', 'nav_http_deliveries', 'nav_datasources'],
69-
['nav_connect_agent'],
7068
// One contribution carries both, in this order (ADR-0143 D5 added the second).
7169
['nav_connector_credentials', 'nav_connector_connections'],
7270
['nav_cloud_connection'],
@@ -101,6 +99,10 @@ async function setupContributions(): Promise<Array<{ packageId: string; contribu
10199
const sources: Array<[string, AnyRec[]]> = [
102100
['@objectstack/plugin-webhooks', await manifestsRegisteredBy(new WebhookOutboxPlugin({ autoEnqueue: false }))],
103101
['@objectstack/service-datasource', await manifestsRegisteredBy(new DatasourceAdminServicePlugin({}) as any)],
102+
// Still read although it no longer contributes here: Connect an AI
103+
// Assistant sits in `group_overview` (#30895), and the "nothing
104+
// contributes into the group that this pin does not order" check below
105+
// reds if it moves back.
104106
['@objectstack/mcp', [CONNECT_AGENT_UI_BUNDLE as AnyRec]],
105107
['@objectstack/service-automation', [CONNECTOR_CREDENTIALS_UI_BUNDLE as AnyRec]],
106108
['@objectstack/cloud-connection', [CLOUD_CONNECTION_UI_BUNDLE as AnyRec]],
@@ -126,7 +128,7 @@ function groupChildren(app: AnyRec | undefined, groupId: string): string[] {
126128
}
127129

128130
describe('Setup → Integrations: the merged order follows each contributor\'s priority', () => {
129-
it('serves the five contributors in priority order, read from the contributions themselves', async () => {
131+
it('serves the four contributors in priority order, read from the contributions themselves', async () => {
130132
const contributions = await setupContributions();
131133

132134
// `structuredClone`: `registerApp` writes the `_lock` envelope onto

0 commit comments

Comments
 (0)