ACP / MCP

This commit is contained in:
2026-06-12 11:44:19 +08:00
parent 2a9661a6ef
commit 4ea4adfd8e
47 changed files with 2558 additions and 240 deletions
+2 -2
View File
@@ -261,8 +261,8 @@ func (s *sessionService) Create(ctx context.Context, c Caller, in CreateSessionI
// 9. async spawn(失败时回滚 worktree + revoke MCP token)
extraEnv := map[string]string{
"ACW_MCP_TOKEN": tokenRes.Plaintext,
"ACW_MCP_URL": s.cfg.MCPPublicURL,
EnvMCPToken: tokenRes.Plaintext,
EnvMCPURL: s.cfg.MCPPublicURL,
}
go func() {
spawnCtx, cancel := context.WithTimeout(context.Background(), 60*time.Second)