mirror of
https://github.com/lukaszraczylo/harness-sync.git
synced 2026-10-12 00:45:22 +00:00
18 lines
444 B
Go
18 lines
444 B
Go
package kilo
|
|
|
|
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", "kilo", "kilo.json")
|
|
servers, err := common.ImportMCPFromJSONFile(cfgPath, "mcp")
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return &adapter.ImportResult{MCP: servers}, nil
|
|
}
|