MCPcopy Create free account
hub / github.com/echoVic/blade-code / getSessionById

Method getSessionById

src/agent/MCPComponent.ts:361–368  ·  view source on GitHub ↗

* 根据 ID 获取会话

(sessionId: string)

Source from the content-addressed store, hash-verified

359 * 根据 ID 获取会话
360 */
361 private getSessionById(sessionId: string): MCPSession | undefined {
362 for (const session of this.sessions.values()) {
363 if (session.id === sessionId) {
364 return session;
365 }
366 }
367 return undefined;
368 }
369
370 /**
371 * 日志记录

Callers 2

loadServerResourcesMethod · 0.95
loadServerToolsMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected