MCPcopy Create free account
hub / github.com/error311/FileRise / readLatestIssuedMcpToken

Function readLatestIssuedMcpToken

public/js/adminPanel.js:3509–3520  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

3507 };
3508
3509 const readLatestIssuedMcpToken = () => {
3510 const raw = String(mcpUserTokenOutputEl?.textContent || '').trim();
3511 if (!raw) return '';
3512 const lines = raw
3513 .split(/\r?\n/)
3514 .map((line) => line.trim())
3515 .filter(Boolean);
3516 if (!lines.length) return '';
3517 const lastLine = String(lines[lines.length - 1] || '').trim();
3518 if (!lastLine || /\s/.test(lastLine)) return '';
3519 return lastLine;
3520 };
3521
3522 const mcpTemplateContext = () => {
3523 const mcpUrl = normalizeMcpUrl(mcpTplBaseUrlEl?.value || inferMcpTemplateUrl());

Callers 2

seedMcpTemplateDefaultsFunction · 0.85
initGatewaysSectionFunction · 0.85

Calls 1

splitMethod · 0.80

Tested by

no test coverage detected