MCPcopy Create free account
hub / github.com/benjitaylor/agentation / createSession

Function createSession

mcp/src/server/store.ts:77–91  ·  view source on GitHub ↗
(url: string, projectId?: string)

Source from the content-addressed store, hash-verified

75
76 return {
77 createSession(url: string, projectId?: string): Session {
78 const session: Session = {
79 id: generateId(),
80 url,
81 status: "active",
82 createdAt: new Date().toISOString(),
83 projectId,
84 };
85 sessions.set(session.id, session);
86
87 const event = eventBus.emit("session.created", session.id, session);
88 events.push(event);
89
90 return session;
91 },
92
93 getSession(id: string): Session | undefined {
94 return sessions.get(id);

Callers 1

createSessionHandlerFunction · 0.70

Calls 4

getStoreFunction · 0.85
emitMethod · 0.80
createSessionMethod · 0.80
generateIdFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…