init.go 1.1 KB

1234567891011121314151617181920212223242526272829303132333435
  1. package howtocook
  2. import (
  3. _ "embed"
  4. "github.com/labring/aiproxy/core/model"
  5. mcpservers "github.com/labring/aiproxy/mcp-servers"
  6. )
  7. //go:embed README.md
  8. var readme string
  9. //go:embed README.cn.md
  10. var readmeCN string
  11. func init() {
  12. mcpservers.Register(
  13. mcpservers.NewMcp(
  14. "howtocook",
  15. "HowToCook Recipe Server",
  16. model.PublicMCPTypeEmbed,
  17. mcpservers.WithNameCN("程序员做饭指南"),
  18. mcpservers.WithNewServerFunc(NewServer),
  19. mcpservers.WithListToolsFunc(ListTools),
  20. mcpservers.WithDescription(
  21. "A recipe recommendation server based on the HowToCook project. Provides intelligent meal planning, recipe search by category, and dish recommendations based on the number of people.",
  22. ),
  23. mcpservers.WithDescriptionCN("基于程序员做饭指南项目的菜谱推荐服务器。提供智能膳食计划、按分类搜索菜谱以及根据用餐人数推荐菜品的功能。"),
  24. mcpservers.WithGitHubURL("https://github.com/Anduin2017/HowToCook"),
  25. mcpservers.WithTags([]string{"recipe", "cooking", "meal", "food", "chinese"}),
  26. mcpservers.WithReadme(readme),
  27. mcpservers.WithReadmeCN(readmeCN),
  28. ),
  29. )
  30. }