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.37.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.38.0
Choose a head ref
  • 7 commits
  • 14 files changed
  • 9 contributors

Commits on Aug 6, 2025

  1. fix: resolve stdio transport race condition for concurrent tool calls (

    …#529)
    
    * fix: resolve stdio transport race condition for concurrent tool calls
    
    Fixes #528 by replacing goroutine-per-request pattern with a worker pool
    to prevent multiple goroutines from accessing the non-thread-safe bufio.Reader.
    
    - Add worker pool pattern with configurable size (default: 5 workers)
    - Add buffered queue for tool calls (default: 100 capacity)
    - Protect concurrent writes with mutex
    - Maintain backward compatibility while fixing the race condition
    - Add comprehensive test for concurrent tool calls
    
    🤖 Generated with [opencode](https://opencode.ai)
    
    Co-Authored-By: opencode <noreply@opencode.ai>
    
    * fix: address golangci-lint errcheck warnings
    
    - Add error checking for Write operations in concurrent tool calls test
    - Ensures all error return values are properly handled
    
    🤖 Generated with [opencode](https://opencode.ai)
    
    Co-Authored-By: opencode <noreply@opencode.ai>
    
    * refactor: remove redundant mutex around thread-safe sync.Map
    
    sync.Map is already thread-safe and doesn't require additional mutex protection.
    This simplifies the test code while maintaining the same functionality.
    
    🤖 Generated with [opencode](https://opencode.ai)
    
    Co-Authored-By: opencode <noreply@opencode.ai>
    
    * refactor: improve test control flow and add configuration bounds validation
    
    - Replace goto statements with labeled break for more idiomatic Go
    - Reduce test timeout from 5s to 2s for faster test execution
    - Add upper bounds validation for worker pool size (max 100) and queue size (max 10000)
    - Add tests to verify configuration bounds are respected
    - Log warnings when configuration values exceed maximum limits
    
    Addresses remaining CodeRabbit review feedback.
    
    🤖 Generated with [opencode](https://opencode.ai)
    
    Co-Authored-By: opencode <noreply@opencode.ai>
    
    * fix: use maximum values instead of defaults when limits exceeded
    
    When WithWorkerPoolSize or WithQueueSize receive values exceeding their
    maximum limits, use the maximum allowed value instead of falling back
    to the default. This better aligns with user expectations when they
    request large pool/queue sizes.
    
    🤖 Generated with [opencode](https://opencode.ai)
    
    Co-Authored-By: opencode <noreply@opencode.ai>
    
    * test: update stdio tests to expect maximum values when limits exceeded
    
    Update test expectations to match the new behavior where WithWorkerPoolSize
    and WithQueueSize use maximum values instead of defaults when the requested
    size exceeds limits.
    
    🤖 Generated with [opencode](https://opencode.ai)
    
    Co-Authored-By: opencode <noreply@opencode.ai>
    
    ---------
    
    Co-authored-by: opencode <noreply@opencode.ai>
    ezynda3 and opencode authored Aug 6, 2025
    Configuration menu
    Copy the full SHA
    9393526 View commit details
    Browse the repository at this point in the history

Commits on Aug 11, 2025

  1. fix CallToolResult json marshaling and unmarshaling: need structuredC… (

    #523)
    
    * fix CallToolResult json marshaling and unmarshaling: need structuredContent
    .
    
    * golang json use float to store number type
    
    * fix unittest: use NewMetaFromMap to create Result.Meta
    
    * mcptest: add a test case to response stuctured content
    
    * move after TestServerWithTool
    
    * fix unittest: no need check meta
    sunfuze authored Aug 11, 2025
    Configuration menu
    Copy the full SHA
    9c5d303 View commit details
    Browse the repository at this point in the history
  2. feat:add constants for resource content types (#489)

    Signed-off-by: FanOne <294350394@qq.com>
    CocaineCong authored Aug 11, 2025
    Configuration menu
    Copy the full SHA
    8a88d01 View commit details
    Browse the repository at this point in the history

Commits on Aug 12, 2025

  1. feat: add missing SetPrompts, DeleteResources, and SetResources metho…

    …ds (#445)
    
    Complete method parity across Tools, Prompts, and Resources:
    - SetPrompts/SetResources atomically replace all existing items
    - DeleteResources removes multiple resources by URI
    - Add comprehensive tests following existing patterns
    vasayxtx authored Aug 12, 2025
    Configuration menu
    Copy the full SHA
    a3d34d9 View commit details
    Browse the repository at this point in the history
  2. feat: support creating tools using go-struct-style input schema (#534)

    * feat: support creating tools using go-struct-style input schema
    
    * docs: add struct-based schema documentation for tools
    
    Add comprehensive documentation for the new struct-based schema features
    introduced in commit b46b0d7, including:
    - Input schema definition using Go structs with WithInputSchema
    - Output schema definition using WithOutputSchema
    - Structured tool handlers with NewStructuredToolHandler
    - Array output schemas
    - Schema tags reference
    - Complete file operations example with structured I/O
    
    🤖 Generated with [Claude Code](https://claude.ai/code)
    
    Co-Authored-By: Claude <noreply@anthropic.com>
    
    ---------
    
    Co-authored-by: Claude <noreply@anthropic.com>
    Grivn and claude authored Aug 12, 2025
    Configuration menu
    Copy the full SHA
    8a18f59 View commit details
    Browse the repository at this point in the history
  3. fix: remove duplicate methods server.SetPrompts & server.SetResources (

    …#542)
    
    Signed-off-by: Matthis Holleville <matthish29@gmail.com>
    matthisholleville authored Aug 12, 2025
    Configuration menu
    Copy the full SHA
    9f16336 View commit details
    Browse the repository at this point in the history

Commits on Aug 20, 2025

  1. Add releases notification

    ezynda3 committed Aug 20, 2025
    Configuration menu
    Copy the full SHA
    35ebaa5 View commit details
    Browse the repository at this point in the history
Loading