Repository navigation
What's Changed
- fix(mcp): use *[]byte for ExecHandler dest (#81) @weibaohui
mcp/tools/pod.ExecHandlerdeclaredvar execResult stringand calledExecute(&execResult), butcallbacks.ExecuteCommandreflect-checks that dest must be*[]byte, returning the "dest must be a pointer to a byte slice" error on every call. This made MCP toolrun_command_in_k8s_podunusable (downstream weibaohui/k8m issue #468). Now declared as[]byteand passes*[]byte.Execute(dest interface{})signature is unchanged; other callers already used[]byteand are unaffected.- Behavior change for MCP clients: response text now goes through
TextResult's[]bytecase (string([]byte)) instead of the default JSON-marshaled string case. Closer to rawkubectl execbytes; clients that depended on JSON escaping for special characters may need to update.
- Make testcase (#78) @weibaohui
Full Changelog: v0.2.71...v0.2.72