René's URL Explorer Experiment


Title: get_file_contents directory results emit a top-level structuredContent array that object-only clients reject · Issue #3864 · github/github-mcp-server · GitHub

Open Graph Title: get_file_contents directory results emit a top-level structuredContent array that object-only clients reject · Issue #3864 · github/github-mcp-server

X Title: get_file_contents directory results emit a top-level structuredContent array that object-only clients reject · Issue #3864 · github/github-mcp-server

Description: GitHub's official MCP Server. Contribute to github/github-mcp-server development by creating an account on GitHub.

Open Graph Description: GitHub's official MCP Server. Contribute to github/github-mcp-server development by creating an account on GitHub.

X Description: GitHub's official MCP Server. Contribute to github/github-mcp-server development by creating an account on GitHub.

Opengraph URL: https://github.com/github/github-mcp-server

X: @github

direct link

Domain: github.com

IPv4 address: 140.82.114.3


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"get_file_contents directory results emit a top-level structuredContent array that object-only clients reject","articleBody":"### Summary\n\n`get_file_contents` works for individual files but fails to list directories in an MCP client that requires `structuredContent` to be an object. The directory path produces a top-level JSON array and advertises that shape in `outputSchema`; the client rejects the response before exposing the entries.\n\n### Reproduction\n\nUsing the GitHub MCP Server connector (reported server version 2.1.0), call `get_file_contents` with `owner: \"github\"`, `repo: \"github-mcp-server\"`, `path: \"/\"`, `fields: [\"name\", \"type\", \"path\"]`. The same failure also occurs for `path: \"pkg/github\"` and `path: \"internal\"`. Reading a single file such as `pkg/github/repository_tool_types.go` succeeds.\n\nThe directory call fails with:\n\n```\nUpstream call failed on target 'remote': 1 validation error for CallToolResult\nstructuredContent\n  Input should be a valid dictionary [type=dict_type, input_value=[{'name': '.dockerignore'...}], input_type=list]\n```\n\n### Evidence in the repository\n\n- [`RepositoryContentsOutput.MarshalJSON`](https://github.com/github/github-mcp-server/blob/0663b830582af923e30fb14cb2e10dd3248baa86/pkg/github/repository_tool_types.go) calls `json.Marshal(out.Directory)` for directory results, so the structured output is an array at its root.\n- `repositoryContentsOutputSchema()` in the same file explicitly includes an `array` variant, reflected by the [`get_file_contents` tool snapshot](https://github.com/github/github-mcp-server/blob/0663b830582af923e30fb14cb2e10dd3248baa86/pkg/github/__toolsnaps__/get_file_contents.snap) (`outputSchema.oneOf`: null, array, object).\n\nThis is a specific interoperability failure, distinct from the general request in #1929 to populate `structuredContent` for tools.\n\n### Expected behavior / suggested fix\n\nDirectory listings should remain usable by clients that expect an object-valued `structuredContent`. Wrap the entries in an object, e.g. `{ \"entries\": [...] }`, and update the advertised output schema and tests accordingly. Preserve the existing text output for compatibility, and add a regression test that exercises a directory listing through an object-valued structured-content consumer.\n\n### Impact\n\nAgents using such clients cannot browse repository directories through `get_file_contents`, even when file reads and code search work.","author":{"url":"https://github.com/apps/self-gh-mcp-poc","@type":"Person","name":"self-gh-mcp-poc"},"datePublished":"2026-11-16T10:40:15Z","url":"https://github.com/github/github-mcp-server/issues/3864"}

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/issues/:id(.:format)
route-controllerissues
route-actionshow
fetch-noncev2:ade01a3f-fd27-7836-c47b-52c41843a7eb
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idE7D8:3422CF:29CB1C:36C2FB:6B061502
html-safe-nonceab3168572a4a7a2ca5f80e914e81a6c904ba6f18967edf0d1a34d51ebf680808
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFN0Q4OjM0MjJDRjoyOUNCMUM6MzZDMkZCOjZCMDYxNTAyIiwidmlzaXRvcl9pZCI6IjYxMjQxNDg4MjM1NDQ5NjAyNTgiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmac2e8b39a2301d7abefb65660cc419657998dc306de9e8f2245562f4b50c05da8e
hovercard-subject-tagrepository:942771284
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///issues/show
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/github/github-mcp-server/issues/3864
twitter:imagehttps://opengraph.githubassets.com/d996c822b8a08a1d7a875471dafc43c527ecf820b3f066371212740244f78785/github/github-mcp-server
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/d996c822b8a08a1d7a875471dafc43c527ecf820b3f066371212740244f78785/github/github-mcp-server
og:image:altGitHub's official MCP Server. Contribute to github/github-mcp-server development by creating an account on GitHub.
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
None97d4714e567728e1f85f88b0cf68c89f0f8a3dc41e8869af7aeb8195ad990374
turbo-cache-controlno-cache
go-importgithub.com/github/github-mcp-server git https://github.com/github/github-mcp-server.git
octolytics-dimension-user_id9919
octolytics-dimension-user_logingithub
octolytics-dimension-repository_id942771284
octolytics-dimension-repository_nwogithub/github-mcp-server
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id942771284
octolytics-dimension-repository_network_root_nwogithub/github-mcp-server
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
release866f202ebf7ac5aff8f633417d9fd8a53818a977
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/github/github-mcp-server/issues/3864#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fgithub%2Fgithub-mcp-server%2Fissues%2F3864
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%2Fgithub%2Fgithub-mcp-server%2Fissues%2F3864
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fissues%2Fshow&source=header-repo&source_repo=github%2Fgithub-mcp-server
Reloadhttps://github.com/github/github-mcp-server/issues/3864
Reloadhttps://github.com/github/github-mcp-server/issues/3864
Reloadhttps://github.com/github/github-mcp-server/issues/3864
https://github.com/github/github-mcp-server
New issuehttps://github.com/login?return_to=https://github.com/github/github-mcp-server/issues/3864
New issuehttps://github.com/login?return_to=https://github.com/github/github-mcp-server/issues/3864
#3869https://github.com/github/github-mcp-server/pull/3869
get_file_contents directory results emit a top-level structuredContent array that object-only clients rejecthttps://github.com/github/github-mcp-server/issues/3864#top
#3869https://github.com/github/github-mcp-server/pull/3869
https://github.com/apps/self-gh-mcp-poc
self-gh-mcp-pochttps://github.com/apps/self-gh-mcp-poc
on Nov 16, 2026https://github.com/github/github-mcp-server/issues/3864#issue-6419415973
RepositoryContentsOutput.MarshalJSONhttps://github.com/github/github-mcp-server/blob/0663b830582af923e30fb14cb2e10dd3248baa86/pkg/github/repository_tool_types.go
get_file_contents tool snapshothttps://github.com/github/github-mcp-server/blob/0663b830582af923e30fb14cb2e10dd3248baa86/pkg/github/__toolsnaps__/get_file_contents.snap
#1929https://github.com/github/github-mcp-server/issues/1929
Sign up for freehttps://github.com/signup?return_to=https://github.com/github/github-mcp-server/issues/3864
Sign in to commenthttps://github.com/login?return_to=https://github.com/github/github-mcp-server/issues/3864
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-Controlmax-age=0, private, must-revalidate

Viewport: width=device-width


URLs of crawlers that visited me.