multica-ai/multica · error
marshal cursor mcp config: %w
Error message
marshal cursor mcp config: %w
What it means
Error "marshal cursor mcp config: %w" thrown in multica-ai/multica.
Source
Thrown at server/internal/daemon/execenv/cursor_mcp.go:242
}
var obj map[string]any
if err := json.Unmarshal(server, &obj); err != nil {
return nil, fmt.Errorf("mcp_servers.%s: %w", name, err)
}
if obj == nil {
return nil, fmt.Errorf("mcp_servers.%s must be a JSON object", name)
}
}
return cfg.McpServers, nil
}
func marshalCursorMcpConfig(servers map[string]json.RawMessage) ([]byte, error) {
if servers == nil {
servers = map[string]json.RawMessage{}
}
data, err := json.MarshalIndent(cursorMcpConfigFile{McpServers: servers}, "", " ")
if err != nil {
return nil, fmt.Errorf("marshal cursor mcp config: %w", err)
}
return append(data, '\n'), nil
}
func cursorMcpApprovalKeys(projectRoot string, servers map[string]json.RawMessage) ([]string, error) {
names := make([]string, 0, len(servers))
for name := range servers {
names = append(names, name)
}
sort.Strings(names)
approvals := make([]string, 0, len(names))
for _, name := range names {
server, err := marshalCursorMcpApprovalServer(servers[name])
if err != nil {
return nil, fmt.Errorf("marshal mcp_servers.%s for cursor approval: %w", name, err)
}
pathJSON, err := json.Marshal(projectRoot)View on GitHub (pinned to 2c0912b6ec)
Solutions
- Retry; the cursor mcp config could not be serialized.
When it happens
Trigger: Thrown at server/internal/daemon/execenv/cursor_mcp.go:242 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of multica-ai/multica@2c0912b6ec (2026-08-15).
Data as JSON: /api/errors/58c4518e5a3da945.
Report an issue: GitHub.