René's URL Explorer Experiment


Title: MCP Protocol Validation Error During Initialization · Issue #1 · DGdev91/java-mcp-sql-server · GitHub

Open Graph Title: MCP Protocol Validation Error During Initialization · Issue #1 · DGdev91/java-mcp-sql-server

X Title: MCP Protocol Validation Error During Initialization · Issue #1 · DGdev91/java-mcp-sql-server

Description: Summary The Java MCP SQL Server successfully connects to the database and all tools are functional, but Cursor IDE shows a protocol validation error during initialization with a red error indicator. The error occurs during the MCP handsh...

Open Graph Description: Summary The Java MCP SQL Server successfully connects to the database and all tools are functional, but Cursor IDE shows a protocol validation error during initialization with a red error indicator...

X Description: Summary The Java MCP SQL Server successfully connects to the database and all tools are functional, but Cursor IDE shows a protocol validation error during initialization with a red error indicator...

Opengraph URL: https://github.com/DGdev91/java-mcp-sql-server/issues/1

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"MCP Protocol Validation Error During Initialization","articleBody":"## Summary\nThe Java MCP SQL Server successfully connects to the database and all tools are functional, but Cursor IDE shows a protocol validation error during initialization with a red error indicator. The error occurs during the MCP handshake but the server recovers and continues to work normally.\n\n## Environment\n- **OS**: Windows 10 (Build 19045)\n- **Java Version**: openjdk version \"21.0.4\" 2024-07-16 LTS\n- **MCP Server Version**: 1.0.0\n- **JAR Location**: `C:\\java-mcp-sql-server-1.0.0.jar`\n- **Database**: Oracle \n- **Cursor IDE**: 2.2.43\n\n## Configuration\n```json\n{\n  \"java-mcp-sql-server\": {\n    \"command\": \"java\",\n    \"args\": [\"-jar\", \"C:\\\\java-mcp-sql-server-1.0.0.jar\"],\n    \"env\": {\n      \"JMCP_JDBC_URL\": \"jdbc:oracle:thin:@//your-server:1521/your-database\",\n      \"JMCP_DB_USERNAME\": \"YOUR_USERNAME\",\n      \"JMCP_DB_PASSWORD\": \"YOUR_PASSWORD\",\n      \"JMCP_MODE\": \"stdio\",\n      \"JMCP_QUERY_SELECT_ONLY\": \"false\"\n    }\n  }\n}\n```\n\n## Error Details\n\n### Server Startup (Successful)\n```\n23:47:21.222 [main] INFO  com.dgdev91.mcpsql.SqlMcpServer - Starting SQL MCP Server...\n23:47:21.481 [main] INFO  com.dgdev91.mcpsql.service.DatabaseService - Oracle driver loaded successfully\n23:47:23.111 [main] INFO  com.dgdev91.mcpsql.service.DatabaseService - Successfully connected to database: ORACLE\n23:47:23.242 [main] INFO  com.dgdev91.mcpsql.SqlMcpServer - Database connection successful. Type: ORACLE, Query SELECT only: false\n```\n\n### Protocol Validation Error\nCursor IDE reports a Zod validation error during initialization:\n\n```json\n{\n  \"code\": \"invalid_union\",\n  \"unionErrors\": [\n    {\n      \"issues\": [\n        {\n          \"code\": \"invalid_union\",\n          \"unionErrors\": [\n            {\n              \"issues\": [\n                {\n                  \"code\": \"invalid_type\",\n                  \"expected\": \"string\",\n                  \"received\": \"null\",\n                  \"path\": [\"id\"],\n                  \"message\": \"Expected string, received null\"\n                }\n              ],\n              \"name\": \"ZodError\"\n            },\n            {\n              \"issues\": [\n                {\n                  \"code\": \"invalid_type\",\n                  \"expected\": \"number\",\n                  \"received\": \"null\",\n                  \"path\": [\"id\"],\n                  \"message\": \"Expected number, received null\"\n                }\n              ],\n              \"name\": \"ZodError\"\n            }\n          ],\n          \"path\": [\"id\"],\n          \"message\": \"Invalid input\"\n        },\n        {\n          \"code\": \"invalid_type\",\n          \"expected\": \"string\",\n          \"received\": \"undefined\",\n          \"path\": [\"method\"],\n          \"message\": \"Required\"\n        },\n        {\n          \"code\": \"unrecognized_keys\",\n          \"keys\": [\"error\"],\n          \"path\": [],\n          \"message\": \"Unrecognized key(s) in object: 'error'\"\n        }\n      ],\n      \"name\": \"ZodError\"\n    }\n  ],\n  \"path\": [],\n  \"message\": \"Invalid input\"\n}\n```\n\n### Recovery (Successful)\nAfter the error, the server recovers:\n```\n23:47:24.394 [info] Handling ListOfferings action, server stored: true\n23:47:24.402 [info] listOfferings: Found 5 tools\n23:47:24.402 [info] Found 5 tools, 0 prompts, and 0 resources\n```\n\n## Expected Behavior\nThe MCP server should initialize without protocol validation errors. All messages sent during initialization should conform to the MCP protocol specification.\n\n## Actual Behavior\n- Server starts successfully ✅\n- Database connection established ✅\n- Tools are available and functional ✅\n- Protocol validation error during initialization ❌\n- Red error indicator in Cursor IDE ❌\n\n## Impact\n- **Severity**: Low (cosmetic issue)\n- **Functionality**: All tools work correctly after initialization\n- **User Experience**: Red error indicator is misleading and concerning\n\n## Steps to Reproduce\n1. Configure `mcp.json` with java-mcp-sql-server\n2. Restart Cursor IDE\n3. Check MCP server logs in Cursor\n4. Observe protocol validation error during initialization\n5. Verify tools are still functional (they are)\n\n## Additional Notes\n- The error appears to be related to a message sent during initialization that contains an `\"error\"` key with a `null` id\n- The server appears to send a non-standard message format that doesn't match MCP protocol expectations\n- This might be related to error handling or logging during the initialization phase\n- All 5 tools (`list_schemas`, `list_tables`, `get_table_structure`, `query_table`, `execute_query`) work correctly after initialization\n\n\n\n---\n\n**Note**: This issue was identified while using the server with Oracle database, but it may affect other database types as well.\n\n","author":{"url":"https://github.com/ahmed98Osama","@type":"Person","name":"ahmed98Osama"},"datePublished":"2025-12-23T22:02:29.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/1/java-mcp-sql-server/issues/1"}

