René's URL Explorer Experiment


Title: feat(mcpx): WASM tool-source spike — wazero host, capability test (#1970) by dezren39 · Pull Request #2002 · developing-today/code · GitHub

Open Graph Title: feat(mcpx): WASM tool-source spike — wazero host, capability test (#1970) by dezren39 · Pull Request #2002 · developing-today/code

X Title: feat(mcpx): WASM tool-source spike — wazero host, capability test (#1970) by dezren39 · Pull Request #2002 · developing-today/code

Description: Spike for #1970 (queue task 2907): Approach B — a core-WASM .wasm module as an mcpx tool source, hosted by wazero. What this adds pkgs/mcpx/internal/wasmtools: a standalone wazero host for a core-WASM tool source. It instantiates no WASI at all, so a guest gets no filesystem, network, clock, or environment by default; the only imports that can exist are host grants (today: mcpx.log). Any ungranted import — WASI included — fails instantiation: deny-by-default is a property of the loader. Guest ABI mirrors mcpclient.Client (ListTools / CallTool shapes in internal/mcpclient/client.go), shaped so a component-model ABI can replace it underneath later (Approach C). Test guests (Zig sources + prebuilt .wasm in testdata/): echo (lists/calls one tool, logs via the granted import) and greedy (imports mcpx.read_file, which the host never offers). Interface gap (per the spike brief) There is no registration point yet for a new tool-source kind: upstreams are concrete transports in internal/mcpclient and internal/adapter, and the tool-source interface is still tracked by #1885. So this package is deliberately a standalone spike, not a parallel/fifth composition path. Wiring it in waits for #1885's interface; the ABI above is designed to sit behind it unchanged. Capability test (acceptance) TestListAndCallWithGrantedLog — granted log import works; tool list + call round-trip. TestSameModuleWithoutGrantIsDenied — same module without the grant fails to instantiate. TestUngrantedCapabilityImportIsDenied — greedy.wasm is denied even with every grantable capability granted; the error names the missing read_file import. Verified on the laptop worktree: go test -count=1 ./internal/wasmtools/ — PASS. Constraints Pure Go: no cgo introduced (wazero only, already in-tree for embeddings). Existing JS-runtime script behaviour and process/HTTP tool sources unchanged — this adds one new internal package only. Gating research answer Posted on #1970: wazero does not host Component Model components at acceptable maturity today (component support is still under active development upstream); the mature component host is wasmtime, whose Go bindings require cgo — which would forfeit the pure-Go premise. Recommendation: proceed with B on core WASM now; defer C until wazero component hosting matures or a pure-Go lowering path lands. Refs #1970, #1885 Need help on this PR? Tag @codesmith-bot with what you need.

Open Graph Description: Spike for #1970 (queue task 2907): Approach B — a core-WASM .wasm module as an mcpx tool source, hosted by wazero. What this adds pkgs/mcpx/internal/wasmtools: a standalone wazero host for a core-...

X Description: Spike for #1970 (queue task 2907): Approach B — a core-WASM .wasm module as an mcpx tool source, hosted by wazero. What this adds pkgs/mcpx/internal/wasmtools: a standalone wazero host for a core-...

Opengraph URL: https://github.com/developing-today/code/pull/2002

X: @github

direct link

Domain: github.com

IPv4 address: 140.82.114.4

react-profiling0
react-import-mapreact,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322
route-pattern/:user_id/:repository/pull/:id/files(.:format)
route-controllerpull_requests
route-actionfiles
fetch-noncev2:334634db-7beb-42e8-92c5-c35f943caf8d
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idB1FA:3CDC55:4C85CB:64AF79:6B063977
html-safe-nonced488f763890490c717a6b9ed8fa279f5a1708611ab6a06ebeae2bef56a5c845c
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCMUZBOjNDREM1NTo0Qzg1Q0I6NjRBRjc5OjZCMDYzOTc3IiwidmlzaXRvcl9pZCI6IjcwMDE3MTI5MTM4NzkwMjE5NDMiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmaceae9cc9578ffffcf3588ed3b2b406daead639726aee2353c408ab7712b1cbef5
hovercard-subject-tagpull_request:5059492800
github-keyboard-shortcutsrepository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///pull_requests/show/files
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/developing-today/code/pull/2002/files
twitter:imagehttps://avatars.githubusercontent.com/u/11225574?s=400&v=4
twitter:cardsummary_large_image
og:imagehttps://avatars.githubusercontent.com/u/11225574?s=400&v=4
og:image:altSpike for #1970 (queue task 2907): Approach B — a core-WASM .wasm module as an mcpx tool source, hosted by wazero. What this adds pkgs/mcpx/internal/wasmtools: a standalone wazero host for a core-...
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
Nonedcf72c457c022486d23c3cbb0dd21aba537a87611ca9ddabd1799cf2eaa9b297
turbo-cache-controlno-preview
diff-viewunified
go-importgithub.com/developing-today/code git https://github.com/developing-today/code.git
octolytics-dimension-user_id26439447
octolytics-dimension-user_logindeveloping-today
octolytics-dimension-repository_id627308783
octolytics-dimension-repository_nwodeveloping-today/code
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id627308783
octolytics-dimension-repository_network_root_nwodeveloping-today/code
turbo-body-classeslogged-out env-production page-responsive full-width
disable-turbotrue
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release0f38f5735226749ec5e08a8649dce4cb2613d9ad
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/developing-today/code/pull/2002/files#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fdeveloping-today%2Fcode%2Fpull%2F2002%2Ffiles
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fdeveloping-today%2Fcode%2Fpull%2F2002%2Ffiles
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fpull_requests%2Fshow%2Ffiles&source=header-repo&source_repo=developing-today%2Fcode
Reloadhttps://github.com/developing-today/code/pull/2002/files
Reloadhttps://github.com/developing-today/code/pull/2002/files
Reloadhttps://github.com/developing-today/code/pull/2002/files
developing-todayhttps://github.com/developing-today
codehttps://github.com/developing-today/code
Codehttps://github.com/developing-today/code
Issues1.1k (1.1k)https://github.com/developing-today/code/issues
Pull requests158 (158)https://github.com/developing-today/code/pulls
Discussionshttps://github.com/developing-today/code/discussions
Actionshttps://github.com/developing-today/code/actions
Projectshttps://github.com/developing-today/code/projects
Wikihttps://github.com/developing-today/code/wiki
Security and qualityhttps://github.com/developing-today/code/security
Insightshttps://github.com/developing-today/code/insights
Sign up for GitHub https://github.com/signup?return_to=%2Fdeveloping-today%2Fcode%2Fissues%2Fnew%2Fchoose
terms of servicehttps://docs.github.com/terms
privacy statementhttps://docs.github.com/privacy
Sign inhttps://github.com/login?return_to=%2Fdeveloping-today%2Fcode%2Fissues%2Fnew%2Fchoose
dezren39https://github.com/dezren39
mainhttps://github.com/developing-today/code/tree/main
queue/2907-1970-wasm-spikehttps://github.com/developing-today/code/tree/queue/2907-1970-wasm-spike
Conversation 6 https://github.com/developing-today/code/pull/2002
Commits 1 https://github.com/developing-today/code/pull/2002/commits
Checks 17 https://github.com/developing-today/code/pull/2002/checks
Files changed https://github.com/developing-today/code/pull/2002/files
Please reload this pagehttps://github.com/developing-today/code/pull/2002/files
feat(mcpx): WASM tool-source spike — wazero host, capability test (#1970) https://github.com/developing-today/code/pull/2002/files#top
Show all changes 1 commit https://github.com/developing-today/code/pull/2002/files
019ee02 feat(mcpx): WASM tool-source spike — wazero host, capability test (#1… Oct 28, 2026 https://github.com/developing-today/code/pull/2002/commits/019ee02b9011deba1bd2d8299e385e162e69485b
Clear filters https://github.com/developing-today/code/pull/2002/files
Please reload this pagehttps://github.com/developing-today/code/pull/2002/files
Please reload this pagehttps://github.com/developing-today/code/pull/2002/files
echo.wasm https://github.com/developing-today/code/pull/2002/files#diff-6206a9a14e0afcec880676c0fcd4f9ba426b69bd9ff8b55179b3714a87d530b5
greedy.wasm https://github.com/developing-today/code/pull/2002/files#diff-79409809a21b49be2c4b21afdf938b154c9700e7b8055ea6577a44cdfaf5a48a
echo.zig https://github.com/developing-today/code/pull/2002/files#diff-b9640040779d0d41164a30aed90b4d85b5b759e9695da3fa7dca3da2bc3d63f6
greedy.zig https://github.com/developing-today/code/pull/2002/files#diff-98b5041a34c15f01d177f9eb8e5b56824a742663d10c9690dfa2af3d84b18aed
wasmtools.go https://github.com/developing-today/code/pull/2002/files#diff-b97c91c4218ac3de06a863c624bf442c2081cbde3e414b09bd9fed385ee1f333
wasmtools_test.go https://github.com/developing-today/code/pull/2002/files#diff-dc99b832cbbd86209bbc1d6f17a71b84d41da044ed06a618c31ce3b9b07be589
pkgs/mcpx/internal/wasmtools/testdata/echo.wasmhttps://github.com/developing-today/code/pull/2002/files#diff-6206a9a14e0afcec880676c0fcd4f9ba426b69bd9ff8b55179b3714a87d530b5
View file https://github.com/developing-today/code/blob/019ee02b9011deba1bd2d8299e385e162e69485b/pkgs/mcpx/internal/wasmtools/testdata/echo.wasm
Open in desktop https://desktop.github.com
pkgs/mcpx/internal/wasmtools/testdata/greedy.wasmhttps://github.com/developing-today/code/pull/2002/files#diff-79409809a21b49be2c4b21afdf938b154c9700e7b8055ea6577a44cdfaf5a48a
View file https://github.com/developing-today/code/blob/019ee02b9011deba1bd2d8299e385e162e69485b/pkgs/mcpx/internal/wasmtools/testdata/greedy.wasm
Open in desktop https://desktop.github.com
pkgs/mcpx/internal/wasmtools/testdata/guest/echo.zighttps://github.com/developing-today/code/pull/2002/files#diff-b9640040779d0d41164a30aed90b4d85b5b759e9695da3fa7dca3da2bc3d63f6
View file https://github.com/developing-today/code/blob/019ee02b9011deba1bd2d8299e385e162e69485b/pkgs/mcpx/internal/wasmtools/testdata/guest/echo.zig
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/developing-today/code/pull/2002/{{ revealButtonHref }}
pkgs/mcpx/internal/wasmtools/testdata/guest/greedy.zighttps://github.com/developing-today/code/pull/2002/files#diff-98b5041a34c15f01d177f9eb8e5b56824a742663d10c9690dfa2af3d84b18aed
View file https://github.com/developing-today/code/blob/019ee02b9011deba1bd2d8299e385e162e69485b/pkgs/mcpx/internal/wasmtools/testdata/guest/greedy.zig
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/developing-today/code/pull/2002/{{ revealButtonHref }}
pkgs/mcpx/internal/wasmtools/wasmtools.gohttps://github.com/developing-today/code/pull/2002/files#diff-b97c91c4218ac3de06a863c624bf442c2081cbde3e414b09bd9fed385ee1f333
View file https://github.com/developing-today/code/blob/019ee02b9011deba1bd2d8299e385e162e69485b/pkgs/mcpx/internal/wasmtools/wasmtools.go
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/developing-today/code/pull/2002/{{ revealButtonHref }}
chatgpt-codex-connectorhttps://github.com/apps/chatgpt-codex-connector
Oct 28, 2026https://github.com/developing-today/code/pull/2002/files#r4407271131
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
https://camo.githubusercontent.com/0854bfc38139c0d2b58a9d5d71f5ad92840cf0c17144621e462b474041793354/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f50322d79656c6c6f773f7374796c653d666c6174
wazero v1.9.0 runtime configuration documentationhttps://github.com/tetratelabs/wazero/blob/v1.9.0/config.go#L140-L161
Please reload this pagehttps://github.com/developing-today/code/pull/2002/files
chatgpt-codex-connectorhttps://github.com/apps/chatgpt-codex-connector
Oct 28, 2026https://github.com/developing-today/code/pull/2002/files#r4407271123
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
https://camo.githubusercontent.com/0854bfc38139c0d2b58a9d5d71f5ad92840cf0c17144621e462b474041793354/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f50322d79656c6c6f773f7374796c653d666c6174
Please reload this pagehttps://github.com/developing-today/code/pull/2002/files
pkgs/mcpx/internal/wasmtools/wasmtools_test.gohttps://github.com/developing-today/code/pull/2002/files#diff-dc99b832cbbd86209bbc1d6f17a71b84d41da044ed06a618c31ce3b9b07be589
View file https://github.com/developing-today/code/blob/019ee02b9011deba1bd2d8299e385e162e69485b/pkgs/mcpx/internal/wasmtools/wasmtools_test.go
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/developing-today/code/pull/2002/{{ revealButtonHref }}
Please reload this pagehttps://github.com/developing-today/code/pull/2002/files
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Response headers:
Servergithub.com
Content-Typetext/html; charset=utf-8
Cache-Controlno-cache

Viewport: width=device-width


URLs of crawlers that visited me.