Skip to content

Self-hosted workflows for coding-agent delivery. Orchestrate CodeBuddy, Codex and Claude Code with scripts and human approval gates. Includes Local workflows for coding assistants.

489 B
Raw Blame
package main

import (
	"context"
	"errors"
	"fmt"
	"log"
	"os"
	"os/signal"

	"agentflow/internal/mcpserver"
)

func main() {
	ctx, stop := signal.NotifyContext(context.Background(), os.Interrupt)
	defer stop()
	if err := mcpserver.ServeRemoteStdio(ctx); err != nil && !errors.Is(err, context.Canceled) {
		log.Fatal(err)
	}
}

func init() {
	if os.Getenv("AGENTFLOW_API_URL") == "" {
		fmt.Fprintln(os.Stderr, "agentflow-mcp: set AGENTFLOW_API_URL to the running LoopForge server")
	}
}