MCPcopy Create free account
hub / github.com/atripati/ark / headers

Method headers

pkg/tools/github.go:117–126  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

115}
116
117func (g *githubTools) headers() map[string]string {
118 h := map[string]string{
119 "Accept": "application/vnd.github.v3+json",
120 "User-Agent": "ARK-AI-Runtime",
121 }
122 if g.token != "" {
123 h["Authorization"] = "Bearer " + g.token
124 }
125 return h
126}
127
128func (g *githubTools) listRepos(params map[string]interface{}) (string, error) {
129 user, _ := params["user"].(string)

Callers 7

listReposMethod · 0.95
getRepoMethod · 0.95
listIssuesMethod · 0.95
createIssueMethod · 0.95
listPullsMethod · 0.95
getUserMethod · 0.95
searchReposMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected