mirror of
https://github.com/lukaszraczylo/harness-sync.git
synced 2026-10-14 00:57:49 +00:00
18 lines
454 B
Go
18 lines
454 B
Go
package crush
|
|
|
|
import (
|
|
"path/filepath"
|
|
|
|
"github.com/lukaszraczylo/harness-sync/internal/adapter"
|
|
"github.com/lukaszraczylo/harness-sync/internal/adapter/common"
|
|
)
|
|
|
|
func importFrom(home string) (*adapter.ImportResult, error) {
|
|
cfgPath := filepath.Join(home, ".config", "crush", "crush.json")
|
|
servers, err := common.ImportMCPFromJSONFile(cfgPath, "mcpServers")
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return &adapter.ImportResult{MCP: servers}, nil
|
|
}
|