MCPcopy Index your code
hub / github.com/npmx-dev/npmx.dev / showToken

Function showToken

cli/src/logger.ts:59–70  ·  view source on GitHub ↗
(token: string, port: number, frontendUrl: string)

Source from the content-addressed store, hash-verified

57 * Show the connection token in a nice box
58 */
59export function showToken(token: string, port: number, frontendUrl: string): void {
60 const connectUrl = `${frontendUrl}?token=${token}&port=${port}`
61
62 p.note(
63 [
64 `Open: ${styleText(['bold', 'underline', 'cyan'], connectUrl)}`,
65 '',
66 styleText('dim', `Or paste token manually: ${token}`),
67 ].join('\n'),
68 'Click to connect',
69 )
70}

Callers 1

runFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected