MCPcopy Create free account
hub / github.com/Chat2AnyLLM/code-agent-manager / parseEnv

Function parseEnv

internal/cli/mcp.go:324–335  ·  view source on GitHub ↗
(entries []string)

Source from the content-addressed store, hash-verified

322}
323
324func parseEnv(entries []string) map[string]string {
325 if len(entries) == 0 {
326 return nil
327 }
328 out := map[string]string{}
329 for _, e := range entries {
330 if i := strings.IndexByte(e, '='); i > 0 {
331 out[e[:i]] = e[i+1:]
332 }
333 }
334 return out
335}
336
337// searchGitHubMCP searches GitHub for MCP server repositories matching a query.
338func searchGitHubMCP(query string, limit int) ([]ghSearchResult, error) {

Callers 1

mcpAddCommandMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected