We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/bgauryy/octocode-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server
/**
* Session Module
*
* Persistent session management for Octocode packages.
* Stores session data in ~/.octocode/session.json with cross-platform support.
*/
// Types
export type {
PersistedSession,
SessionStats,
SessionUpdateResult,
SessionOptions,
} from './types.js';
// Storage constants
export { SESSION_FILE } from './storage.js';
// Core operations
export {
readSession,
writeSession,
getOrCreateSession,
getSessionId,
deleteSession,
flushSession,
flushSessionSync,
} from './storage.js';
// Stats operations
export {
updateSessionStats,
incrementToolCalls,
incrementPromptCalls,
incrementErrors,
incrementRateLimits,
resetSessionStats,
} from './storage.js';
// Testing utilities
export { _resetSessionState } from './storage.js';