File tree Expand file tree Collapse file tree 1 file changed +12
-0
lines changed Expand file tree Collapse file tree 1 file changed +12
-0
lines changed Original file line number Diff line number Diff line change @@ -97,6 +97,7 @@ MCP Go handles all the complex protocol details and server management, so you ca
97
97
- [ Session Management] ( #session-management )
98
98
- [ Request Hooks] ( #request-hooks )
99
99
- [ Tool Handler Middleware] ( #tool-handler-middleware )
100
+ - [ Regenerating Server Code] ( #regenerating-server-code )
100
101
- [ Contributing] ( /CONTRIBUTING.md )
101
102
102
103
## Installation
@@ -760,3 +761,14 @@ Add middleware to tool call handlers using the `server.WithToolHandlerMiddleware
760
761
761
762
A recovery middleware option is available to recover from panics in a tool call and can be added to the server with the ` server.WithRecovery ` option.
762
763
764
+ ### Regenerating Server Code
765
+
766
+ Server hooks and request handlers are generated. Regenerate them by running:
767
+
768
+ ``` bash
769
+ go generate ./...
770
+ ```
771
+
772
+ You need ` go ` installed and the ` goimports ` tool available. The generator runs
773
+ ` goimports ` automatically to format and fix imports.
774
+
You can’t perform that action at this time.
0 commit comments