René's URL Explorer Experiment


Title: OpenAI API Compatibility Issue: Missing `additionalProperties: false` in Tool Parameter Schemas · Issue #376 · github/github-mcp-server · GitHub

Open Graph Title: OpenAI API Compatibility Issue: Missing `additionalProperties: false` in Tool Parameter Schemas · Issue #376 · github/github-mcp-server

X Title: OpenAI API Compatibility Issue: Missing `additionalProperties: false` in Tool Parameter Schemas · Issue #376 · github/github-mcp-server

Description: Describe the bug The github-mcp-server is incompatible with OpenAI models (like gpt-4.1 and gpt-4o-mini) that use function/tool calling. The OpenAI API requires tool parameter schemas to explicitly include "additionalProperties": false a...

Open Graph Description: Describe the bug The github-mcp-server is incompatible with OpenAI models (like gpt-4.1 and gpt-4o-mini) that use function/tool calling. The OpenAI API requires tool parameter schemas to explicitly...

X Description: Describe the bug The github-mcp-server is incompatible with OpenAI models (like gpt-4.1 and gpt-4o-mini) that use function/tool calling. The OpenAI API requires tool parameter schemas to explicitly...

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

X: @github

direct link

Domain: github.com

IPv4 address: 140.82.114.4


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"OpenAI API Compatibility Issue: Missing `additionalProperties: false` in Tool Parameter Schemas","articleBody":"### Describe the bug\n\nThe `github-mcp-server` is incompatible with OpenAI models (like `gpt-4.1` and `gpt-4o-mini`) that use function/tool calling. The OpenAI API requires tool parameter schemas to explicitly include `\"additionalProperties\": false` at the top level. Most tools generated by `github-mcp-server` are missing this property in their schema, causing API requests to fail with a `400 Bad Request` error. This prevents the server from being used effectively with OpenAI-based clients.\n\n### Affected version\n\n```\nGitHub MCP Server\nVersion: v0.2.1\nCommit: 9fa582d8d63522d70ce8f3af58265effb9645323\nBuild Date: 2025-04-21T23:03:01Z\n```\n\n### Steps to reproduce the behavior\n\n1.  Run the `ghcr.io/github/github-mcp-server:v0.2.1` Docker image (or build from source commit `9fa582d`) with a valid `GITHUB_PERSONAL_ACCESS_TOKEN`.\n2.  Configure an MCP client to use this server with an OpenAI model that supports function/tool calling (e.g., `gpt-4.1-nano`).\n3.  Attempt to invoke a tool like `add_issue_comment` or `get_pull_request` through the client.\n4.  Observe the error returned by the OpenAI API (either in server logs or client response).\n\n### Expected vs actual behavior\n\n**Expected:** The tool call should be successfully sent to the OpenAI model, and the model should be able to invoke the tool using the provided schema.\n\n**Actual:** The OpenAI API rejects the tool call with a `400 Bad Request` error because the schema is invalid. The specific error indicates that `additionalProperties` is required and must be `false` in the tool's parameter schema.\n\n### Logs\n\n**Example OpenAI Error Log:**\n```log\nERROR    API status error from OpenAI API: Error code: 400 - {'error': {'message': \"Invalid schema for function 'add_issue_comment': In context=(), 'additionalProperties' is required to be supplied and \n         to be false.\", 'type': 'invalid_request_error', 'param': 'tools[0].function.parameters', 'code': 'invalid_function_parameters'}}                                                                 \nWARNING  Attempt 1/1 failed: Invalid schema for function 'add_issue_comment': In context=(), 'additionalProperties' is required to be supplied and to be false.  \n```\n\n**Additional Context:**\n\nThe root cause appears to be the schema generation logic within the underlying `mcp-go` framework (`github.com/mark3labs/mcp-go`), which doesn't add the required `additionalProperties: false` property to the top-level parameter object for most tools defined via `mcp.NewTool`.\n\nIt's worth noting that while tools like `PushFiles` (`repositories.go`) and `CreatePullRequestReview` (`pullrequests.go`) correctly define `additionalProperties: false` for the schema of *items within their specific array parameters* (using `mcp.Items`), this specific fix doesn't apply to the *top-level parameters object* of those tools, nor does it apply to the simpler tools (like `add_issue_comment`) that lack such nested structures. The core issue remains the generation of the main tool parameter schema required by the OpenAI API.\n\nA fix within the `mcp-go` framework seems necessary for broad compatibility.","author":{"url":"https://github.com/p-breslin","@type":"Person","name":"p-breslin"},"datePublished":"2025-05-05T16:55:07Z","url":"https://github.com/github/github-mcp-server/issues/376"}

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/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:2a8157b7-c14b-6fad-6ac2-7b0cd9b5dde0
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idE104:133FC:110114D:178FB45:6B06B89A
html-safe-nonce74eec8dbff205cfff9cffb5c0aec4c9d7505ccb98749e1e603518d06a9a6be55
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFMTA0OjEzM0ZDOjExMDExNEQ6MTc4RkI0NTo2QjA2Qjg5QSIsInZpc2l0b3JfaWQiOiI3NDU2NTQyNjAxODM2NDExMDM0IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmacaf2dea0356632eaa5729adbf7272c880483750c2f7ac42cb60944ca5000453d7
hovercard-subject-tagissue:3040243497
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/github/github-mcp-server/376/issue_layout
twitter:imagehttps://opengraph.githubassets.com/c1cd229e990e4abcd092895a4dcc96d53aa133d9ccdc18ac94466d5934c3e28a/github/github-mcp-server/issues/376
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/c1cd229e990e4abcd092895a4dcc96d53aa133d9ccdc18ac94466d5934c3e28a/github/github-mcp-server/issues/376
og:image:altDescribe the bug The github-mcp-server is incompatible with OpenAI models (like gpt-4.1 and gpt-4o-mini) that use function/tool calling. The OpenAI API requires tool parameter schemas to explicitly...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamep-breslin
hostnamegithub.com
expected-hostnamegithub.com
None32031aaff792fa7ad778f7418e1fbfc0d525a5779804329b769aa75230448a18
turbo-cache-controlno-preview
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
release37014d914b7d14eede971655595f687a0202af40
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/github/github-mcp-server/issues/376#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fgithub%2Fgithub-mcp-server%2Fissues%2F376
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%2F376
Sign uphttps://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=github%2Fgithub-mcp-server
Reloadhttps://github.com/github/github-mcp-server/issues/376
Reloadhttps://github.com/github/github-mcp-server/issues/376
Reloadhttps://github.com/github/github-mcp-server/issues/376
githubhttps://github.com/github
github-mcp-serverhttps://github.com/github/github-mcp-server
Codehttps://github.com/github/github-mcp-server
Issues239 (239)https://github.com/github/github-mcp-server/issues
Pull requests228 (228)https://github.com/github/github-mcp-server/pulls
Discussionshttps://github.com/github/github-mcp-server/discussions
Actionshttps://github.com/github/github-mcp-server/actions
Security and quality2 (2)https://github.com/github/github-mcp-server/security
Insightshttps://github.com/github/github-mcp-server/insights
https://github.com/github/github-mcp-server
New issuehttps://github.com/login?return_to=https://github.com/github/github-mcp-server/issues/376
New issuehttps://github.com/login?return_to=https://github.com/github/github-mcp-server/issues/376
OpenAI API Compatibility Issue: Missing additionalProperties: false in Tool Parameter Schemashttps://github.com/github/github-mcp-server/issues/376#top
bughttps://github.com/github/github-mcp-server/issues?q=state%3Aopen%20label%3A%22bug%22
https://github.com/p-breslin
p-breslinhttps://github.com/p-breslin
on May 5, 2025https://github.com/github/github-mcp-server/issues/376#issue-3040243497
p-breslinhttps://github.com/p-breslin
bughttps://github.com/github/github-mcp-server/issues?q=state%3Aopen%20label%3A%22bug%22
on May 5, 2025https://github.com/github/github-mcp-server/issues/376#event-17522905959
https://github.com/williammartin
williammartinhttps://github.com/williammartin
on May 6, 2025https://github.com/github/github-mcp-server/issues/376#issuecomment-2854285172
MCP spechttps://github.com/modelcontextprotocol/modelcontextprotocol/blob/main/schema/2025-03-26/schema.json
https://private-user-images.githubusercontent.com/1611510/440758725-a7722caa-d615-46dc-8480-63be6af6ce22.png?jwt=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3OTU2MDI4ODcsIm5iZiI6MTc5NTYwMjU4NywicGF0aCI6Ii8xNjExNTEwLzQ0MDc1ODcyNS1hNzcyMmNhYS1kNjE1LTQ2ZGMtODQ4MC02M2JlNmFmNmNlMjIucG5nP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI2MTEyNSUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNjExMjVUMTAyOTQ3WiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9OWYxY2Q3NzBjNmYxOTIzY2IyZTBiOTEyYWEyNzg5OTZlN2RiZjBlYTM2Mjg3ZTk2ZGRkNTg4OTAyMGQ1MWI0YyZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QmcmVzcG9uc2UtY29udGVudC10eXBlPWltYWdlJTJGcG5nIn0.YnRa5UzQcpmWbe0JbmMOMl_9QbU8xxzSz_emoswdLrI
https://github.com/nknj
nknjhttps://github.com/nknj
on May 8, 2025https://github.com/github/github-mcp-server/issues/376#issuecomment-2864628326
structured outputshttps://platform.openai.com/docs/guides/structured-outputs?api-mode=responses#additionalproperties-false-must-always-be-set-in-objects
https://github.com/williammartin
williammartinhttps://github.com/williammartin
on May 12, 2025https://github.com/github/github-mcp-server/issues/376#issuecomment-2872621847
@p-breslinhttps://github.com/p-breslin
#376 (comment)https://github.com/github/github-mcp-server/issues/376#issuecomment-2864628326
https://github.com/p-breslin
p-breslinhttps://github.com/p-breslin
on May 13, 2025https://github.com/github/github-mcp-server/issues/376#issuecomment-2877473929
#376 (comment)https://github.com/github/github-mcp-server/issues/376#issuecomment-2864628326
https://github.com/tonytrg
tonytrghttps://github.com/tonytrg
on Jun 16, 2025https://github.com/github/github-mcp-server/issues/376#issuecomment-2976854159
tonytrghttps://github.com/tonytrg
completedhttps://github.com/github/github-mcp-server/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Acompleted
on Jun 16, 2025https://github.com/github/github-mcp-server/issues/376#event-18171752704
https://github.com/seodevse
seodevsehttps://github.com/seodevse
on Jul 22, 2025https://github.com/github/github-mcp-server/issues/376#issuecomment-3104516415
https://github.com/seodevse
seodevsehttps://github.com/seodevse
on Jul 22, 2025https://github.com/github/github-mcp-server/issues/376#issuecomment-3104579153
jedardenhttps://github.com/jedarden
on Dec 8, 2025https://github.com/github/github-mcp-server/issues/376#event-21418661814
fix: Add additionalProperties:false to tool schemas for OpenAI Respon…https://github.com/jedarden/CLASP/commit/e9afc651a1552ae755963baccd5e631cb2cf13e6
e9afc65https://github.com/jedarden/CLASP/commit/e9afc651a1552ae755963baccd5e631cb2cf13e6
CaseyRohttps://github.com/CaseyRo
on Jan 26, 2026https://github.com/github/github-mcp-server/issues/376#event-22298010080
Add ChatGPT MCP compatibility with schema transformationshttps://github.com/CaseyRo/mcp-things/commit/561410aa92a0a331962bae4e91be739093825b32
561410ahttps://github.com/CaseyRo/mcp-things/commit/561410aa92a0a331962bae4e91be739093825b32
Chevalicioushttps://github.com/Chevalicious
on Mar 13, 2026https://github.com/github/github-mcp-server/issues/376#event-23532228489
Add ChatGPT MCP compatibility with schema transformationshttps://github.com/Chevalicious/things3-mcp-gtd/commit/cc356b348d1b4076269f3a404a12567ddc43ad53
cc356b3https://github.com/Chevalicious/things3-mcp-gtd/commit/cc356b348d1b4076269f3a404a12567ddc43ad53
Sign up for freehttps://github.com/signup?return_to=https://github.com/github/github-mcp-server/issues/376
Sign in to commenthttps://github.com/login?return_to=https://github.com/github/github-mcp-server/issues/376
bughttps://github.com/github/github-mcp-server/issues?q=state%3Aopen%20label%3A%22bug%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

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.