main.go 871 B

12345678910111213141516171819202122232425262728293031
  1. package github
  2. import (
  3. "github.com/labring/aiproxy/core/model"
  4. mcpservers "github.com/labring/aiproxy/mcp-servers"
  5. )
  6. const defaultURL = "https://api.githubcopilot.com/mcp/"
  7. var configTemplates = mcpservers.ProxyConfigTemplates{
  8. "Authorization": {
  9. ConfigTemplate: mcpservers.ConfigTemplate{
  10. Name: "PAT",
  11. Required: mcpservers.ConfigRequiredTypeInitOrReusingOnly,
  12. Example: "ghp_dvAK8Al8aWP...",
  13. Description: "The Personal Access Token of the GitHub MCP server: https://github.com/settings/tokens",
  14. },
  15. Type: model.ParamTypeHeader,
  16. },
  17. "url": {
  18. ConfigTemplate: mcpservers.ConfigTemplate{
  19. Name: "URL",
  20. Required: mcpservers.ConfigRequiredTypeInitOptional,
  21. Example: defaultURL,
  22. Default: defaultURL,
  23. Description: "The Streamable http URL of the GitHub MCP server",
  24. },
  25. Type: model.ParamTypeURL,
  26. },
  27. }