Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: mark3labs/mcp-go
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v0.22.0
Choose a base ref
...
head repository: mark3labs/mcp-go
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: v0.23.0
Choose a head ref
  • 10 commits
  • 13 files changed
  • 7 contributors

Commits on Apr 20, 2025

  1. Export SendNotificationToAllClients (#176)

    [First PR to project]
    
    Export sendNotificationToAllClients so it can be called from the MCP
    server to send unsolicited notifications to all clients (sessions).
    
    I have a use-case for my MCP server where I need to send notifications
    of state change to all sessions.  My MCP server is fronting a device
    hub, and the device's on the hub would like to send notifications up
    to the LLM.
    
    There is probably a reason why this was not exported, so please forgive
    this PR if that's the case.  I just could not figure out what the spec
    says about this.
    
    In any case, I added a test and tested with the Inspector.  The
    Inspectory sees the unsolicited notifications.  Cool!  I also tried with
    Cursor and Claude, but neither seem to recognize notifications, no
    matter how hard I tried to convince them.
    scottfeldman authored Apr 20, 2025
    Configuration menu
    Copy the full SHA
    ee6757f View commit details
    Browse the repository at this point in the history
  2. feat(server): Add hooks.AddOnUnregisterSession functionality (#175)

    Add OnUnregisterSession hook functionality to complement the existing 
    OnRegisterSession hooks, allowing code to run when a client session 
    is being removed from the server. In some cases, the server may want to
    do additional work when a session has been closed. For example, in the
    SSE server case where you may end up managing various logs for the
    duration of the session -- you would want to indicate that the session
    was finished.
    robert-jackson-glean authored Apr 20, 2025
    Configuration menu
    Copy the full SHA
    7afc2e5 View commit details
    Browse the repository at this point in the history
  3. Fix RemoveResource

    ezynda3 committed Apr 20, 2025
    Configuration menu
    Copy the full SHA
    138c1c3 View commit details
    Browse the repository at this point in the history
  4. Refact: pre-allocate memory for memory-efficiency (#178)

    * pre-allocate memory for memory efficiency
    
    * fix bug for calling func SendNotificationToAllClients
    cryo-zd authored Apr 20, 2025
    Configuration menu
    Copy the full SHA
    4033730 View commit details
    Browse the repository at this point in the history
  5. Fix spelling

    ezynda3 committed Apr 20, 2025
    Configuration menu
    Copy the full SHA
    dd7dcc5 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    9f39a43 View commit details
    Browse the repository at this point in the history

Commits on Apr 22, 2025

  1. fix sse shutdown (#128)

    karngyan authored Apr 22, 2025
    Configuration menu
    Copy the full SHA
    2e4af4c View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    be0d8cb View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    6760d87 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    781b732 View commit details
    Browse the repository at this point in the history
Loading