MCPcopy Create free account
hub / github.com/agent-tower/core / getInternalApiTokenPath

Function getInternalApiTokenPath

packages/server/src/utils/internal-api-token.ts:10–12  ·  view source on GitHub ↗
(dataDir = resolveDataDir())

Source from the content-addressed store, hash-verified

8export const INTERNAL_API_INVOCATION_ID_HEADER = 'x-agent-tower-invocation-id';
9export const INTERNAL_API_TOKEN_ENV = 'AGENT_TOWER_INTERNAL_TOKEN';
10const INTERNAL_API_TOKEN_FILE = 'internal-api-token';
11
12export function getInternalApiTokenPath(dataDir = resolveDataDir()): string {
13 return path.join(dataDir, INTERNAL_API_TOKEN_FILE);
14}
15

Callers 2

readInternalApiTokenFunction · 0.85

Calls 2

resolveDataDirFunction · 0.85
joinMethod · 0.45

Tested by

no test coverage detected