This directory vendors packages/mcp/src from earendil-works/pi at commit e529a82c98fad679c6e20c03ffbb0bc7896fecb9: https://github.com/earendil-works/pi/tree/e529a82c98fad679c6e20c03ffbb0bc7896fecb9/packages/mcp Relative TypeScript imports use .js extensions for Atomic's compiled package. Atomic patches OAuth discovery to refresh changed authorization-server metadata. OAuth client metadata documents and exact callback path checks are ported from 1499466d8581035a4dec6c869725b8712aea4bbe. Atomic does not use Pi's hosted client identity. OAuth request cancellation and session close without a token refresh are ported from f10993bc7f28145df1375f3ff39c7f5c4cfc05f0. Upstream's license is reproduced below. The additional MCP TypeScript SDK notice is retained in LICENSES/modelcontextprotocol-typescript-sdk.txt. MIT License Copyright (c) 2025 Mario Zechner Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.