Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@rw-r-r-0644
Copy link

Description

Updated mcp-go version to v0.43.2 and ran go mod tidy

Fixes segfault when specifying an invalid MCP URL:

$ mcptools tools http://127.0.0.1:8000
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x40 pc=0x77467d]

After updating mcp-go, it just errors out:

$ mcptools tools http://127.0.0.1:8000
Error: init error: transport error: failed to send request: session terminated (404). need to re-initialize
Example: mcp tools npx -y @modelcontextprotocol/server-filesystem ~
exit status 1

Type of change

  • Bug fix (non-breaking change which fixes an issue)

How Has This Been Tested?

Run sample streamable HTTP MCP server, connect to it

Checklist:

  • My code follows the style guidelines of this project
  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • My changes generate no new warnings
  • I have added tests that prove my fix is effective or that my feature works
  • New and existing unit tests pass locally with my changes
  • Any dependent changes have been merged and published in downstream modules

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant