Skip to content

Commit facbc8d

Browse files
committed
Fix the redirect uri being empty
The default value for the redirect uri was set in the oauth manager, but that was already too late, we already created the remote mcp client Signed-off-by: Djordje Lukic <[email protected]>
1 parent 8692cde commit facbc8d

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

cmd/root/run.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -181,6 +181,10 @@ func doRunCommand(ctx context.Context, args []string, exec bool) error {
181181
agentFilename = tmpFile.Name()
182182
}
183183

184+
if runConfig.RedirectURI == "" {
185+
runConfig.RedirectURI = "http://localhost:8083/oauth-callback"
186+
}
187+
184188
agents, err = teamloader.Load(ctx, agentFilename, runConfig)
185189
if err != nil {
186190
return err

0 commit comments

Comments
 (0)