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.20.1
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.22.0
Choose a head ref
  • 13 commits
  • 31 files changed
  • 13 contributors

Commits on Apr 16, 2025

  1. Add DefaultArray (#67)

    Allows to specify the default for an array parameter.
    
    Signed-off-by: Tibor Vass <teabee89@gmail.com>
    tiborvass authored Apr 16, 2025
    Configuration menu
    Copy the full SHA
    2e084df View commit details
    Browse the repository at this point in the history
  2. Unified Client Transport Layer for Streamable HTTP Support (#114)

    * add transport layer interface
    
    * universal client
    
    * impl sse & stdio transport based on the original client
    
    * refactor old client to provide compibility
    
    * rename
    
    * remove old client types
    
    * add test for stdio transport
    
    * rename 'done' to 'closed', to distinguish with ctx.Done
    
    * add cancelSSEStream for better handling of close
    
    * fix connection leak when start timeout
    
    * avoid multiple starting
    
    * use atomic for closed to be more natural compared to started
    
    * fix leak of timer
    
    * Create sse_test.go
    
    * enforce test
    
    * add comment
    
    * sse: add custom header in start request
    
    * update comment
    
    * comment
    
    * cover #88
    
    * cover #107
    
    * fix demo sse server in race test
    leavez authored Apr 16, 2025
    Configuration menu
    Copy the full SHA
    342c14d View commit details
    Browse the repository at this point in the history
  3. fix(tools): add omitempty to properties (#116)

    When there is no input to a tool, the `Properies` map is `nil` if the
    Tool is not created using `NewTool`. This causes the `property` field to
    be set to `null` and clients such as `claude-desktop` to skip the tools
    silently.
    
    Annotating the field as `omitempty` is inline with the behavior of the
    [typescript-sdk](https://github.com/modelcontextprotocol/typescript-sdk/blob/fbdeb06a4185ba2f7581603a768cd7171c64d6fc/src/types.ts#L749).
    jkoelker authored Apr 16, 2025
    Configuration menu
    Copy the full SHA
    7335e3a View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    3fa49a8 View commit details
    Browse the repository at this point in the history
  5. introduce NewToolResultErrorWithErr and update docs (#140)

    * introduce NewToolResultErrorWithErr and update docs
    
    * rename to NewToolResultErrorFromErr
    deviantony authored Apr 16, 2025
    Configuration menu
    Copy the full SHA
    37ac814 View commit details
    Browse the repository at this point in the history

Commits on Apr 17, 2025

  1. Configuration menu
    Copy the full SHA
    71b910b View commit details
    Browse the repository at this point in the history

Commits on Apr 19, 2025

  1. fix: add mutex to SSEServer to avoid data race between Start and Shut…

    …down; fix test error on Windows (#166 #172) (#170)
    
    * Add mutex to avoid data race bewteen Start and Shutdown in SSEServer struct
    
    * delete the mutex for session
    
    * Added checks for Windows
    
    * Update sse.go
    
    * Update stdio_test.go
    Wood-Q authored Apr 19, 2025
    Configuration menu
    Copy the full SHA
    d3c77df View commit details
    Browse the repository at this point in the history
  2. feat(server): convert ping messages to be spec compliant (#169)

    Replace string ping messages with MCP spec compliant JSON-RPC requests.
    
    - Update request handler to ignore ping responses (add `Result` field to
      `baseMessage` to disambiguate empty responses from other incoming
      messages)
    - Implement MCP spec compliant [ping
      request](https://modelcontextprotocol.io/specification/2024-11-05/basic/utilities/ping)
    robert-jackson-glean authored Apr 19, 2025
    Configuration menu
    Copy the full SHA
    8c0f2be View commit details
    Browse the repository at this point in the history
  3. feat: Implement Streamable-HTTP Client Basic (#168)

    * add streamable http transport
    
    * doc
    
    * update
    
    * remove default timeout
    
    * Update streamable_http.go
    
    * add http client
    
    * Update streamable_http.go
    
    * add timeout to close request
    
    * Update http.go
    
    * fix log
    leavez authored Apr 19, 2025
    Configuration menu
    Copy the full SHA
    dd3210c View commit details
    Browse the repository at this point in the history
  4. feat:Added the parameter parsing mode to parse any to the specified t…

    …ype (#148)
    
    * feat:Added the parameter parsing mode to parse any to the specified type
    
    * docs:AAdd GoDoc comments to exported functions.
    
    ---------
    
    Co-authored-by: lianghui <lianghui@ghgame.cn>
    hl540 and lianghui authored Apr 19, 2025
    Configuration menu
    Copy the full SHA
    0448984 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    79a0ac0 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    5378d0f View commit details
    Browse the repository at this point in the history
  7. Use correct mutex

    ezynda3 committed Apr 19, 2025
    Configuration menu
    Copy the full SHA
    013c047 View commit details
    Browse the repository at this point in the history
Loading