Skip to content

[amctl] Phase 0 — CLI foundation, conventions & release pipeline #999

Description

@jhivandb

Login and instance registration as a single action: an instance is its URL, and the token is valid only against that URL. Plus the server-side discovery the client relies on to find its authorization server.

Delivered

  • Browser loginamctl login OAuth2 PKCE authorization-code flow for interactive use.
  • Headless loginamctl login --client-id --client-secret client-credentials flow for CI/automation.
  • Server-side discoveryGET /.well-known/oauth-protected-resource (RFC 9728) and a WWW-Authenticate: Bearer challenge with a resource_metadata pointer on 401 (RFC 6750); SERVER_PUBLIC_URL / OAUTH_AUTHORIZATION_SERVERS config with startup validation. Used by both amctl and the MCP server.
  • Default endpointamctl login defaults to the Agent Platform SaaS URL when --url is omitted; explicit --url still targets any instance (incl. http://localhost:9000).

PRs

Status

Done; #994 in review.

Part of the Agent Manager CLI epic.

Metadata

Metadata

Assignees

Labels

Type/New FeatureRepresents a request or task for a new feature

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions