{"modulePath":"github.com/modelcontextprotocol/go-sdk","version":"v1.8.0","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package main\n\nThe custom-method example demonstrates registering and calling a custom JSON-RPC method that is not part of the standard MCP spec.\n\nThe server registers a \"latin/translate\" method that translates simple English phrases into Latin. A client connects over an in-memory transport, calls the custom method, and prints the result.\n\n## Types\n\n```go\ntype TranslateParams struct {\n\tmcp.ParamsBase\n\tText string `json:\"text\"`\n}\n```\n\n```go\ntype TranslateResult struct {\n\tmcp.ResultBase\n\tLatin string `json:\"latin\"`\n}\n```\n\n","path":"github.com/modelcontextprotocol/go-sdk/examples/server/custom-method","name":"main","synopsis":"The custom-method example demonstrates registering and calling a custom JSON-RPC method that is not part of the standard MCP spec.","isRedistributable":true}
