Skip to content

Embed client capabilities into the Session #491

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
Jul 23, 2025

Conversation

ardaguclu
Copy link
Contributor

@ardaguclu ardaguclu commented Jul 16, 2025

Description

Client sends its capabilities during the initialization step.

This PR embeds the client capabilities into the client session in this step to enable subsequent executions are able to check the client capabilities to determine what actions they can perform. For instance, MCP Server checks the support of elicitation. If elicitation is supported by the client, MCP Server can send elicitation request.

Fixes ##144

Type of Change

  • Bug fix (non-breaking change that fixes an issue)
  • New feature (non-breaking change that adds functionality)
  • MCP spec compatibility implementation
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • Documentation update
  • Code refactoring (no functional changes)
  • Performance improvement
  • Tests only (no functional changes)
  • Other (please describe):

Checklist

  • My code follows the code style of this project
  • I have performed a self-review of my own code
  • I have added tests that prove my fix is effective or that my feature works
  • I have updated the documentation accordingly

Summary by CodeRabbit

  • New Features
    • Sessions now store and retrieve client capabilities, enabling improved client feature awareness.
    • Added documentation with an example demonstrating client capability-based filtering for tool execution.
  • Tests
    • Verified correct storage and retrieval of client capabilities during session initialization.
  • Style
    • Minor formatting improvements in test case naming.

Client sends its capabilities during the initialization step.

This commit embeds the client capabilities into the client session  in this step to enable
subsequent executions are able to check the client capabilities to determine
what actions they can perform. For instance, MCP Server checks the support of elicitation.
If elicititation is supported by the client MCP Server can send elicitation request.
Copy link
Contributor

coderabbitai bot commented Jul 16, 2025

"""

Walkthrough

This change introduces atomic storage and retrieval of client capabilities in session implementations. It extends session structs with a new atomic field and corresponding getter/setter methods, updates the session interface, and ensures client capabilities are set during initialization. Associated tests are updated to verify correct storage and retrieval of client capabilities. Additionally, documentation is added demonstrating client capability based filtering in an MCP server example.

Changes

Files/Paths Change Summary
server/inprocess_session.go, server/sse.go, server/stdio.go Added clientCapabilities atomic field and getter/setter methods to session structs for client capabilities.
server/session.go Extended SessionWithClientInfo interface with GetClientCapabilities and SetClientCapabilities methods.
server/server.go Added call to SetClientCapabilities during session initialization.
server/session_test.go Extended test session struct with client capabilities field/methods; enhanced integration test for capabilities; minor test formatting fix.
www/docs/pages/servers/advanced.mdx Added example section demonstrating client capability based filtering in MCP server tool handling.

Estimated code review effort

2 (~20 minutes)

Possibly related PRs

Suggested labels

type: enhancement, area: sdk

Suggested reviewers

  • ezynda3
    """

📜 Recent review details

Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 64b8730 and a3b8828.

📒 Files selected for processing (1)
  • www/docs/pages/servers/advanced.mdx (1 hunks)
🚧 Files skipped from review as they are similar to previous changes (1)
  • www/docs/pages/servers/advanced.mdx

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share
🪧 Tips

Chat

There are 3 ways to chat with CodeRabbit:

  • Review comments: Directly reply to a review comment made by CodeRabbit. Example:
    • I pushed a fix in commit <commit_id>, please review it.
    • Explain this complex logic.
    • Open a follow-up GitHub issue for this discussion.
  • Files and specific lines of code (under the "Files changed" tab): Tag @coderabbitai in a new review comment at the desired location with your query. Examples:
    • @coderabbitai explain this code block.
    • @coderabbitai modularize this function.
  • PR comments: Tag @coderabbitai in a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples:
    • @coderabbitai gather interesting stats about this repository and render them as a table. Additionally, render a pie chart showing the language distribution in the codebase.
    • @coderabbitai read src/utils.ts and explain its main purpose.
    • @coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.
    • @coderabbitai help me debug CodeRabbit configuration file.

Support

