init.go 809 B

12345678910111213141516171819202122232425
  1. package aiproxyopenapi
  2. import (
  3. "github.com/labring/aiproxy/core/model"
  4. mcpservers "github.com/labring/aiproxy/mcp-servers"
  5. )
  6. // need import in mcpregister/init.go
  7. func init() {
  8. mcpservers.Register(
  9. mcpservers.NewMcp(
  10. "aiproxy-openapi",
  11. "AI Proxy OpenAPI",
  12. model.PublicMCPTypeEmbed,
  13. mcpservers.WithNewServerFunc(NewServer),
  14. mcpservers.WithConfigTemplates(configTemplates),
  15. mcpservers.WithDescription(
  16. "AI Proxy OpenAPI MCP Server provides access to AI Proxy's administrative and management APIs through the Model Context Protocol, enabling automated management of AI services.",
  17. ),
  18. mcpservers.WithDescriptionCN(
  19. "AI Proxy OpenAPI MCP服务器通过模型上下文协议提供对AI Proxy管理和运营API的访问,实现AI服务的自动化管理。",
  20. ),
  21. ),
  22. )
  23. }