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 state/回调、元数据检查与令牌撤销边界。
*
* @packageDocumentation
*/
import assert from "node:assert/strict";
import { createServer } from "node:net";
import test from "node:test";
@@ -12,7 +18,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 {