Skip to content

Commit 5cbf768

Browse files
fix(lightspeed): add DCR localization strings and fix config key rename in tests
Co-authored-by: Cursor <cursoragent@cursor.com>
1 parent ba0c5fe commit 5cbf768

7 files changed

Lines changed: 16 additions & 6 deletions

File tree

workspaces/lightspeed/plugins/lightspeed-backend/src/service/mcp-server.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,8 +79,8 @@ const MCP_CONFIG_MULTI = {
7979
};
8080

8181
const MCP_CONFIG_DCR = {
82-
lightspeed: {
83-
...BASE_CONFIG.lightspeed,
82+
'intelligent-assistant': {
83+
...BASE_CONFIG['intelligent-assistant'],
8484
mcpServers: [
8585
{
8686
name: 'static-mcp',

workspaces/lightspeed/plugins/lightspeed-backend/src/service/router.test.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -796,8 +796,8 @@ describe('lightspeed router tests', () => {
796796
);
797797

798798
const backendServer = await startBackendServer({
799-
lightspeed: {
800-
...BASE_CONFIG.lightspeed,
799+
'intelligent-assistant': {
800+
...BASE_CONFIG['intelligent-assistant'],
801801
mcpServers: [{ name: 'backstage-mcp', auth: 'dcr' }],
802802
},
803803
});
@@ -854,8 +854,8 @@ describe('lightspeed router tests', () => {
854854
);
855855

856856
const backendServer = await startBackendServer({
857-
lightspeed: {
858-
...BASE_CONFIG.lightspeed,
857+
'intelligent-assistant': {
858+
...BASE_CONFIG['intelligent-assistant'],
859859
mcpServers: [
860860
{ name: 'backstage-mcp', auth: 'dcr' },
861861
{ name: 'static-server', token: 'my-static-token' },

workspaces/lightspeed/plugins/lightspeed/src/translations/de.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -137,6 +137,8 @@ const lightspeedTranslationDe = createTranslationMessages({
137137
'mcp.settings.loading': 'MCP-Server werden geladen...',
138138
'mcp.settings.modalDescription':
139139
'Anmeldedaten werden verschlüsselt gespeichert und sind auf Ihr Profil beschränkt. Der intelligente Assistent arbeitet mit genau Ihren Berechtigungen.',
140+
'mcp.settings.modalDescriptionDcr':
141+
'Dieser Server verwendet Dynamic Client Registration (DCR). Token werden automatisch mit Ihrer Backstage-Identität erstellt — kein manuelles Token erforderlich.',
140142
'mcp.settings.name': 'Name',
141143
'mcp.settings.noneAvailable': 'Keine MCP-Server verfügbar.',
142144
'mcp.settings.personalAccessToken': 'Persönlicher Zugriffstoken',

workspaces/lightspeed/plugins/lightspeed/src/translations/es.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -134,6 +134,8 @@ const lightspeedTranslationEs = createTranslationMessages({
134134
'mcp.settings.loading': 'Cargando servidores MCP...',
135135
'mcp.settings.modalDescription':
136136
'Las credenciales se almacenan cifradas y se limitan a tu perfil. El asistente inteligente funcionará con exactamente tus permisos.',
137+
'mcp.settings.modalDescriptionDcr':
138+
'Este servidor utiliza Dynamic Client Registration (DCR). Los tokens se generan automáticamente usando tu identidad de Backstage — no se necesita un token manual.',
137139
'mcp.settings.name': 'Nombre',
138140
'mcp.settings.noneAvailable': 'No hay servidores MCP disponibles.',
139141
'mcp.settings.personalAccessToken': 'Token de acceso personal',

workspaces/lightspeed/plugins/lightspeed/src/translations/fr.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -137,6 +137,8 @@ const lightspeedTranslationFr = createTranslationMessages({
137137
'mcp.settings.loading': 'Chargement des serveurs MCP...',
138138
'mcp.settings.modalDescription':
139139
'Les identifiants sont chiffrés au repos et limités à votre profil. L\u2019assistant intelligent fonctionnera avec exactement vos autorisations.',
140+
'mcp.settings.modalDescriptionDcr':
141+
'Ce serveur utilise Dynamic Client Registration (DCR). Les jetons sont générés automatiquement à partir de votre identité Backstage — aucun jeton manuel n\u2019est nécessaire.',
140142
'mcp.settings.name': 'Nom',
141143
'mcp.settings.noneAvailable': 'Aucun serveur MCP disponible.',
142144
'mcp.settings.personalAccessToken': "Jeton d'accès personnel",

workspaces/lightspeed/plugins/lightspeed/src/translations/it.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -135,6 +135,8 @@ const lightspeedTranslationIt = createTranslationMessages({
135135
'mcp.settings.loading': 'Caricamento dei server MCP...',
136136
'mcp.settings.modalDescription':
137137
"Le credenziali sono crittografate a riposo e associate al tuo profilo. L'assistente intelligente opererà con esattamente le tue autorizzazioni.",
138+
'mcp.settings.modalDescriptionDcr':
139+
'Questo server utilizza Dynamic Client Registration (DCR). I token vengono generati automaticamente utilizzando la tua identità Backstage — non è necessario alcun token manuale.',
138140
'mcp.settings.name': 'Nome',
139141
'mcp.settings.noneAvailable': 'Nessun server MCP disponibile.',
140142
'mcp.settings.personalAccessToken': 'Token di accesso personale',

workspaces/lightspeed/plugins/lightspeed/src/translations/ja.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -133,6 +133,8 @@ const lightspeedTranslationJa = createTranslationMessages({
133133
'mcp.settings.loading': 'MCP サーバーを読み込み中...',
134134
'mcp.settings.modalDescription':
135135
'認証情報は保存時に暗号化され、あなたのプロファイルに限定されます。インテリジェントアシスタントはあなたの権限で動作します。',
136+
'mcp.settings.modalDescriptionDcr':
137+
'このサーバーは Dynamic Client Registration (DCR) を使用しています。トークンはあなたの Backstage ID を使用して自動的に発行されるため、手動でのトークン入力は不要です。',
136138
'mcp.settings.name': '名前',
137139
'mcp.settings.noneAvailable': '利用可能な MCP サーバーはありません。',
138140
'mcp.settings.personalAccessToken': '個人アクセストークン',

0 commit comments

Comments
 (0)