sync: update MCP client from GameCraftTable

This commit is contained in:
2026-09-17 00:40:50 +08:00
parent d8f8f394f9
commit 6182738980
18 changed files with 551 additions and 23 deletions
+7 -1
View File
@@ -1,3 +1,9 @@
/**
* 通过本地 OAuth 与 MCP 模拟服务验证完整 PKCE 登录、令牌刷新和秘密隔离流程。
*
* @packageDocumentation
*/
import assert from "node:assert/strict";
import { createHash, randomUUID } from "node:crypto";
import express from "express";
@@ -15,7 +21,7 @@ class MemoryTokens implements TokenStore {
readonly values = new Map<string, OAuthTokens>();
async get(account: string): Promise<OAuthTokens | undefined> { return this.values.get(account); }
async set(account: string, tokens: OAuthTokens): Promise<void> { this.values.set(account, tokens); }
async delete(account: string): Promise<void> { this.values.delete(account); }
async delete(account: string): Promise<boolean> { return this.values.delete(account); }
}
class MemoryDiscovery {