You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
refactor: refactor codebase for improved formatting and readability
- Improve formatting by breaking up long function argument lists onto multiple lines for clarity and consistency
- Update test error reporting to use multi-line formatting for better readability
- No functional changes to logic or behavior; solely refactoring for style and maintainability
Signed-off-by: appleboy <appleboy.tw@gmail.com>
Copy file name to clipboardExpand all lines: pkg/operation/echo/echo.go
+9-3Lines changed: 9 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -7,8 +7,11 @@ import (
7
7
"github.com/mark3labs/mcp-go/mcp"
8
8
)
9
9
10
-
varEchoMessageTool=mcp.NewTool("echo_message",
11
-
mcp.WithDescription("Returns the input message prefixed with 'Echo: '. Useful for testing integration and server responsiveness."), // Tool description
10
+
varEchoMessageTool=mcp.NewTool(
11
+
"echo_message",
12
+
mcp.WithDescription(
13
+
"Returns the input message prefixed with 'Echo: '. Useful for testing integration and server responsiveness.",
14
+
), // Tool description
12
15
mcp.WithString("message", // Tool argument name
13
16
mcp.Description("The message to echo back in the response."), // Argument description
14
17
mcp.Required(), // Argument is required
@@ -23,7 +26,10 @@ var EchoMessageTool = mcp.NewTool("echo_message",
23
26
// Returns:
24
27
// - *mcp.CallToolResult: the result of the tool execution (here, a text message)
25
28
// - error: returns an error if the argument is invalid or processing fails
0 commit comments