René's URL Explorer Experiment


Title: [FEATURE] MCP: fix empty-result + nullable-render bugs, add registry discovery/pull tools · Issue #661 · stackql/stackql · GitHub

Open Graph Title: [FEATURE] MCP: fix empty-result + nullable-render bugs, add registry discovery/pull tools · Issue #661 · stackql/stackql

X Title: [FEATURE] MCP: fix empty-result + nullable-render bugs, add registry discovery/pull tools · Issue #661 · stackql/stackql

Description: Two fixes and two new tools, bundled because they form one coherent unit: the fixes harden the result path that the new tools depend on, and together they close the discover -> pull -> query loop for agents (today an agent can only use p...

Open Graph Description: Two fixes and two new tools, bundled because they form one coherent unit: the fixes harden the result path that the new tools depend on, and together they close the discover -> pull -> query loop f...

X Description: Two fixes and two new tools, bundled because they form one coherent unit: the fixes harden the result path that the new tools depend on, and together they close the discover -> pull -> query ...

Opengraph URL: https://github.com/stackql/stackql/issues/661

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"[FEATURE] MCP: fix empty-result + nullable-render bugs, add registry discovery/pull tools","articleBody":"Two fixes and two new tools, bundled because they form one coherent unit: the\nfixes harden the result path that the new tools depend on, and together they\nclose the discover -\u003e pull -\u003e query loop for agents (today an agent can only\nuse providers a human has already pulled from a shell).\n\n### Fix 1 - empty result sets reported as extraction failures\n`extractQueryResults` (`internal/stackql/mcpbackend/mcp_service_stackql.go`)\nreturns `(rv, ok \u0026\u0026 len(rv) \u003e 0)`, and the caller maps a false second return to\n`fmt.Errorf(\"failed to extract query results\")`. A zero-row result is a valid\nempty list. Any `list_*` / `run_select_query` returning no rows errors instead\nof rendering empty. Repro: fresh approot, no providers pulled, `list_providers`\n-\u003e \"failed to extract query results\".\nFix: return `(rv, ok)`; let the renderer's `**no results**` branch handle empty.\n\n### Fix 2 - literal/expression columns render as Go nullable wrappers\n`RenderTable`/`dataRow` and `RenderKV` (`pkg/mcp_server/render/render.go`)\nformat with `fmt.Sprintf(\"%v\", v)` assuming scalars. Literal columns carry a\npointer-to-nullable-wrapper, so cells render as `\u0026{ok true}`. Repro:\n`run_select_query` `SELECT 1 as n, 'ok' as status` -\u003e `| \u0026{ok true} | \u0026{1 true} |`.\nProvider-backed columns are unaffected (unwrapped upstream).\nFix: unwrap helper (check valid, take value) applied before formatting in\n`dataRow` and the `RenderKV` loop.\n\n### Feature 1 - list_registry tool\nLets an agent see providers available in the registry to pull, distinct from\nlist_providers (which shows only pulled/installed providers).\n- Renderer: Table. Inputs: optional `provider` (lists versions for that\n  provider; omitted lists all available).\n- New interrogator method `GetRegistryList(provider string)` building\n  `REGISTRY LIST [\u003cprovider\u003e]`; backend `ListRegistry` routes through\n  `runPreprocessedQueryJSON`.\n- Registered with `selectGate(\"list_registry\")` - read-only, allowed in all\n  modes.\n\n### Feature 2 - pull_providers tool\nLets an agent install a provider into the approot cache so subsequent queries\nresolve.\n- Renderer: KV ({messages, timestamp}). Inputs: `provider` (required),\n  `version` (optional).\n- New interrogator method `GetRegistryPull(provider, version string)` building\n  `REGISTRY PULL \u003cprovider\u003e [\u003cversion\u003e]`; backend `PullProvider` routes through\n  `execQuery`.\n- Gating decision (flagged for review): pulling fetches remote content and\n  writes local state but does not touch any cloud control/data plane. Proposed\n  default: allow in all modes (it is not a cloud mutation). If a human-in-the-\n  loop is wanted, classify it as a new `registry_pull` query class gated like\n  lifecycle (refused in read_only, elicitation-prompted in safe). Defaulting to\n  allow keeps autonomous agent flows unblocked.\n\n### Why CI didn't catch the fixes\nNo test asserts on an empty result set, and query/metadata tests assert on\nstructuredContent JSON + row counts, never on rendered cell values; every test\nSELECT hits a real provider table, so no test runs the literal/no-FROM shape\nthat exposes the wrapper.\n\n### Tests added (test/robot/functional/mcp.robot + render_test.go)\n- Empty-result `list_providers`/SELECT renders cleanly, no error.\n- Literal SELECT cell equals `ok`, does not contain `\u0026{`.\n- Unit: nullable wrapper value renders as unwrapped scalar.\n- `list_registry` returns a non-empty available-provider set (against the test\n  registry).\n- `pull_providers` for a known provider returns a timestamp; the provider is\n  then visible via `list_providers`.\n\n### Impact / risk\nLow. Fixes are additive on the read path; provider-backed output unchanged. New\ntools are additive. Only open decision is the pull_providers gating class.","author":{"url":"https://github.com/jeffreyaven","@type":"Person","name":"jeffreyaven"},"datePublished":"2026-05-29T06:15:23.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":12},"url":"https://github.com/661/stackql/issues/661"}

