diff --git a/mcp/mcp.go b/mcp/mcp.go index 61a1355..6b85708 100644 --- a/mcp/mcp.go +++ b/mcp/mcp.go @@ -1,3 +1,5 @@ +// SPDX-License-Identifier: EUPL-1.2 + // Package mcp provides a lightweight MCP (Model Context Protocol) server for CLI use. // For full GUI integration (display, webview, process management), see core-gui/pkg/mcp. package mcp diff --git a/mcp/registry.go b/mcp/registry.go index 80f6657..362a73a 100644 --- a/mcp/registry.go +++ b/mcp/registry.go @@ -44,7 +44,7 @@ func structSchema(v any) map[string]any { return nil } if t.NumField() == 0 { - return nil + return map[string]any{"type": "object", "properties": map[string]any{}} } properties := make(map[string]any)