Need help? Create a ticket on our support page for assistance with any issues or questions.

Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments.

CodeRabbit Commands (Invoked using PR comments)

  • @coderabbitai pause to pause the reviews on a PR.
  • @coderabbitai resume to resume the paused reviews.
  • @coderabbitai review to trigger an incremental review. This is useful when automatic reviews are disabled for the repository.
  • @coderabbitai full review to do a full review from scratch and review all the files again.
  • @coderabbitai summary to regenerate the summary of the PR.
  • @coderabbitai generate docstrings to generate docstrings for this PR.
  • @coderabbitai generate sequence diagram to generate a sequence diagram of the changes in this PR.
  • @coderabbitai resolve resolve all the CodeRabbit review comments.
  • @coderabbitai configuration to show the current CodeRabbit configuration for the repository.
  • @coderabbitai help to get help.

Other keywords and placeholders

  • Add @coderabbitai ignore anywhere in the PR description to prevent this PR from being reviewed.
  • Add @coderabbitai summary to generate the high-level summary at a specific location in the PR description.
  • Add @coderabbitai anywhere in the PR title to generate the title automatically.

CodeRabbit Configuration File (.coderabbit.yaml)

  • You can programmatically configure CodeRabbit by adding a .coderabbit.yaml file to the root of your repository.
  • Please see the configuration documentation for more information.
  • If your editor has YAML language server enabled, you can add the path at the top of this file to enable auto-completion and validation: # yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json

Documentation and Community

  • Visit our Documentation for detailed information on how to use CodeRabbit.
  • Join our Discord Community to get help, request features, and share feedback.
  • Follow us on X/Twitter for updates and announcements.

Copy link
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 0

🧹 Nitpick comments (2)
server/sse.go (1)

33-33: Fix typo in comment.

There's a typo in the comment: "capaabilities" should be "capabilities".

-	clientCapabilities  atomic.Value // stores session-specific client capaabilities
+	clientCapabilities  atomic.Value // stores session-specific client capabilities
server/stdio.go (1)

104-115: Fix variable naming for consistency.

