Title: mcpx exec: typed results from outputSchema, an output cap, the final expression as the result, typed failures, paged search · Issue #1937 · developing-today/code · GitHub
Open Graph Title: mcpx exec: typed results from outputSchema, an output cap, the final expression as the result, typed failures, paged search · Issue #1937 · developing-today/code
X Title: mcpx exec: typed results from outputSchema, an output cap, the final expression as the result, typed failures, paged search · Issue #1937 · developing-today/code
Description: Relocated from dezren39/darwin-nix#216 on 2026-10-28 (placement audit): mcpx's single source lives in developing-today/code (pkgs/mcpx); re-home tracked at #309. Original body below; issue references inside it are historical (dezren39/ni...
Open Graph Description: Relocated from dezren39/darwin-nix#216 on 2026-10-28 (placement audit): mcpx's single source lives in developing-today/code (pkgs/mcpx); re-home tracked at #309. Original body below; issue referenc...
X Description: Relocated from dezren39/darwin-nix#216 on 2026-10-28 (placement audit): mcpx's single source lives in developing-today/code (pkgs/mcpx); re-home tracked at #309. Original body below; issue refe...
Opengraph URL: https://github.com/developing-today/code/issues/1937
X: @github
Domain: github.com
IPv4 address: 140.82.114.3
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"mcpx exec: typed results from outputSchema, an output cap, the final expression as the result, typed failures, paged search","articleBody":"Relocated from dezren39/nix#216 on 2026-10-28 (placement audit): mcpx's single source lives in developing-today/code (pkgs/mcpx); re-home tracked at #309. Original body below; issue references inside it are historical (dezren39/nix numbering).\n\nParent: #181\n\n## Summary\n\nWhere opencode's and Cloudflare's code modes are ahead of mcpx on script ergonomics: every result is typed `any` although `outputSchema` is parsed; stdout is returned whole with no cap; a snippet's value must be printed or emitted (the final expression is not the result); failures are an `error` string plus exit code rather than typed kinds; in-script `search()` has a limit and no offset; and search does not cover saved scripts.\n\nFound while writing the comparison register (`pkgs/mcpx/docs/compare/`) and checked against the code at `05c78b2`. Each row below links its register entry, which carries the value, effort, risk, the specification text and every source.\n\n## Register rows\n\n| row | difference | mcpx @ 05c78b2 | effort |\n| --- | --- | --- | --- |\n| [CODE-44](https://github.com/dezren39/nix/blob/main/pkgs/mcpx/docs/compare/register/code-mode.md#code-44-return-types-generated-from-a-tools-outputschema) | Return types generated from a tool's `outputSchema` | ✗ — parses `outputSchema`; every result typed `any` | S |\n| [CODE-16](https://github.com/dezren39/nix/blob/main/pkgs/mcpx/docs/compare/register/code-mode.md#code-16-cap-on-the-size-of-returned-output) | Cap on the size of returned output | ✗ — stdout returned whole; only stderr is bounded | S |\n| [CODE-19](https://github.com/dezren39/nix/blob/main/pkgs/mcpx/docs/compare/register/code-mode.md#code-19-final-top-level-expression-becomes-the-result) | Final top-level expression becomes the result | ✗ — result is stdout, `emit()` or a default export | M |\n| [CODE-30](https://github.com/dezren39/nix/blob/main/pkgs/mcpx/docs/compare/register/code-mode.md#code-30-failures-reported-as-typed-kinds) | Failures reported as typed kinds | ✗ — `error` string, `exitCode`, `timedOut` only | M |\n| [CODE-35](https://github.com/dezren39/nix/blob/main/pkgs/mcpx/docs/compare/register/code-mode.md#code-35-in-program-search-pages-its-results) | In-program search pages its results | ✗ — `search(query, limit = 20)`, no offset | S |\n| [CODE-36](https://github.com/dezren39/nix/blob/main/pkgs/mcpx/docs/compare/register/code-mode.md#code-36-in-program-search-also-finds-saved-snippets) | In-program search also finds saved snippets | ✗ — in-script `search()` covers tools only | M |\n\n## What to do\n\nEach is independent. Typed results from `outputSchema` and an output cap (a setting) are the two with the most value.\n\n## Ease · Impact · Related\n\n**Ease** M · **Impact** med · **Related**: #79 (typecheck default), #109 (search), #175\n\n## Acceptance criteria\n\n- Tool results in mcpx exec scripts are typed from the tool's `outputSchema` instead of `any` (CODE-44).\n- Returned stdout is capped at a documented size with a visible truncation marker (CODE-16).\n- A snippet's final expression is its result — no `print`/emit required (CODE-19).\n- Failures surface as typed error kinds, not only an `error` string plus exit code.\n- In-script `search()` supports offset paging and covers saved scripts.\n- Tests cover each behavior above.\n","author":{"url":"https://github.com/dezren39","@type":"Person","name":"dezren39"},"datePublished":"2026-10-28T22:36:15Z","url":"https://github.com/developing-today/code/issues/1937"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:829a9903-ec21-f816-4760-7f23dbb25ce2 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | C1D6:D7B8A:333B6E:431E66:6B061733 |
| html-safe-nonce | cbf50459844428aa5a11c030935b6f9b8175f9c1e6bb018b302e9f0e3e814797 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDMUQ2OkQ3QjhBOjMzM0I2RTo0MzFFNjY6NkIwNjE3MzMiLCJ2aXNpdG9yX2lkIjoiMzM2MDM1MDU2MTY4ODY3NjM1IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | fc355daf5d8cd518c0b0a21476208d89f4190545e0766fa0de2f235971620981 |
| hovercard-subject-tag | issue:6088772244 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/developing-today/code/1937/issue_layout |
| twitter:image | https://opengraph.githubassets.com/0acf5655e52dbf9f6d281d2b63ef622ed775513dfefacad03db721926af161bf/developing-today/code/issues/1937 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/0acf5655e52dbf9f6d281d2b63ef622ed775513dfefacad03db721926af161bf/developing-today/code/issues/1937 |
| og:image:alt | Relocated from dezren39/darwin-nix#216 on 2026-10-28 (placement audit): mcpx's single source lives in developing-today/code (pkgs/mcpx); re-home tracked at #309. Original body below; issue referenc... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | dezren39 |
| hostname | github.com |
| expected-hostname | github.com |
| None | 97d4714e567728e1f85f88b0cf68c89f0f8a3dc41e8869af7aeb8195ad990374 |
| turbo-cache-control | no-preview |
| go-import | github.com/developing-today/code git https://github.com/developing-today/code.git |
| octolytics-dimension-user_id | 26439447 |
| octolytics-dimension-user_login | developing-today |
| octolytics-dimension-repository_id | 627308783 |
| octolytics-dimension-repository_nwo | developing-today/code |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 627308783 |
| octolytics-dimension-repository_network_root_nwo | developing-today/code |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 866f202ebf7ac5aff8f633417d9fd8a53818a977 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
| Server | github.com |
| Content-Type | text/html; charset=utf-8 |
| Cache-Control | max-age=0, private, must-revalidate |
Viewport: width=device-width