René's URL Explorer Experiment


Title: fix(mcp): resolve docs path from package root instead of import.meta.url depth by hyfdev · Pull Request #4 · voidzero-dev/void · GitHub

Open Graph Title: fix(mcp): resolve docs path from package root instead of import.meta.url depth by hyfdev · Pull Request #4 · voidzero-dev/void

X Title: fix(mcp): resolve docs path from package root instead of import.meta.url depth by hyfdev · Pull Request #4 · voidzero-dev/void

Description: Fixes voidzero-dev/void-platform#18 Problem void mcp crashes with "Void docs directory not found" when run from a dist build or npm install. resolveDocsDir() uses import.meta.url to find the docs directory by counting relative .. segments: src/cli/mcp.ts → ../../skills/void/docs → /skills/void/docs ✓ But the build bundles into dist/mcp-*.mjs (1 level deep instead of 2), so the same ../.. overshoots: dist/mcp-*.mjs → ../../skills/void/docs → /skills/void/docs ✗ The monorepo fallback also uses the wrong path (website/docs instead of docs). Fix Walk up the directory tree from the current file to find the nearest package.json, giving us a depth-agnostic package root. Then resolve docs paths relative to that root. Also fixes the monorepo fallback path from website/docs → ../../docs (correct relative path to framework/docs/). Test plan pnpm -C packages/void build — rebuild succeeds pnpm test packages/void/test/unit/mcp.test.ts — 11/11 unit tests pass pnpm test packages/void/test/integration/mcp-dist.test.ts — 2/2 dist integration tests pass (new) pnpm lint — 0 warnings, 0 errors pnpm fmt — clean Manual: echo '{"jsonrpc":"2.0","id":1,...}' | node dist/cli/cli.mjs mcp responds correctly 🤖 Generated with Claude Code

Open Graph Description: Fixes voidzero-dev/void-platform#18 Problem void mcp crashes with "Void docs directory not found" when run from a dist build or npm install. resolveDocsDir() uses import.meta.url to find ...

X Description: Fixes voidzero-dev/void-platform#18 Problem void mcp crashes with "Void docs directory not found" when run from a dist build or npm install. resolveDocsDir() uses import.meta.url ...

Opengraph URL: https://github.com/voidzero-dev/void/pull/4

X: @github

direct link