route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:56a3b8a8-a058-d941-7345-f59ba13f8e08
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idD12C:268A21:79618F:A4199A:6A53045B
html-safe-noncea55559a79b438af071d606b732035dcf64aea2fd273a2adf6ff06457563fe9f4
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEMTJDOjI2OEEyMTo3OTYxOEY6QTQxOTlBOjZBNTMwNDVCIiwidmlzaXRvcl9pZCI6IjgyMTI5NjE4OTk3MTQ5MDUxNzkiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmac179790274de5b0fed2ad40a6a04f05b909fd34a52356c0db95c8548feb358d90
hovercard-subject-tagissue:3758681477
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/DGdev91/java-mcp-sql-server/1/issue_layout
twitter:imagehttps://opengraph.githubassets.com/3abac178e8017ac3184c4148958fdb2438ea58d0cc9e3beba5e14b70ec9fc3f8/DGdev91/java-mcp-sql-server/issues/1
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/3abac178e8017ac3184c4148958fdb2438ea58d0cc9e3beba5e14b70ec9fc3f8/DGdev91/java-mcp-sql-server/issues/1
og:image:altSummary The Java MCP SQL Server successfully connects to the database and all tools are functional, but Cursor IDE shows a protocol validation error during initialization with a red error indicator...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameahmed98Osama
hostnamegithub.com
expected-hostnamegithub.com
Noneb9a586c06a05a7a86fc7e3f4dbd03e42f6869085879aa184aa6369456dbd50fb
turbo-cache-controlno-preview
go-importgithub.com/DGdev91/java-mcp-sql-server git https://github.com/DGdev91/java-mcp-sql-server.git
octolytics-dimension-user_id428479
octolytics-dimension-user_loginDGdev91
octolytics-dimension-repository_id1109147634
octolytics-dimension-repository_nwoDGdev91/java-mcp-sql-server
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id1109147634
octolytics-dimension-repository_network_root_nwoDGdev91/java-mcp-sql-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
release07a982c1d40157c619b364352b704c3ce66bb332
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/DGdev91/java-mcp-sql-server/issues/1#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FDGdev91%2Fjava-mcp-sql-server%2Fissues%2F1
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/open-source/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/open-source/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/enterprise/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%2FDGdev91%2Fjava-mcp-sql-server%2Fissues%2F1
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=DGdev91%2Fjava-mcp-sql-server
Reloadhttps://github.com/DGdev91/java-mcp-sql-server/issues/1
Reloadhttps://github.com/DGdev91/java-mcp-sql-server/issues/1
Reloadhttps://github.com/DGdev91/java-mcp-sql-server/issues/1
DGdev91 https://github.com/DGdev91
java-mcp-sql-serverhttps://github.com/DGdev91/java-mcp-sql-server
Please reload this pagehttps://github.com/DGdev91/java-mcp-sql-server/issues/1
Notifications https://github.com/login?return_to=%2FDGdev91%2Fjava-mcp-sql-server
Fork 0 https://github.com/login?return_to=%2FDGdev91%2Fjava-mcp-sql-server
Star 1 https://github.com/login?return_to=%2FDGdev91%2Fjava-mcp-sql-server
Code https://github.com/DGdev91/java-mcp-sql-server
Issues 1 https://github.com/DGdev91/java-mcp-sql-server/issues
Pull requests 0 https://github.com/DGdev91/java-mcp-sql-server/pulls
Discussions https://github.com/DGdev91/java-mcp-sql-server/discussions
Actions https://github.com/DGdev91/java-mcp-sql-server/actions
Projects https://github.com/DGdev91/java-mcp-sql-server/projects
Security and quality 0 https://github.com/DGdev91/java-mcp-sql-server/security
Insights https://github.com/DGdev91/java-mcp-sql-server/pulse
Code https://github.com/DGdev91/java-mcp-sql-server
Issues https://github.com/DGdev91/java-mcp-sql-server/issues
Pull requests https://github.com/DGdev91/java-mcp-sql-server/pulls
Discussions https://github.com/DGdev91/java-mcp-sql-server/discussions
Actions https://github.com/DGdev91/java-mcp-sql-server/actions
Projects https://github.com/DGdev91/java-mcp-sql-server/projects
Security and quality https://github.com/DGdev91/java-mcp-sql-server/security
Insights https://github.com/DGdev91/java-mcp-sql-server/pulse
MCP Protocol Validation Error During Initializationhttps://github.com/DGdev91/java-mcp-sql-server/issues/1#top
https://github.com/ahmed98Osama
ahmed98Osamahttps://github.com/ahmed98Osama
on Dec 23, 2025https://github.com/DGdev91/java-mcp-sql-server/issues/1#issue-3758681477
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.