Skip to content

Commit 43eaf4d

Browse files
committed
Merge remote-tracking branch 'origin/main' into claude/issue-28311-mcp-scope-hidden-tools
2 parents 9990f97 + efdddc9 commit 43eaf4d

92 files changed

Lines changed: 4478 additions & 521 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
---
2+
'@objectstack/runtime': patch
3+
'@objectstack/objectql': patch
4+
'@objectstack/trigger-record-change': patch
5+
---
6+
7+
feat(runtime): an admin can disable a `type: 'module'` package of an installed app, and a disabled package's navigation contributions and record-change flows stop (#28117)
8+
9+
Clause-②: yes (widening) — `PATCH /api/v1/packages/:id/disable` now accepts a module of an installed app, which it refused `422 WRITABLE_PACKAGE_REQUIRED` before. Nothing is narrowed.
10+
Metadata-protocol: none
11+
12+
A suite ships one artifact: its `type: 'app'` package and several `type: 'module'` packages. A customer who does not use a module can now switch it off in their environment, and "disabled" keeps its one meaning: hidden, refused on the data plane, data kept.
13+
14+
- **The disable door** (`@objectstack/runtime`). An admin with `manage_metadata` may disable a package whose `manifest.type` is `'module'` and whose `manifest.dependencies` directly name an installed package of `manifest.type` `'app'`, unless its own `manifest.scope` is `system` or `cloud`. This holds for a suite booted from code and for one installed from the marketplace: both leave the same row. Every other read-only package answers the disable door `422 WRITABLE_PACKAGE_REQUIRED` as before: the app itself, a plugin, a platform package, a module that declares no app or whose app is not installed. The exemption is for disable only. The module stays read-only for authoring, so edit, publish, revert, delete and overwrite still refuse it, and its served row still says `writable: false`.
15+
- **Navigation** (`@objectstack/objectql`). `SchemaRegistry.applyNavContributions` drops the contributions of a disabled package, so `getApp`, `getAllApps` and the protocol's `app` reads (`GET /api/v1/meta/app`, `GET /api/v1/meta/app/:name`) no longer list a disabled module's menu entries. They come back on enable. A disabled package's contribution into a missing group is not relocated and raises no `nav_contribution_group_missing` diagnostic.
16+
- **Record-change flows** (`@objectstack/trigger-record-change`). A flow bound to an object whose owning package is disabled is not run for a write made in-process (an app hook's `ctx.api.object(...)`, another flow, a service), which the engine still accepts. The record is written; the flow runs again once the package is enabled. Writes through the data plane were already refused.
17+
- **Already in place**, and now pinned on the module path: the data plane's `404 OBJECT_PACKAGE_DISABLED` for the module's objects, and the per-environment state file that replays a disable at boot.
18+
19+
An app hook that reads a disabled module's object through `ctx.api.object(name)` is served the kept records: the in-process read is not refused, and this release does not change that. The marketplace handbook says so under "Disabling a module".
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
---
2+
'@object-ui/app-shell': patch
3+
---
4+
5+
fix(app-shell): Studio's `connector_action` form treats each `connectorConfig.input` value as a value slot
6+
7+
Clause-②: no
8+
Metadata-protocol: none
9+
10+
The flow expression ledger roots `connector_action` `input.*` in the node's `connectorConfig` sibling block, and `registerFlow` refuses a `{…}` token there. Studio's readers ignored the entry's block, so the Input section offered no CEL-expression editor and showed no refusal: an author met the refusal only at publish.
11+
12+
- Each input value now has the text / CEL-expression toggle that other value slots have, in both the typed fields an action's `inputSchema` produces and the key/value repeater. An expression is stored as a CEL value envelope, `{ dialect: 'cel', source }`, at the same key.
13+
- A `{…}` token typed into an input value shows the spec's refusal under the value as it is typed. The text is the same sentence the publish door gives.
14+
- The Debug run fails a `connector_action` step whose input holds a `{…}` token, with the spec's refusal naming `connectorConfig.input.<key>`, because the executor refuses that input before it dispatches.
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
---
2+
'@objectstack/metadata-protocol': patch
3+
---
4+
5+
fix(metadata-protocol): a same-named row in a dependent package no longer replaces the base package's item for a read that names no package
6+
7+
Clause-②: no
8+
Metadata-protocol: none
9+
10+
When a writable package that depends on a code package saved an item under a name the code package ships (`showcase_task.default` saved into `com.default.acme-custom`), `GET /api/v1/meta/view/showcase_task.default` with no `package` served the dependent package's copy, under the code package's `_packageId`, and so did the layered read's `effective`. The code package that ships the name was not a candidate of that read: the dependent package's row won by being the only stored row.
11+
12+
The by-name read and the layered read that name no package now take their stored content from the code package that ships the name: its own stored row, else the package-unbound row (the overlay Setup writes, which still wins over the code item), else the code item. A read naming the dependent package still serves its own row, and a writable package's own item, a name no code package ships, is still served to the read naming no package. Where a package-less save, delete and the read's `version` land does not move.
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
---
2+
'@object-ui/app-shell': patch
3+
'@object-ui/i18n': patch
4+
---
5+
6+
feat(console): Studio's item header offers Setup's item tools — layers, references, history with rollback, audit and source — on every Data, Interfaces and Automations item
7+
8+
Clause-②: no
9+
Metadata-protocol: none
10+
11+
- **Before.** An item's layers (code / overlay / effective), what references it, its version history with rollback, its audit trail and its JSON source opened only from Setup's item page. A Studio author who wanted to undo a change went to Setup to do it.
12+
- **Now.** The open item's header in Studio's Data, Interfaces and Automations pillars carries the five as an icon group, each opening the same panel Setup's sheet holds. History and Audit are offered only to a caller the authoring-trail doors admit, as on Setup. Rollback asks the same in-app confirm, writes through the same rollback door, and the pillar re-reads the item; a read-only package shows its history without rollback. Source edits the pillar's own draft buffer, saved by its autosave, and is read-only where the item is.
13+
- **Moved.** `LayeredDiff`, `ResourceHistoryPage` (`HistoryPanel`), `AuditPanel`, `JsonSourceEditor` and the references panel now live in `views/item-tools/`, which Setup's item page imports. `@object-ui/app-shell`'s `LayeredDiff` and `MetadataResourceHistoryPage` exports are unchanged. Setup's page behaves as before.
14+
- **Not carried over.** Setup's autosave toggle and draft review panel: Studio keeps its own draft → publish and pending-changes review.
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
---
2+
'@object-ui/app-shell': patch
3+
'@object-ui/i18n': patch
4+
---
5+
6+
feat(console): Setup pages for position holders and permission set assignment
7+
8+
Clause-②: no
9+
Metadata-protocol: none
10+
11+
An administrator can now manage who holds a position, and who holds a permission set, without opening the position's or the set's own page:
12+
13+
- **Position holders** (`security:position-holders`): pick a position from the environment's catalog, then list, add and remove its holders.
14+
- **Permission set assignment** (`security:permission-set-assignment`): pick a permission set, then list its users (direct grants and holders through a position), and assign or unassign direct grants.
15+
16+
Each page renders the same section the item page renders, so who may add or remove, and every refusal the server answers (the delegated-administration gate's included), are unchanged and shown in the server's own words. The picked item rides the page's URL (`?position=` / `?set=`), so a shared or refreshed link opens it again. A failed read of the catalog says so and offers a retry instead of showing an empty list. The sections inside the position and permission set pages keep working as before.
17+
18+
The pages are registered as component refs and open at `/apps/setup/component/security/position-holders` and `/apps/setup/component/security/permission-set-assignment`. No Setup navigation entry names them yet: those entries are contributed by the server's security plugin and follow separately. New copy is translated in all ten console languages.
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
---
2+
'@objectstack/plugin-approvals': patch
3+
'@objectstack/service-automation': patch
4+
---
5+
6+
fix(plugin-approvals): re-issuing a restored approval continuation proves the pause past the first 1000 parked runs
7+
8+
Clause-②: no (a re-issue on a store with more than 1000 parked runs now proves the pause as it already does below that; no schema, accept set, error code or result field changes)
9+
Metadata-protocol: none
10+
11+
`continueRestoredRun` proves the pause it continues is the one the request's outcome was issued at, by reading where the run is parked. It read that from `listSuspendedRunsDurable()`. On a database-backed store that listing reads one page of 1000 `paused` rows, and a process adds only the runs it parked itself. So when another replica (or this process before a restart) parked the run and more than 1000 runs were parked ahead of it, the run was on no page. Every re-issue was refused with `INVALID_STATE` "parked at no node this engine can see", every retry read the same page, and the recorded outcome never took effect.
12+
13+
- **Now.** The proof asks the engine for that one run. The new `AutomationEngine.suspensionOf(runId)` reads the run's suspension by id, through the same strict, store-authoritative read `hasSuspendedRun` uses, and answers its flow, node and correlation, or `undefined` when it is not suspended. It rejects when the store cannot be read.
14+
- **Unchanged.** Below 1000 parked runs the re-issue proceeds as before. A run that is not parked, or is parked at another node, is still refused, and the refusal still names the node. An engine without the read is still refused; the refusal now names `suspensionOf` as the missing read.

‎content/docs/deployment/marketplace-handbook.mdx‎

Lines changed: 45 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -214,8 +214,12 @@ the detail.
214214
`POST /api/v1/marketplace/install-local/:manifestId/reseed-sample-data` and
215215
`…/purge-sample-data`, both requiring `manage_metadata`.
216216
7. **Enable and disable.** **Setup → Installed Apps** lists the apps installed
217-
from the marketplace. **Disable** is offered only for a writable package:
218-
for a package provided by code or by an installed app, the runtime answers
217+
from the marketplace. An admin with `manage_metadata` may disable a writable
218+
package, and a **module of an installed app**: a `type: 'module'` package
219+
that declares an installed `type: 'app'` package in its
220+
`manifest.dependencies` ([Disabling a module](#disabling-a-module) below).
221+
For every other package provided by code or by an installed app (the app
222+
itself, a plugin, a platform package), the runtime answers
219223
`PATCH /api/v1/packages/:id/disable` with `422 WRITABLE_PACKAGE_REQUIRED`.
220224
To take an installed app away, uninstall it.
221225
8. **Upgrading.** You publish a new version; nothing running changes. An
@@ -255,6 +259,45 @@ An app ships extras in one of two shapes:
255259
composed at build time, which travels inside your App rather than as a
256260
listing of its own ([A project is a multi-package artifact](/docs/getting-started/examples#a-project-is-a-multi-package-artifact)).
257261

262+
### Disabling a module
263+
264+
A customer who does not use one of your modules can switch it off, per
265+
environment, with `PATCH /api/v1/packages/:id/disable`, and back on with
266+
`PATCH /api/v1/packages/:id/enable`. The module qualifies when its manifest
267+
says `type: 'module'` and declares your app in `dependencies`, the way every
268+
module of a suite already does:
269+
270+
```ts
271+
manifest: {
272+
id: 'app.example.suite.orders',
273+
type: 'module',
274+
namespace: 'suite',
275+
dependencies: { 'app.example.suite': '^1.0.0' },
276+
navigationContributions: [/* its menu entries in the app's groups */],
277+
},
278+
```
279+
280+
Disabled has one meaning: the module is hidden, refused on the data plane, and
281+
its data is kept.
282+
283+
- **Data plane.** `/api/v1/data/<object>` and the by-name metadata reads answer
284+
the module's objects `404 OBJECT_PACKAGE_DISABLED`. Records stay in the
285+
database and come back on enable.
286+
- **Navigation.** The module's `navigationContributions` leave the app's menu.
287+
- **Flows.** Record-change flows on the module's objects do not run while it is
288+
disabled, whoever writes the record.
289+
- **Restart.** The choice is kept per environment and survives a restart.
290+
- **Authoring.** A disabled module is still read-only: edit, publish, revert
291+
and delete keep answering `422 WRITABLE_PACKAGE_REQUIRED`.
292+
293+
**What your app's own code meets.** A hook of your app that reads or writes a
294+
module's object through `ctx.api.object('<object>')` runs inside the server,
295+
not through the data plane, and it is **not** refused: a `find` returns the
296+
module's kept records, and a write lands (no record-change flow runs on it).
297+
There is no `OBJECT_PACKAGE_DISABLED` error to catch there. A browser or API
298+
client reading the module's objects does meet the `404 OBJECT_PACKAGE_DISABLED`
299+
refusal while the module is off.
300+
258301
## Related
259302

260303
- [CLI reference](/docs/deployment/cli) — every `os package publish` and `os package install` flag
Lines changed: 65 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,65 @@
1+
# GitHub
2+
3+
Search and read GitHub issues and pull requests from your flows. The app
4+
connects to GitHub's hosted MCP server (`https://api.githubcopilot.com/mcp/`)
5+
in read-only mode and exposes two of its read tools as connector actions.
6+
Nothing is written to GitHub.
7+
8+
## What it adds
9+
10+
- **A connector, `github_mcp`.** Its actions are `search_issues` (GitHub's
11+
issue and pull request search syntax) and `issue_read` (one issue's details).
12+
Any other tool the server offers stays out of your flows and agents.
13+
- **Two flows that use it**, ready to run or to copy:
14+
- `github_search_issues` takes a `query` (for example
15+
`repo:acme/app is:open label:bug`) and returns the matching issues as
16+
`search.content`.
17+
- `github_get_issue` takes `owner`, `repo` and `issue_number` and returns the
18+
issue as `issue.content`.
19+
20+
The app adds no objects, no sample data and no demo users. An install adds the
21+
connector and the two flows, and nothing else.
22+
23+
## Credentials
24+
25+
The app needs one credential. Until it is set, the `github_mcp` connector is
26+
listed as disconnected and its flows fail, naming the credential.
27+
28+
| Credential | What it is | Where to get it | Permissions it needs |
29+
|:---|:---|:---|:---|
30+
| `GITHUB_MCP_TOKEN` | A GitHub personal access token, sent to GitHub's MCP server as `Authorization: Bearer <token>` | GitHub → **Settings → Developer settings → Personal access tokens** (<https://github.com/settings/personal-access-tokens/new> for a fine-grained token) | Fine-grained token (GitHub's recommendation): access to the repositories you will search, with read-only **Issues** and **Pull requests** repository permissions; a repository owned by an organization also needs the organization to approve the token. Classic token: the `repo` scope, which both tools require |
31+
32+
Set the value in **Setup → Integrations → Connector Credentials**, or in the
33+
install dialog right after installing. An environment variable named
34+
`GITHUB_MCP_TOKEN` on the server takes precedence over a stored value.
35+
36+
Prefer a fine-grained token. With a classic token, GitHub's server hides every
37+
tool whose scope the token lacks. If that hides `search_issues` or
38+
`issue_read`, the connector does not start without them: a value set in
39+
**Connector Credentials** leaves `github_mcp` disconnected with a reason naming
40+
the missing tools, and a value set as the server environment variable stops the
41+
server from starting at all. Replace the token with one that carries the `repo`
42+
scope: a new value in **Connector Credentials** takes effect at once, a new
43+
environment variable at the next start.
44+
45+
The token is only ever sent to GitHub. It is never stored in the app's
46+
metadata.
47+
48+
## Running it
49+
50+
```bash
51+
curl -X POST "$OS_URL/api/v1/automation/github_search_issues/trigger" \
52+
-H "Authorization: Bearer $SESSION_TOKEN" -H 'Content-Type: application/json' \
53+
-d '{"params": {"query": "repo:acme/app is:open label:bug"}}'
54+
```
55+
56+
To use the answer elsewhere, add a `connector_action` node with
57+
`connectorId: 'github_mcp'` to your own flow and read `<nodeId>.content` in a
58+
later node.
59+
60+
## Limits
61+
62+
- Read only. The server is asked for read tools only (`X-MCP-Readonly: true`)
63+
and the connector allowlists two of them.
64+
- The token is a static personal token. Signing in with GitHub (OAuth) is not
65+
offered.
Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
// Copyright (c) 2026 ObjectStack. Licensed under the Apache-2.0 license.
2+
3+
import { defineStack } from '@objectstack/spec';
4+
import { ConnectorMcpPlugin } from '@objectstack/connector-mcp';
5+
import { GitHubMcpConnector } from './src/connectors/github.connector.js';
6+
import { allFlows } from './src/flows/github.flows.js';
7+
8+
/**
9+
* GitHub connector app — open edition (every key it uses runs on the open
10+
* tier), so it lives in this repository and is validated by its CI against
11+
* the runtime at HEAD. One declarative connector, two flows that use it; no
12+
* objects, no secret. The listing is `objectstack.manifest.json`, and the
13+
* README is what the administrator reads before installing.
14+
*/
15+
export default defineStack({
16+
manifest: {
17+
id: 'app.objectstack.connector-github',
18+
namespace: 'github',
19+
version: '0.1.0',
20+
type: 'app',
21+
name: 'GitHub',
22+
description: "Search and read GitHub issues from flows, through GitHub's remote MCP server.",
23+
engines: { protocol: '^18' },
24+
},
25+
26+
// `automation` materializes the `connectors:` entry at boot and runs the
27+
// flows; the executor below registers the `mcp` provider with it.
28+
requires: ['automation'],
29+
30+
// The generic `mcp` executor, zero-arg: it contributes the provider factory
31+
// only. The transport is http, so the stdio policy does not apply.
32+
plugins: [new ConnectorMcpPlugin()],
33+
34+
connectors: [GitHubMcpConnector],
35+
flows: allFlows,
36+
});
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
{
2+
"$schema": "https://schemas.objectstack.dev/template-manifest.json",
3+
"manifestId": "app.objectstack.connector-github",
4+
"name": "connector-github",
5+
"specVersion": "^18.0.0",
6+
"displayName": "GitHub",
7+
"description": "Search and read GitHub issues and pull requests from flows, through GitHub's remote MCP server. Read only.",
8+
"category": "devtools",
9+
"tags": ["github", "mcp", "connector", "issues"],
10+
"license": "Apache-2.0",
11+
"homepageUrl": "https://github.com/objectstack-ai/objectstack/tree/main/packages/apps/connector-github",
12+
"readmePath": "README.md"
13+
}

0 commit comments

Comments
 (0)