sync: update MCP client from GameCraftTable
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user