MCPcopy
hub / github.com/garrytan/gstack / recordCommand

Function recordCommand

browse/src/token-registry.ts:414–417  ·  view source on GitHub ↗
(token: string)

Source from the content-addressed store, hash-verified

412 * Record that a command was executed by this token.
413 */
414export function recordCommand(token: string): void {
415 const info = tokens.get(token);
416 if (info) info.commandCount++;
417}
418
419/**
420 * Revoke a token by client ID. Returns true if found and revoked.

Callers 2

Calls 1

getMethod · 0.45

Tested by

no test coverage detected