The implementation follows established patterns correctly, but there's a variable naming issue in the getter method that should be fixed for clarity.

 func (s *stdioSession) GetClientCapabilities() mcp.ClientCapabilities {
 	if value := s.clientCapabilities.Load(); value != nil {
-		if clientInfo, ok := value.(mcp.ClientCapabilities); ok {
-			return clientInfo
+		if clientCapabilities, ok := value.(mcp.ClientCapabilities); ok {
+			return clientCapabilities
 		}
 	}
 	return mcp.ClientCapabilities{}
 }
📜 Review details

Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between baa7153 and 6eb1b27.

📒 Files selected for processing (6)
  • server/inprocess_session.go (2 hunks)
  • server/server.go (1 hunks)
  • server/session.go (1 hunks)
  • server/session_test.go (5 hunks)
  • server/sse.go (2 hunks)
  • server/stdio.go (2 hunks)
🧰 Additional context used
🧠 Learnings (7)
📓 Common learnings
Learnt from: ezynda3
PR: mark3labs/mcp-go#461
File: server/sampling.go:22-26
Timestamp: 2025-06-30T07:13:17.052Z
Learning: In the mark3labs/mcp-go project, the MCPServer.capabilities field is a struct value (serverCapabilities), not a pointer, so it cannot be nil and doesn't require nil checking. Only pointer fields within the capabilities struct should be checked for nil.
server/server.go (1)
Learnt from: ezynda3
PR: mark3labs/mcp-go#461
File: server/sampling.go:22-26
Timestamp: 2025-06-30T07:13:17.052Z
Learning: In the mark3labs/mcp-go project, the MCPServer.capabilities field is a struct value (serverCapabilities), not a pointer, so it cannot be nil and doesn't require nil checking. Only pointer fields within the capabilities struct should be checked for nil.
server/stdio.go (1)
Learnt from: ezynda3
PR: mark3labs/mcp-go#461
File: server/sampling.go:22-26
Timestamp: 2025-06-30T07:13:17.052Z
Learning: In the mark3labs/mcp-go project, the MCPServer.capabilities field is a struct value (serverCapabilities), not a pointer, so it cannot be nil and doesn't require nil checking. Only pointer fields within the capabilities struct should be checked for nil.
server/session.go (1)
Learnt from: ezynda3
PR: mark3labs/mcp-go#461
File: server/sampling.go:22-26
Timestamp: 2025-06-30T07:13:17.052Z
Learning: In the mark3labs/mcp-go project, the MCPServer.capabilities field is a struct value (serverCapabilities), not a pointer, so it cannot be nil and doesn't require nil checking. Only pointer fields within the capabilities struct should be checked for nil.
server/session_test.go (4)
Learnt from: ezynda3
PR: mark3labs/mcp-go#461
File: server/sampling.go:22-26
Timestamp: 2025-06-30T07:13:17.052Z
Learning: In the mark3labs/mcp-go project, the MCPServer.capabilities field is a struct value (serverCapabilities), not a pointer, so it cannot be nil and doesn't require nil checking. Only pointer fields within the capabilities struct should be checked for nil.
Learnt from: floatingIce91
PR: mark3labs/mcp-go#401
File: server/server.go:1082-1092
Timestamp: 2025-06-23T11:10:42.948Z
Learning: In Go MCP server, ServerTool.Tool field is only used for tool listing and indexing, not for tool execution or middleware. During handleToolCall, only the Handler field is used, so dynamic tools don't need the Tool field populated.
Learnt from: xinwo
PR: mark3labs/mcp-go#35
File: mcp/tools.go:107-137
Timestamp: 2025-03-04T06:59:43.882Z
Learning: Tool responses from the MCP server shouldn't contain RawInputSchema, which is why the UnmarshalJSON method for the Tool struct is implemented to handle only the structured InputSchema format.
Learnt from: octo
PR: mark3labs/mcp-go#149
File: mcptest/mcptest.go:0-0
Timestamp: 2025-04-21T21:26:32.945Z
Learning: In the mcptest package, prefer returning errors from helper functions rather than calling t.Fatalf() directly, giving callers flexibility in how to handle errors.
server/sse.go (2)
Learnt from: ezynda3
PR: mark3labs/mcp-go#461
File: server/sampling.go:22-26
Timestamp: 2025-06-30T07:13:17.052Z
Learning: In the mark3labs/mcp-go project, the MCPServer.capabilities field is a struct value (serverCapabilities), not a pointer, so it cannot be nil and doesn't require nil checking. Only pointer fields within the capabilities struct should be checked for nil.
Learnt from: leavez
PR: mark3labs/mcp-go#114
File: client/transport/sse.go:137-179
Timestamp: 2025-04-06T10:07:06.685Z
Learning: The SSE client implementation in the MCP-Go project uses a 30-second timeout for reading SSE events to match the behavior of the original implementation before the transport layer refactoring.
server/inprocess_session.go (1)
Learnt from: ezynda3
PR: mark3labs/mcp-go#461
File: server/sampling.go:22-26
Timestamp: 2025-06-30T07:13:17.052Z
Learning: In the mark3labs/mcp-go project, the MCPServer.capabilities field is a struct value (serverCapabilities), not a pointer, so it cannot be nil and doesn't require nil checking. Only pointer fields within the capabilities struct should be checked for nil.
🧬 Code Graph Analysis (5)
server/stdio.go (1)
mcp/types.go (1)
  • ClientCapabilities (441-451)
server/session.go (1)
mcp/types.go (1)
  • ClientCapabilities (441-451)
server/session_test.go (1)
mcp/types.go (3)
  • ClientCapabilities (441-451)
  • InitializeRequest (400-404)
  • Params (163-163)
server/sse.go (1)
mcp/types.go (1)
  • ClientCapabilities (441-451)
server/inprocess_session.go (1)
mcp/types.go (1)
  • ClientCapabilities (441-451)
🔇 Additional comments (11)
server/server.go (1)

586-586: LGTM! Client capabilities are properly stored during session initialization.

The addition follows the established pattern for storing client info and is placed in the correct location within the initialization handler.

server/session.go (1)

49-53: LGTM! Interface extension follows established patterns.

The new methods for client capabilities are consistent with the existing client info methods and provide a clean API for accessing capabilities across session types.

server/sse.go (1)

112-124: LGTM! Implementation follows established patterns.

The getter and setter methods for client capabilities are implemented consistently with the existing client info methods, with proper thread safety and error handling.

server/inprocess_session.go (2)

24-24: LGTM! Field addition follows established patterns.

The clientCapabilities field is properly added with atomic.Value for thread safety, consistent with other session implementations.


67-78: LGTM! Implementation follows established patterns.

The getter and setter methods for client capabilities are implemented consistently with the existing client info methods, with proper thread safety and error handling.

server/stdio.go (1)

59-59: LGTM! Field addition follows established patterns.

The clientCapabilities field is properly added with atomic.Value for thread safety, consistent with other session implementations.

server/session_test.go (5)

109-109: LGTM: Consistent atomic field addition

The addition of the clientCapabilities atomic.Value field follows the exact same pattern as the existing clientInfo atomic.Value field, maintaining consistency in the struct design.


141-152: LGTM: Well-implemented atomic getter and setter methods

The implementation correctly follows the established pattern from the existing GetClientInfo() and SetClientInfo() methods:

  • Proper atomic operations for thread-safe access
  • Safe type assertion with nil checks
  • Appropriate default return value (empty struct) when no value is set
  • Consistent error handling approach

905-905: LGTM: Minor formatting improvement

Good formatting fix adding proper spacing in the test name.


1116-1123: LGTM: Appropriate test data initialization

The test correctly initializes mcp.ClientCapabilities with a non-empty Sampling field, which provides meaningful test data to verify the storage and retrieval functionality works correctly.


1146-1149: LGTM: Comprehensive test verification

The test properly verifies that:

  1. The stored client capabilities can be retrieved via GetClientCapabilities()
  2. The retrieved capabilities match the original input data
  3. The atomic storage/retrieval mechanism works correctly

This ensures the new functionality integrates properly with the session initialization process.

@ardaguclu
Copy link
Contributor Author

Basically, after this PR, MCP Server will do something like this;

	session := ClientSessionFromContext(ctx)
	if session == nil {
		return nil, fmt.Errorf("no active session")
	}

	if clientSession, ok := session.(SessionWithClientInfo); ok {
             clientSession.GetClientCapabilities()
	}

@ardaguclu
Copy link
Contributor Author

@ezynda3 would you mind taking a look at this, when you have a chance?. Thank you.

@ardaguclu
Copy link
Contributor Author

Failure seems to be unrelated to the changes in this PR.

@ezynda3
Copy link
Contributor

ezynda3 commented Jul 22, 2025

Would you be able to add a bit of documentation to www/docs for this?

@ardaguclu
Copy link
Contributor Author

I've updated the PR by adding documentation about this functionality. Please let me know what you think. Thank you.

Copy link
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 1

🧹 Nitpick comments (1)
www/docs/pages/servers/advanced.mdx (1)

837-841: Remove stray leading space before s.AddTool for consistent formatting

The single extra space mis-aligns the call and breaks the otherwise uniform indentation in the snippet.

-     s.AddTool(
+    s.AddTool(
📜 Review details

Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between bd22595 and 64b8730.

📒 Files selected for processing (1)
  • www/docs/pages/servers/advanced.mdx (1 hunks)
🧠 Learnings (2)
📓 Common learnings
Learnt from: ezynda3
PR: mark3labs/mcp-go#461
File: server/sampling.go:22-26
Timestamp: 2025-06-30T07:13:17.052Z
Learning: In the mark3labs/mcp-go project, the MCPServer.capabilities field is a struct value (serverCapabilities), not a pointer, so it cannot be nil and doesn't require nil checking. Only pointer fields within the capabilities struct should be checked for nil.
www/docs/pages/servers/advanced.mdx (6)

Learnt from: ezynda3
PR: #461
File: server/sampling.go:22-26
Timestamp: 2025-06-30T07:13:17.052Z
Learning: In the mark3labs/mcp-go project, the MCPServer.capabilities field is a struct value (serverCapabilities), not a pointer, so it cannot be nil and doesn't require nil checking. Only pointer fields within the capabilities struct should be checked for nil.

Learnt from: floatingIce91
PR: #401
File: server/server.go:1082-1092
Timestamp: 2025-06-23T11:10:42.948Z
Learning: In Go MCP server, ServerTool.Tool field is only used for tool listing and indexing, not for tool execution or middleware. During handleToolCall, only the Handler field is used, so dynamic tools don't need the Tool field populated.

Learnt from: xinwo
PR: #35
File: mcp/tools.go:107-137
Timestamp: 2025-03-04T06:59:43.882Z
Learning: Tool responses from the MCP server shouldn't contain RawInputSchema, which is why the UnmarshalJSON method for the Tool struct is implemented to handle only the structured InputSchema format.

Learnt from: xinwo
PR: #35
File: mcp/tools.go:0-0
Timestamp: 2025-03-04T07:00:57.111Z
Learning: The Tool struct in the mark3labs/mcp-go project should handle both InputSchema and RawInputSchema consistently between MarshalJSON and UnmarshalJSON methods, even though the tools response from MCP server typically doesn't contain rawInputSchema.

Learnt from: xinwo
PR: #35
File: mcp/tools.go:0-0
Timestamp: 2025-03-04T07:00:57.111Z
Learning: The Tool struct in mark3labs/mcp-go handles both InputSchema and RawInputSchema formats. When unmarshaling JSON, it first tries to parse into a structured ToolInputSchema format, and if that fails, it falls back to using the raw schema format, providing symmetry with the MarshalJSON method.

Learnt from: davidleitw
PR: #451
File: mcp/tools.go:1192-1217
Timestamp: 2025-06-26T09:38:18.629Z
Learning: In mcp-go project, the maintainer prefers keeping builder pattern APIs simple without excessive validation for edge cases. The WithOutput* functions are designed to assume correct usage rather than defensive programming, following the principle of API simplicity over comprehensive validation.

🧰 Additional context used
🧠 Learnings (2)
📓 Common learnings
Learnt from: ezynda3
PR: mark3labs/mcp-go#461
File: server/sampling.go:22-26
Timestamp: 2025-06-30T07:13:17.052Z
Learning: In the mark3labs/mcp-go project, the MCPServer.capabilities field is a struct value (serverCapabilities), not a pointer, so it cannot be nil and doesn't require nil checking. Only pointer fields within the capabilities struct should be checked for nil.
www/docs/pages/servers/advanced.mdx (6)

Learnt from: ezynda3
PR: #461
File: server/sampling.go:22-26
Timestamp: 2025-06-30T07:13:17.052Z
Learning: In the mark3labs/mcp-go project, the MCPServer.capabilities field is a struct value (serverCapabilities), not a pointer, so it cannot be nil and doesn't require nil checking. Only pointer fields within the capabilities struct should be checked for nil.

Learnt from: floatingIce91
PR: #401
File: server/server.go:1082-1092
Timestamp: 2025-06-23T11:10:42.948Z
Learning: In Go MCP server, ServerTool.Tool field is only used for tool listing and indexing, not for tool execution or middleware. During handleToolCall, only the Handler field is used, so dynamic tools don't need the Tool field populated.

Learnt from: xinwo
PR: #35
File: mcp/tools.go:107-137
Timestamp: 2025-03-04T06:59:43.882Z
Learning: Tool responses from the MCP server shouldn't contain RawInputSchema, which is why the UnmarshalJSON method for the Tool struct is implemented to handle only the structured InputSchema format.

Learnt from: xinwo
PR: #35
File: mcp/tools.go:0-0
Timestamp: 2025-03-04T07:00:57.111Z
Learning: The Tool struct in the mark3labs/mcp-go project should handle both InputSchema and RawInputSchema consistently between MarshalJSON and UnmarshalJSON methods, even though the tools response from MCP server typically doesn't contain rawInputSchema.

Learnt from: xinwo
PR: #35
File: mcp/tools.go:0-0
Timestamp: 2025-03-04T07:00:57.111Z
Learning: The Tool struct in mark3labs/mcp-go handles both InputSchema and RawInputSchema formats. When unmarshaling JSON, it first tries to parse into a structured ToolInputSchema format, and if that fails, it falls back to using the raw schema format, providing symmetry with the MarshalJSON method.

Learnt from: davidleitw
PR: #451
File: mcp/tools.go:1192-1217
Timestamp: 2025-06-26T09:38:18.629Z
Learning: In mcp-go project, the maintainer prefers keeping builder pattern APIs simple without excessive validation for edge cases. The WithOutput* functions are designed to assume correct usage rather than defensive programming, following the principle of API simplicity over comprehensive validation.

Comment on lines 859 to 872
func handleCalculate(ctx context.Context, req mcp.CallToolRequest) (*mcp.CallToolResult, error) {
session := server.ClientSessionFromContext(ctx)
if session == nil {
return nil, fmt.Errorf("no active session")
}

if clientSession, ok := session.(server.SessionWithClientInfo); ok {
clientCapabilities := clientSession.GetClientCapabilities()
if clientCapabilities.Sampling == nil {
fmt.Println("sampling is not enabled in client")
}
}
}
```
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🛠️ Refactor suggestion

handleCalculate can fall through without a return → example will not compile

Go requires every control path in a non-void function to end with a return.
After the capability check the function falls through, triggering:

missing return at end of function

Provide a concrete result (or an explicit TODO) so users can copy-paste the snippet without errors.

 func handleCalculate(ctx context.Context, req mcp.CallToolRequest) (*mcp.CallToolResult, error) {
@@
-        if clientCapabilities.Sampling == nil {
-            fmt.Println("sampling is not enabled in client")
-        }
-    }
-}
+        if clientCapabilities.Sampling == nil {
+            return mcp.NewToolResultError("sampling capability not enabled"), nil
+        }
+    }
+
+    // TODO: implement calculation logic
+    return mcp.NewToolResultError("not implemented"), nil
+}
📝 Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
func handleCalculate(ctx context.Context, req mcp.CallToolRequest) (*mcp.CallToolResult, error) {
session := server.ClientSessionFromContext(ctx)
if session == nil {
return nil, fmt.Errorf("no active session")
}
if clientSession, ok := session.(server.SessionWithClientInfo); ok {
clientCapabilities := clientSession.GetClientCapabilities()
if clientCapabilities.Sampling == nil {
fmt.Println("sampling is not enabled in client")
}
}
}
```
func handleCalculate(ctx context.Context, req mcp.CallToolRequest) (*mcp.CallToolResult, error) {
session := server.ClientSessionFromContext(ctx)
if session == nil {
return nil, fmt.Errorf("no active session")
}
if clientSession, ok := session.(server.SessionWithClientInfo); ok {
clientCapabilities := clientSession.GetClientCapabilities()
if clientCapabilities.Sampling == nil {
return mcp.NewToolResultError("sampling capability not enabled"), nil
}
}
// TODO: implement calculation logic
return mcp.NewToolResultError("not implemented"), nil
}
🤖 Prompt for AI Agents
In www/docs/pages/servers/advanced.mdx around lines 859 to 872, the function
handleCalculate lacks a return statement on all control paths, causing a
compilation error. Add a return statement at the end of the function that
returns a valid *mcp.CallToolResult and nil error, or include a TODO comment
with a placeholder return to ensure the function always returns a value.

@ezynda3 ezynda3 merged commit cc3f765 into mark3labs:main Jul 23, 2025
4 checks passed
@ardaguclu ardaguclu deleted the embed-client-capabilities branch July 23, 2025 06:43
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.

2 participants