MCPcopy Create free account
hub / github.com/astercloud/aster / main

Function main

examples/recipe/main.go:15–34  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

13)
14
15func main() {
16 fmt.Println("📖 Recipe System 示例")
17 fmt.Println("================================")
18
19 // 创建临时目录
20 tmpDir, err := os.MkdirTemp("", "aster-recipe-demo")
21 if err != nil {
22 log.Fatalf("创建临时目录失败: %v", err)
23 }
24 defer func() { _ = os.RemoveAll(tmpDir) }()
25
26 // 演示各种 Recipe 功能
27 demonstrateBasicRecipe(tmpDir)
28 demonstrateBuilderPattern()
29 demonstrateMCPExtensions(tmpDir)
30 demonstrateParameters(tmpDir)
31 demonstratePermissions(tmpDir)
32
33 fmt.Println("\n✅ Recipe System 示例完成!")
34}
35
36// 演示基础 Recipe
37func demonstrateBasicRecipe(tmpDir string) {

Callers

nothing calls this directly

Calls 5

demonstrateBasicRecipeFunction · 0.85
demonstrateMCPExtensionsFunction · 0.85
demonstrateParametersFunction · 0.85
demonstratePermissionsFunction · 0.85

Tested by

no test coverage detected