Domain: github.com

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:c99b2cf0-3b7e-ee92-5bc3-9d37677b4391
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idBFAC:2EDE49:1E6970:2958BA:6AFBAD7B
html-safe-noncebac3ac02cc04aedcb3cdda814c2ceda9f3fd6e0dcf548fe0f13cb07d9fa7a969
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCRkFDOjJFREU0OToxRTY5NzA6Mjk1OEJBOjZBRkJBRDdCIiwidmlzaXRvcl9pZCI6IjQ1NDMxNzg1MzAxODcwOTU0MTkiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmacb63875e6e3092cf8e13c6450db1b5f45d8d299865c9b58d72ad4e19b648a47e1
hovercard-subject-tagpull_request:3331342339
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/voidzero-dev/void/pull/4/files
twitter:imagehttps://avatars.githubusercontent.com/u/49502170?s=400&v=4
twitter:cardsummary_large_image
og:imagehttps://avatars.githubusercontent.com/u/49502170?s=400&v=4
og:image:altFixes voidzero-dev/void-platform#18 Problem void mcp crashes with "Void docs directory not found" when run from a dist build or npm install. resolveDocsDir() uses import.meta.url to find ...
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
Nonee25fbd830d3e6ad0e8935c105cf4fdc70c593dffcd27bb45b790ae4fece5ea55
turbo-cache-controlno-preview
diff-viewunified
go-importgithub.com/voidzero-dev/void git https://github.com/voidzero-dev/void.git
octolytics-dimension-user_id149750581
octolytics-dimension-user_loginvoidzero-dev
octolytics-dimension-repository_id1164437080
octolytics-dimension-repository_nwovoidzero-dev/void
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id1164437080
octolytics-dimension-repository_network_root_nwovoidzero-dev/void
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
release08c8f17f9d27054a108b8b6254e405de0151f660
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/voidzero-dev/void/pull/4/files#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fvoidzero-dev%2Fvoid%2Fpull%2F4%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%2Fvoidzero-dev%2Fvoid%2Fpull%2F4%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=voidzero-dev%2Fvoid
Reloadhttps://github.com/voidzero-dev/void/pull/4/files
Reloadhttps://github.com/voidzero-dev/void/pull/4/files
Reloadhttps://github.com/voidzero-dev/void/pull/4/files
voidzero-devhttps://github.com/voidzero-dev
voidhttps://github.com/voidzero-dev/void
Codehttps://github.com/voidzero-dev/void
Issues31 (31)https://github.com/voidzero-dev/void/issues
Pull requests9 (9)https://github.com/voidzero-dev/void/pulls
Discussionshttps://github.com/voidzero-dev/void/discussions
Actionshttps://github.com/voidzero-dev/void/actions
Security and qualityhttps://github.com/voidzero-dev/void/security
Insightshttps://github.com/voidzero-dev/void/pulse
Sign up for GitHub https://github.com/signup?return_to=%2Fvoidzero-dev%2Fvoid%2Fissues%2Fnew%2Fchoose
terms of servicehttps://docs.github.com/terms
privacy statementhttps://docs.github.com/privacy
Sign inhttps://github.com/login?return_to=%2Fvoidzero-dev%2Fvoid%2Fissues%2Fnew%2Fchoose
yyx990803https://github.com/yyx990803
mainhttps://github.com/voidzero-dev/void/tree/main
fix/mcp-docs-pathhttps://github.com/voidzero-dev/void/tree/fix/mcp-docs-path
Conversation 3 https://github.com/voidzero-dev/void/pull/4
Commits 2 https://github.com/voidzero-dev/void/pull/4/commits
Checks 5 https://github.com/voidzero-dev/void/pull/4/checks
Files changed https://github.com/voidzero-dev/void/pull/4/files
Please reload this pagehttps://github.com/voidzero-dev/void/pull/4/files
fix(mcp): resolve docs path from package root instead of import.meta.url depth https://github.com/voidzero-dev/void/pull/4/files#top
Show all changes 2 commits https://github.com/voidzero-dev/void/pull/4/files
078f20d fix(mcp): resolve docs path from package root instead of import.meta.… hyfdev Feb 26, 2026 https://github.com/voidzero-dev/void/pull/4/commits/078f20d1c4bc8707bb3cf326d1ba6d5513f0e0f0
f783ab8 fix: address review comments hyfdev Feb 26, 2026 https://github.com/voidzero-dev/void/pull/4/commits/f783ab8b6c61e4089d69984640fedf547508393a
Clear filters https://github.com/voidzero-dev/void/pull/4/files
Please reload this pagehttps://github.com/voidzero-dev/void/pull/4/files
Please reload this pagehttps://github.com/voidzero-dev/void/pull/4/files
mcp.ts https://github.com/voidzero-dev/void/pull/4/files#diff-704879f168a7f33c9cddc05b4cc86fc5da463f77acb3c377010c40b0cf3546a9
mcp-dist.test.ts https://github.com/voidzero-dev/void/pull/4/files#diff-3da1cb06bd9c4cdda985c064fa8b9d19d4c477b79d3593e0c3c113f7abdf69a9
mcp.test.ts https://github.com/voidzero-dev/void/pull/4/files#diff-4673bf87e4a34464bec0894bc099ea4932cd1439245846eb94b6411e856fd73b
packages/void/src/cli/mcp.tshttps://github.com/voidzero-dev/void/pull/4/files#diff-704879f168a7f33c9cddc05b4cc86fc5da463f77acb3c377010c40b0cf3546a9
View file https://github.com/voidzero-dev/void/blob/f783ab8b6c61e4089d69984640fedf547508393a/packages/void/src/cli/mcp.ts
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/voidzero-dev/void/pull/4/{{ revealButtonHref }}
https://github.com/voidzero-dev/void/pull/4/files#diff-704879f168a7f33c9cddc05b4cc86fc5da463f77acb3c377010c40b0cf3546a9
https://github.com/voidzero-dev/void/pull/4/files#diff-704879f168a7f33c9cddc05b4cc86fc5da463f77acb3c377010c40b0cf3546a9
packages/void/test/integration/mcp-dist.test.tshttps://github.com/voidzero-dev/void/pull/4/files#diff-3da1cb06bd9c4cdda985c064fa8b9d19d4c477b79d3593e0c3c113f7abdf69a9
View file https://github.com/voidzero-dev/void/blob/f783ab8b6c61e4089d69984640fedf547508393a/packages/void/test/integration/mcp-dist.test.ts
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/voidzero-dev/void/pull/4/{{ revealButtonHref }}
packages/void/test/unit/mcp.test.tshttps://github.com/voidzero-dev/void/pull/4/files#diff-4673bf87e4a34464bec0894bc099ea4932cd1439245846eb94b6411e856fd73b
View file https://github.com/voidzero-dev/void/blob/f783ab8b6c61e4089d69984640fedf547508393a/packages/void/test/unit/mcp.test.ts
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/voidzero-dev/void/pull/4/{{ revealButtonHref }}
https://github.com/voidzero-dev/void/pull/4/files#diff-4673bf87e4a34464bec0894bc099ea4932cd1439245846eb94b6411e856fd73b
https://github.com/voidzero-dev/void/pull/4/files#diff-4673bf87e4a34464bec0894bc099ea4932cd1439245846eb94b6411e856fd73b
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

Viewport: width=device-width


URLs of crawlers that visited me.