MCPcopy Create free account
hub / github.com/APIParkLab/APIPark / NewMCPConfig

Function NewMCPConfig

mcp-server/config.go:12–19  ·  view source on GitHub ↗
(typ TransportType, url string, headers map[string]string, alwaysAllow []string)

Source from the content-addressed store, hash-verified

10)
11
12func NewMCPConfig(typ TransportType, url string, headers map[string]string, alwaysAllow []string) *MCPConfig {
13 return &MCPConfig{
14 Type: typ,
15 URL: url,
16 Headers: headers,
17 AlwaysAllow: alwaysAllow,
18 }
19}
20
21type MCPConfig struct {
22 Type TransportType `json:"type"`

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected