typescript-utcp
typescript-utcp copied to clipboard
Official typescript implementation of UTCP. UTCP is an open standard that lets AI agents call any API directly, without extra middleware.
## Summary by cubic Hardens redirect handling and OAuth2 token URL validation in `@utcp/http` to prevent SSRF and credential exfiltration. Every redirect hop is revalidated; streaming/SSE handshakes no longer follow...
`UtcpClient` and `DefaultVariableSubstitutor` throw `UtcpVariableNotFoundError` when a referenced variable is missing, and the `@utcp/sdk` README ("Error Handling", `packages/core/README.md`) shows `import { UtcpVariableNotFoundError } from '@utcp/sdk'`, but `@utcp/sdk` does not export...
### Summary `@utcp/mcp`'s `McpCommunicationProtocol._logInfo()` writes operational log lines **to stdout** (`console.log`) while the bridge communicates MCP over **stdio**. During every manual registration, startup discovery lines such as: ``` [McpCommunicationProtocol] Registering...
## Summary An `http` call template pointed at an OpenAPI spec, with credentials supplied in `auth` and no `auth_tools`, registers all of its tools successfully and then every tool call...
Would an opt-in Parallel Search MCP example fit in the TypeScript SDK? [Parallel Search MCP](https://docs.parallel.ai/integrations/mcp/search-mcp) lets users search the web and fetch page excerpts without an API key, with rate...
### Summary In `@utcp/mcp` (1.1.3), a cached MCP session whose server rejects requests with an **auth error** (e.g. HTTP 401 from an expired OAuth token) is **never evicted** from the...
## Summary `@utcp/mcp` accumulates abort listeners on **healthy, successfully-authenticated** cached sessions — not only on the dead-session/401 path described in #34. The driver is the MCP SDK's standalone GET SSE...
Surfaced during a cross-repo audit of the examples-parsing implementation. These are **pre-existing** gaps (they pre-date the examples work and also drop the schema, not just examples), so they were left...
## Question: Why use Node.js vm module instead of isolated-vm for sandboxing? While the implementation in `packages/code-mode/src/code_mode_utcp_client.ts` leverages Node.js's native `vm` module for executing LLM-generated TypeScript code in a sandboxed...