refactor(agents): drop mcp fetch type re-export · openclaw/openclaw@0c651fd
vincentkoc
·
2026-06-17
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
|
1 | 1 | import { parseErrorResponse } from "@modelcontextprotocol/sdk/client/auth.js"; |
| 2 | +import type { FetchLike } from "@modelcontextprotocol/sdk/shared/transport.js"; |
2 | 3 | /** |
3 | 4 | * Regression coverage for MCP HTTP fetch wrappers. |
4 | 5 | * Verifies SSRF-guarded fetch, scoped dispatcher behavior, and same-origin headers. |
@@ -9,7 +10,6 @@ import {
|
9 | 10 | buildMcpHttpFetch, |
10 | 11 | withoutMcpAuthorizationHeader, |
11 | 12 | withSameOriginMcpHttpHeaders, |
12 | | -type FetchLike, |
13 | 13 | } from "./mcp-http-fetch.js"; |
14 | 14 | |
15 | 15 | const testGlobal = globalThis as Record<string, unknown>; |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。