Skip to content

Commit fcd087a

Browse files
committed
fix: use placeholder instead of initialValue for gateway discovery URL
1 parent 6c75c4b commit fcd087a

1 file changed

Lines changed: 17 additions & 6 deletions

File tree

src/cli/tui/screens/mcp/AddGatewayScreen.tsx

Lines changed: 17 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -104,9 +104,18 @@ export function AddGatewayScreen({ onComplete, onExit, existingGateways, unassig
104104
};
105105

106106
const handleJwtAgentClientSecret = (clientSecret: string) => {
107-
const audienceList = jwtAudience.split(',').map(s => s.trim()).filter(Boolean);
108-
const clientsList = jwtClients.split(',').map(s => s.trim()).filter(Boolean);
109-
const scopesList = jwtScopes.split(',').map(s => s.trim()).filter(Boolean);
107+
const audienceList = jwtAudience
108+
.split(',')
109+
.map(s => s.trim())
110+
.filter(Boolean);
111+
const clientsList = jwtClients
112+
.split(',')
113+
.map(s => s.trim())
114+
.filter(Boolean);
115+
const scopesList = jwtScopes
116+
.split(',')
117+
.map(s => s.trim())
118+
.filter(Boolean);
110119

111120
wizard.setJwtConfig({
112121
discoveryUrl: jwtDiscoveryUrl,
@@ -267,12 +276,14 @@ function JwtConfigInput({
267276
return (
268277
<Box flexDirection="column">
269278
<Text bold>Configure Custom JWT Authorizer</Text>
270-
<Text dimColor>Step {subStep + 1} of {totalSteps}</Text>
279+
<Text dimColor>
280+
Step {subStep + 1} of {totalSteps}
281+
</Text>
271282
<Box marginTop={1}>
272283
{subStep === 0 && (
273284
<TextInput
274-
prompt={`Discovery URL (e.g., https://cognito-idp.us-east-1.amazonaws.com/us-east-1_ABC123${OIDC_WELL_KNOWN_SUFFIX})`}
275-
initialValue="https://"
285+
prompt="Discovery URL"
286+
placeholder="https://example.com/.well-known/openid-configuration"
276287
onSubmit={onDiscoveryUrl}
277288
onCancel={onCancel}
278289
customValidation={value => {

0 commit comments

Comments
 (0)