You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 59ae25a
Browse filesBrowse the repository at this point in the historyBrowse files
fix(mcp): describe_object skips the hidden search companion on both transports
The registry serves an object with the hidden __search companion beside its
display field where pinyin search is on. describe_object listed it, while no
caller may read, write or name it. Both describeServedObject twins now skip
SEARCH_COMPANION_FIELD (from @objectstack/spec/data), pinned on the stdio tool
and resource and on the HTTP bridge over a real engine.
Co-authored-by: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_016WV4cw787kMeaX7oyz7DDC
fix(mcp): `describe_object` no longer lists the hidden `__search` search companion, on either MCP transport
7
+
8
+
Clause-②: no
9
+
Metadata-protocol: none
10
+
11
+
Where pinyin search is on, the registry serves an object with the hidden `__search` companion column beside its display field. `describe_object` described every served field, so it offered an agent that column (as `readonly` and `system`), while no caller may read, write or name it: a record never echoes it, a `$searchFields` override naming it is refused, and `validate_expression` answers `unknown-field` for a read of it.
12
+
13
+
`describe_object` now leaves the companion out on both transports: the HTTP bridge in `@objectstack/runtime`, and the stdio bridge and the `objectstack://objects/{name}` resource in `@objectstack/mcp`. Both skip it by the protocol's one constant, `SEARCH_COMPANION_FIELD` from `@objectstack/spec/data`. Every other field is listed as before, the injected system columns such as `organization_id` and `created_at` included.
0 commit comments