From ceb8dc239c0c8b95ada57cde5f5fa8f4cb18f027 Mon Sep 17 00:00:00 2001 From: Ankitsinghsisodya Date: Fri, 15 May 2026 05:00:38 +0530 Subject: [PATCH] fix: clarify readonly field description in Server struct Updated the comment for the readonly field in the Server struct to specify that it disables deploy and delete operations when set to true, enhancing code clarity and documentation accuracy. --- pkg/mcp/mcp.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/mcp/mcp.go b/pkg/mcp/mcp.go index b43715ee34..703aba1d97 100644 --- a/pkg/mcp/mcp.go +++ b/pkg/mcp/mcp.go @@ -22,7 +22,7 @@ const ( type Server struct { OnInit func(context.Context) // Invoked when the server is initialized prefix string // Command prefix ("func" or "kn func") - readonly bool // enables deploy and delete + readonly bool // disables deploy and delete when true executor executor transport mcp.Transport // Transport to use (defaults to StdioTransport) impl *mcp.Server // implements the protocol