init.go 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. package codesandbox
  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. // need import in mcpregister/init.go
  12. func init() {
  13. mcpservers.Register(
  14. mcpservers.NewMcp(
  15. "code-sandbox",
  16. "Code Sandbox",
  17. model.PublicMCPTypeDocs,
  18. mcpservers.WithNameCN("代码沙箱"),
  19. mcpservers.WithTags([]string{"code-sandbox", "code", "sandbox"}),
  20. mcpservers.WithGitHubURL(
  21. "https://github.com/Automata-Labs-team/code-sandbox-mcp",
  22. ),
  23. mcpservers.WithDescription(
  24. "An MCP server to create secure code sandbox environment for executing code within Docker containers. This MCP server provides AI applications with a safe and isolated environment for running code while maintaining security through containerization.",
  25. ),
  26. mcpservers.WithDescriptionCN(
  27. "一个 MCP 服务器,用于在 Docker 容器内创建安全的代码沙箱环境以执行代码。该 MCP 服务器为 AI 应用程序提供了一个安全且隔离的运行代码环境,同时通过容器化技术保障安全性。",
  28. ),
  29. mcpservers.WithReadme(readme),
  30. mcpservers.WithReadmeCN(readmeCN),
  31. ),
  32. )
  33. }