René's URL Explorer Experiment


Title: [FEATURE] MCP server: provide a JSON render option for tool result text content · Issue #669 · stackql/stackql · GitHub

Open Graph Title: [FEATURE] MCP server: provide a JSON render option for tool result text content · Issue #669 · stackql/stackql

X Title: [FEATURE] MCP server: provide a JSON render option for tool result text content · Issue #669 · stackql/stackql

Description: Summary MCP tool results from stackql mcp currently carry the typed payload in structuredContent and a markdown rendering in the text content block (pkg/mcp_server/render). That is spec-correct, but a large class of MCP clients - LLM hos...

Open Graph Description: Summary MCP tool results from stackql mcp currently carry the typed payload in structuredContent and a markdown rendering in the text content block (pkg/mcp_server/render). That is spec-correct, bu...

X Description: Summary MCP tool results from stackql mcp currently carry the typed payload in structuredContent and a markdown rendering in the text content block (pkg/mcp_server/render). That is spec-correct, bu...

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

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"[FEATURE] MCP server: provide a JSON render option for tool result text content","articleBody":"## Summary\n\nMCP tool results from `stackql mcp` currently carry the typed payload in\n`structuredContent` and a markdown rendering in the `text` content block\n(`pkg/mcp_server/render`). That is spec-correct, but a large class of MCP\nclients - LLM hosts, scripting clients, and SDK helpers - only consume the\n`text` content. For those clients the markdown table/KV rendering is lossy\nand unparseable, and there is no way to opt into machine-readable text.\n\n## Current behavior\n\n`tools/call run_select_query` returns:\n\n- `structuredContent`: `{\"rows\": [...]}` (typed DTO)\n- `content[0].text`: a markdown table (`RenderTable`) or KV records\n  (`RenderKV`), e.g. `# Pull Result\\n\\n## Record 1\\n...`\n\n## Proposed enhancement\n\nEither (or both) of:\n\n1. A per-call argument on the query/metadata tools, e.g.\n   `format: \"markdown\" | \"json\"` (default `markdown`, preserving current\n   behavior), where `json` renders the same DTO as compact JSON into the\n   text content block:\n\n   ~~~json\n   {\n     \"name\": \"run_select_query\",\n     \"arguments\": {\"sql\": \"SELECT 1\", \"format\": \"json\"}\n   }\n   ~~~\n\n2. A server-level render default in `--mcp.config`, consistent with the\n   existing config surface:\n\n   ~~~json\n   {\"server\": {\"render\": \"json\", \"audit\": {\"disabled\": true}}}\n   ~~~\n\nThe per-call argument is the more useful of the two for mixed workloads\n(human-facing hosts want markdown, embedded/scripting clients want JSON in\nthe same session).\n\n## Context\n\nEncountered while building the embedded Rust client (`stackql-mcp-rs`):\nclients that follow the MCP spec can and should prefer `structuredContent`\n(that is what we ship), but interop with text-only consumers currently\nrequires parsing markdown. Observed on stackql v0.10.500, MCP stdio mode.\n","author":{"url":"https://github.com/jeffreyaven","@type":"Person","name":"jeffreyaven"},"datePublished":"2026-06-13T01:10:02.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/669/stackql/issues/669"}

route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:9fc26f9d-384b-e16c-c858-25d0ab58d616
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-id864A:228A12:301EEEF:447B3B2:6A4D0948
html-safe-noncea07eb11cd2dbc9c6e4b31cf79f221ad5aceb47343864c76c18aebd26c18de1c4
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4NjRBOjIyOEExMjozMDFFRUVGOjQ0N0IzQjI6NkE0RDA5NDgiLCJ2aXNpdG9yX2lkIjoiMjA0MzYwNjc0MzI4ODQ0OTM1MiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac413582f39c3230618d3012f02078b91a777df82f207720bc8b7853e34a8e199e
hovercard-subject-tagissue:4653696211
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/669/issue_layout
twitter:imagehttps://opengraph.githubassets.com/83a89cee622c4bfc206bea820ef795fdaaa5059cd0d439ccbefd2a155aa267a6/stackql/stackql/issues/669
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/83a89cee622c4bfc206bea820ef795fdaaa5059cd0d439ccbefd2a155aa267a6/stackql/stackql/issues/669
og:image:altSummary MCP tool results from stackql mcp currently carry the typed payload in structuredContent and a markdown rendering in the text content block (pkg/mcp_server/render). That is spec-correct, bu...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamejeffreyaven
hostnamegithub.com
expected-hostnamegithub.com
None31e4db13a9e20081f2fac78f441659a6576e582bbb15e153f9c7fb6473aa29f5
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
releasefb70bd3c4b2bec429781b65419e912c66e2d5581
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/stackql/stackql/issues/669#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fstackql%2Fstackql%2Fissues%2F669
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%2F669
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/669
Reloadhttps://github.com/stackql/stackql/issues/669
Reloadhttps://github.com/stackql/stackql/issues/669
Please reload this pagehttps://github.com/stackql/stackql/issues/669
stackql https://github.com/stackql
stackqlhttps://github.com/stackql/stackql
Please reload this pagehttps://github.com/stackql/stackql/issues/669
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
#680https://github.com/stackql/stackql/pull/680
[FEATURE] MCP server: provide a JSON render option for tool result text contenthttps://github.com/stackql/stackql/issues/669#top
#680https://github.com/stackql/stackql/pull/680
https://github.com/jeffreyaven
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 Jun 13, 2026https://github.com/stackql/stackql/issues/669#issue-4653696211
jeffreyavenhttps://github.com/jeffreyaven
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.