route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:70a87652-739f-68b7-7883-d08d34197be0
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idBC86:384DDA:8775C4:BA056F:6A4D49CF
html-safe-nonce10c72f19e39202e9c017610d1cd1d3c86e3ea909dc7555d90513143cb35597f9
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCQzg2OjM4NEREQTo4Nzc1QzQ6QkEwNTZGOjZBNEQ0OUNGIiwidmlzaXRvcl9pZCI6IjEzNDk2NTk0MjgzNDU2OTQ2NzEiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmac4a1988d0561b6daa4fc977e23976adca36116cb6a912fd0df62f77330c40c4c6
hovercard-subject-tagissue:4546156112
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/stackql/stackql/661/issue_layout
twitter:imagehttps://opengraph.githubassets.com/d12b05e6f781425bf0f06a67c3a4af33b7caa68d7d2c786da78fe79d684b31b5/stackql/stackql/issues/661
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/d12b05e6f781425bf0f06a67c3a4af33b7caa68d7d2c786da78fe79d684b31b5/stackql/stackql/issues/661
og:image:altTwo fixes and two new tools, bundled because they form one coherent unit: the fixes harden the result path that the new tools depend on, and together they close the discover -> pull -> query loop f...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamejeffreyaven
hostnamegithub.com
expected-hostnamegithub.com
None92571a8944142227b7e19cd10918b1ddd06e5066c1ad5bc7e4769cf6140a87e6
turbo-cache-controlno-preview
go-importgithub.com/stackql/stackql git https://github.com/stackql/stackql.git
octolytics-dimension-user_id95105302
octolytics-dimension-user_loginstackql
octolytics-dimension-repository_id443987542
octolytics-dimension-repository_nwostackql/stackql
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id443987542
octolytics-dimension-repository_network_root_nwostackql/stackql
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release56fc8347865a14e2ec811533d68f929cf4e0ec19
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/stackql/stackql/issues/661#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fstackql%2Fstackql%2Fissues%2F661
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub Copilot appDirect agents from issue to mergehttps://github.com/features/ai/github-app
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
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
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
View all resourceshttps://github.com/resources
GitHub SponsorsFund open source developershttps://github.com/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/accelerator
GitHub Starshttps://stars.github.com
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://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/premium-support
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fstackql%2Fstackql%2Fissues%2F661
Sign up https://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=stackql%2Fstackql
Reloadhttps://github.com/stackql/stackql/issues/661
Reloadhttps://github.com/stackql/stackql/issues/661
Reloadhttps://github.com/stackql/stackql/issues/661
Please reload this pagehttps://github.com/stackql/stackql/issues/661
stackql https://github.com/stackql
stackqlhttps://github.com/stackql/stackql
Please reload this pagehttps://github.com/stackql/stackql/issues/661
Notifications https://github.com/login?return_to=%2Fstackql%2Fstackql
Fork 80 https://github.com/login?return_to=%2Fstackql%2Fstackql
Star 861 https://github.com/login?return_to=%2Fstackql%2Fstackql
Code https://github.com/stackql/stackql
Issues 101 https://github.com/stackql/stackql/issues
Pull requests 1 https://github.com/stackql/stackql/pulls
Discussions https://github.com/stackql/stackql/discussions
Actions https://github.com/stackql/stackql/actions
Projects https://github.com/stackql/stackql/projects
Wiki https://github.com/stackql/stackql/wiki
Security and quality 0 https://github.com/stackql/stackql/security
Insights https://github.com/stackql/stackql/pulse
Code https://github.com/stackql/stackql
Issues https://github.com/stackql/stackql/issues
Pull requests https://github.com/stackql/stackql/pulls
Discussions https://github.com/stackql/stackql/discussions
Actions https://github.com/stackql/stackql/actions
Projects https://github.com/stackql/stackql/projects
Wiki https://github.com/stackql/stackql/wiki
Security and quality https://github.com/stackql/stackql/security
Insights https://github.com/stackql/stackql/pulse
#666https://github.com/stackql/stackql/pull/666
[FEATURE] MCP: fix empty-result + nullable-render bugs, add registry discovery/pull toolshttps://github.com/stackql/stackql/issues/661#top
#666https://github.com/stackql/stackql/pull/666
enhancementNew feature or requesthttps://github.com/stackql/stackql/issues?q=state%3Aopen%20label%3A%22enhancement%22
https://github.com/jeffreyaven
jeffreyavenhttps://github.com/jeffreyaven
on May 29, 2026https://github.com/stackql/stackql/issues/661#issue-4546156112
enhancementNew feature or requesthttps://github.com/stackql/stackql/issues?q=state%3Aopen%20label%3A%22enhancement%22
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.