Skip to content

Conversation

matthewmcneely
Copy link
Member

@matthewmcneely matthewmcneely commented May 22, 2025

Description

This PR:

  • Adds a CORS middleware handler to the MCP SSE server
  • Adds sanity checking for malformed MCP arguments (prevent panics)
  • Renames tools, resources and prompts to use the snake_case convention of MCP discussion
  • Uses the correct error handling for returning errors to clients
  • Adds a comprehensive integration test for the MCP SSE implementation

Note, there's a MCP demo client here that you can spin up to test the SSE implementation.

Checklist

  • Code compiles correctly and linting passes locally
  • Tests added for new functionality, or regression tests for bug fixes added as applicable

@github-actions github-actions bot added the go Pull requests that update Go code label May 22, 2025
Copy link

trunk-io bot commented May 22, 2025

Running Code Quality on PRs by uploading data to Trunk will soon be removed. You can still run checks on your PRs using trunk-action - see the migration guide for more information.

@github-actions github-actions bot added the area/testing Testing related issues label May 23, 2025
@matthewmcneely matthewmcneely marked this pull request as ready for review May 23, 2025 19:58
@matthewmcneely matthewmcneely requested a review from a team as a code owner May 23, 2025 19:58
Copy link

trunk-io bot commented May 23, 2025

Static BadgeStatic BadgeStatic BadgeStatic Badge

View Full Report ↗︎Docs

@matthewmcneely matthewmcneely merged commit 003b17e into main May 27, 2025
23 checks passed
@matthewmcneely matthewmcneely deleted the matthewmcneely/mcp-updates-cors-etc branch May 27, 2025 16:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/testing Testing related issues go Pull requests that update Go code
Development

Successfully merging this pull request may close these issues.

2 participants