Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/cli/commands/add/command.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -265,7 +265,7 @@ export function registerAdd(program: Command) {
// Subcommand: add gateway
addCmd
.command('gateway')
.description('Add an MCP gateway to the project')
.description('Add a gateway to the project')
.option('--name <name>', 'Gateway name')
.option('--description <desc>', 'Gateway description')
.option('--authorizer-type <type>', 'Authorizer type: NONE or CUSTOM_JWT', 'NONE')
Expand Down
13 changes: 13 additions & 0 deletions src/cli/operations/identity/create-identity.ts
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,19 @@ export async function getAllCredentialNames(): Promise<string[]> {
}
}

/**
* Get list of existing credentials with full type information from the project.
*/
export async function getAllCredentials(): Promise<Credential[]> {
try {
const configIO = new ConfigIO();
const project = await configIO.readProjectSpec();
return project.credentials;
} catch {
return [];
}
}

/**
* Create a credential resource and add it to the project.
* Writes the credential config to agentcore.json and secrets to .env.local.
Expand Down
11 changes: 6 additions & 5 deletions src/cli/tui/components/CredentialSourcePrompt.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -137,17 +137,18 @@ export function CredentialSourcePrompt({
<Box flexDirection="column" gap={1}>
<Text bold>Identity Provider Setup</Text>
<Text dimColor>
{missingCredentials.length} identity provider{missingCredentials.length > 1 ? 's' : ''} configured:
{new Set(missingCredentials.map(c => c.providerName)).size} identity provider
{new Set(missingCredentials.map(c => c.providerName)).size > 1 ? 's' : ''} configured:
</Text>
<Box flexDirection="column" marginLeft={2}>
{missingCredentials.map(cred => (
<Text key={cred.envVarName} dimColor>
• {cred.providerName}
{[...new Set(missingCredentials.map(c => c.providerName))].map(name => (
<Text key={name} dimColor>
• {name}
</Text>
))}
</Box>
<Box marginTop={1}>
<Text dimColor>How would you like to provide the API keys?</Text>
<Text dimColor>How would you like to provide the credentials?</Text>
</Box>
<Box marginTop={1}>
<SelectList items={SOURCE_OPTIONS} selectedIndex={selectedIndex} />
Expand Down
Loading
Loading