Add loan-advisor-chatgpt-app (part 5)
Browse filesThis view is limited to 50 files because it contains too many changes. See raw diff
- loan-advisor-chatgpt-app/node_modules/@modelcontextprotocol/sdk/LICENSE +21 -0
- loan-advisor-chatgpt-app/node_modules/@modelcontextprotocol/sdk/README.md +172 -0
- loan-advisor-chatgpt-app/node_modules/@modelcontextprotocol/sdk/dist/esm/shared/uriTemplate.js +239 -0
- loan-advisor-chatgpt-app/node_modules/@modelcontextprotocol/sdk/dist/esm/shared/uriTemplate.js.map +1 -0
- loan-advisor-chatgpt-app/node_modules/@modelcontextprotocol/sdk/dist/esm/spec.types.d.ts +2311 -0
- loan-advisor-chatgpt-app/node_modules/@modelcontextprotocol/sdk/dist/esm/spec.types.d.ts.map +1 -0
- loan-advisor-chatgpt-app/node_modules/@modelcontextprotocol/sdk/dist/esm/spec.types.js +24 -0
- loan-advisor-chatgpt-app/node_modules/@modelcontextprotocol/sdk/dist/esm/spec.types.js.map +1 -0
- loan-advisor-chatgpt-app/node_modules/@modelcontextprotocol/sdk/dist/esm/types.d.ts +0 -0
- loan-advisor-chatgpt-app/node_modules/@modelcontextprotocol/sdk/dist/esm/types.d.ts.map +1 -0
- loan-advisor-chatgpt-app/node_modules/@modelcontextprotocol/sdk/dist/esm/types.js +2065 -0
- loan-advisor-chatgpt-app/node_modules/@modelcontextprotocol/sdk/dist/esm/types.js.map +1 -0
- loan-advisor-chatgpt-app/node_modules/@modelcontextprotocol/sdk/dist/esm/validation/ajv-provider.d.ts +53 -0
- loan-advisor-chatgpt-app/node_modules/@modelcontextprotocol/sdk/dist/esm/validation/ajv-provider.d.ts.map +1 -0
- loan-advisor-chatgpt-app/node_modules/@modelcontextprotocol/sdk/dist/esm/validation/ajv-provider.js +87 -0
- loan-advisor-chatgpt-app/node_modules/@modelcontextprotocol/sdk/dist/esm/validation/ajv-provider.js.map +1 -0
- loan-advisor-chatgpt-app/node_modules/@modelcontextprotocol/sdk/dist/esm/validation/cfworker-provider.d.ts +51 -0
- loan-advisor-chatgpt-app/node_modules/@modelcontextprotocol/sdk/dist/esm/validation/cfworker-provider.d.ts.map +1 -0
- loan-advisor-chatgpt-app/node_modules/@modelcontextprotocol/sdk/dist/esm/validation/cfworker-provider.js +65 -0
- loan-advisor-chatgpt-app/node_modules/@modelcontextprotocol/sdk/dist/esm/validation/cfworker-provider.js.map +1 -0
- loan-advisor-chatgpt-app/node_modules/@modelcontextprotocol/sdk/dist/esm/validation/index.d.ts +29 -0
- loan-advisor-chatgpt-app/node_modules/@modelcontextprotocol/sdk/dist/esm/validation/index.d.ts.map +1 -0
- loan-advisor-chatgpt-app/node_modules/@modelcontextprotocol/sdk/dist/esm/validation/index.js +29 -0
- loan-advisor-chatgpt-app/node_modules/@modelcontextprotocol/sdk/dist/esm/validation/index.js.map +1 -0
- loan-advisor-chatgpt-app/node_modules/@modelcontextprotocol/sdk/dist/esm/validation/types.d.ts +65 -0
- loan-advisor-chatgpt-app/node_modules/@modelcontextprotocol/sdk/dist/esm/validation/types.d.ts.map +1 -0
- loan-advisor-chatgpt-app/node_modules/@modelcontextprotocol/sdk/dist/esm/validation/types.js +2 -0
- loan-advisor-chatgpt-app/node_modules/@modelcontextprotocol/sdk/dist/esm/validation/types.js.map +1 -0
- loan-advisor-chatgpt-app/node_modules/@modelcontextprotocol/sdk/package.json +164 -0
- loan-advisor-chatgpt-app/node_modules/@openai/apps-sdk-ui/dist/es/components/Alert/Alert.js +39 -0
- loan-advisor-chatgpt-app/node_modules/@openai/apps-sdk-ui/dist/es/components/Alert/Alert.js.map +1 -0
- loan-advisor-chatgpt-app/node_modules/@openai/apps-sdk-ui/dist/es/components/Alert/Alert.module.css +187 -0
- loan-advisor-chatgpt-app/node_modules/@openai/apps-sdk-ui/dist/es/components/Alert/index.js +2 -0
- loan-advisor-chatgpt-app/node_modules/@openai/apps-sdk-ui/dist/es/components/Alert/index.js.map +1 -0
- loan-advisor-chatgpt-app/node_modules/@openai/apps-sdk-ui/dist/es/components/AppsSDKUIProvider/AppsSDKUIContext.js +4 -0
- loan-advisor-chatgpt-app/node_modules/@openai/apps-sdk-ui/dist/es/components/AppsSDKUIProvider/AppsSDKUIContext.js.map +1 -0
- loan-advisor-chatgpt-app/node_modules/@openai/apps-sdk-ui/dist/es/components/AppsSDKUIProvider/AppsSDKUIProvider.js +15 -0
- loan-advisor-chatgpt-app/node_modules/@openai/apps-sdk-ui/dist/es/components/AppsSDKUIProvider/AppsSDKUIProvider.js.map +1 -0
- loan-advisor-chatgpt-app/node_modules/@openai/apps-sdk-ui/dist/es/components/AppsSDKUIProvider/index.js +2 -0
- loan-advisor-chatgpt-app/node_modules/@openai/apps-sdk-ui/dist/es/components/AppsSDKUIProvider/index.js.map +1 -0
- loan-advisor-chatgpt-app/node_modules/@openai/apps-sdk-ui/dist/es/components/AppsSDKUIProvider/internal.js +8 -0
- loan-advisor-chatgpt-app/node_modules/@openai/apps-sdk-ui/dist/es/components/AppsSDKUIProvider/internal.js.map +1 -0
- loan-advisor-chatgpt-app/node_modules/@openai/apps-sdk-ui/dist/es/components/Avatar/Avatar.js +63 -0
- loan-advisor-chatgpt-app/node_modules/@openai/apps-sdk-ui/dist/es/components/Avatar/Avatar.js.map +1 -0
- loan-advisor-chatgpt-app/node_modules/@openai/apps-sdk-ui/dist/es/components/Avatar/Avatar.module.css +168 -0
- loan-advisor-chatgpt-app/node_modules/@openai/apps-sdk-ui/dist/es/components/Avatar/AvatarGroup.js +14 -0
- loan-advisor-chatgpt-app/node_modules/@openai/apps-sdk-ui/dist/es/components/Avatar/AvatarGroup.js.map +1 -0
- loan-advisor-chatgpt-app/node_modules/@openai/apps-sdk-ui/dist/es/components/Avatar/AvatarGroup.module.css +26 -0
- loan-advisor-chatgpt-app/node_modules/@openai/apps-sdk-ui/dist/es/components/Avatar/index.js +3 -0
- loan-advisor-chatgpt-app/node_modules/@openai/apps-sdk-ui/dist/es/components/Avatar/index.js.map +1 -0
loan-advisor-chatgpt-app/node_modules/@modelcontextprotocol/sdk/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
MIT License
|
| 2 |
+
|
| 3 |
+
Copyright (c) 2024 Anthropic, PBC
|
| 4 |
+
|
| 5 |
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
| 6 |
+
of this software and associated documentation files (the "Software"), to deal
|
| 7 |
+
in the Software without restriction, including without limitation the rights
|
| 8 |
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
| 9 |
+
copies of the Software, and to permit persons to whom the Software is
|
| 10 |
+
furnished to do so, subject to the following conditions:
|
| 11 |
+
|
| 12 |
+
The above copyright notice and this permission notice shall be included in all
|
| 13 |
+
copies or substantial portions of the Software.
|
| 14 |
+
|
| 15 |
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
| 16 |
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
| 17 |
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
| 18 |
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
| 19 |
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
| 20 |
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
| 21 |
+
SOFTWARE.
|
loan-advisor-chatgpt-app/node_modules/@modelcontextprotocol/sdk/README.md
ADDED
|
@@ -0,0 +1,172 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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blob/main/LICENSE)
|
| 2 |
+
|
| 3 |
+
<details>
|
| 4 |
+
<summary>Table of Contents</summary>
|
| 5 |
+
|
| 6 |
+
- [Overview](#overview)
|
| 7 |
+
- [Installation](#installation)
|
| 8 |
+
- [Quick Start](#quick-start)
|
| 9 |
+
- [Core Concepts](#core-concepts)
|
| 10 |
+
- [Examples](#examples)
|
| 11 |
+
- [Documentation](#documentation)
|
| 12 |
+
- [Contributing](#contributing)
|
| 13 |
+
- [License](#license)
|
| 14 |
+
|
| 15 |
+
</details>
|
| 16 |
+
|
| 17 |
+
## Overview
|
| 18 |
+
|
| 19 |
+
The Model Context Protocol allows applications to provide context for LLMs in a standardized way, separating the concerns of providing context from the actual LLM interaction. This TypeScript SDK implements
|
| 20 |
+
[the full MCP specification](https://modelcontextprotocol.io/specification/draft), making it easy to:
|
| 21 |
+
|
| 22 |
+
- Create MCP servers that expose resources, prompts and tools
|
| 23 |
+
- Build MCP clients that can connect to any MCP server
|
| 24 |
+
- Use standard transports like stdio and Streamable HTTP
|
| 25 |
+
|
| 26 |
+
## Installation
|
| 27 |
+
|
| 28 |
+
```bash
|
| 29 |
+
npm install @modelcontextprotocol/sdk zod
|
| 30 |
+
```
|
| 31 |
+
|
| 32 |
+
This SDK has a **required peer dependency** on `zod` for schema validation. The SDK internally imports from `zod/v4`, but maintains backwards compatibility with projects using Zod v3.25 or later. You can use either API in your code by importing from `zod/v3` or `zod/v4`:
|
| 33 |
+
|
| 34 |
+
## Quick Start
|
| 35 |
+
|
| 36 |
+
To see the SDK in action end-to-end, start from the runnable examples in `src/examples`:
|
| 37 |
+
|
| 38 |
+
1. **Install dependencies** (from the SDK repo root):
|
| 39 |
+
|
| 40 |
+
```bash
|
| 41 |
+
npm install
|
| 42 |
+
```
|
| 43 |
+
|
| 44 |
+
2. **Run the example Streamable HTTP server**:
|
| 45 |
+
|
| 46 |
+
```bash
|
| 47 |
+
npx tsx src/examples/server/simpleStreamableHttp.ts
|
| 48 |
+
```
|
| 49 |
+
|
| 50 |
+
3. **Run the interactive client in another terminal**:
|
| 51 |
+
|
| 52 |
+
```bash
|
| 53 |
+
npx tsx src/examples/client/simpleStreamableHttp.ts
|
| 54 |
+
```
|
| 55 |
+
|
| 56 |
+
This pair of examples demonstrates tools, resources, prompts, sampling, elicitation, tasks and logging. For a guided walkthrough and variations (stateless servers, JSON-only responses, SSE compatibility, OAuth, etc.), see [docs/server.md](docs/server.md) and
|
| 57 |
+
[docs/client.md](docs/client.md).
|
| 58 |
+
|
| 59 |
+
## Core Concepts
|
| 60 |
+
|
| 61 |
+
### Servers and transports
|
| 62 |
+
|
| 63 |
+
An MCP server is typically created with `McpServer` and connected to a transport such as Streamable HTTP or stdio. The SDK supports:
|
| 64 |
+
|
| 65 |
+
- **Streamable HTTP** for remote servers (recommended).
|
| 66 |
+
- **HTTP + SSE** for backwards compatibility only.
|
| 67 |
+
- **stdio** for local, process-spawned integrations.
|
| 68 |
+
|
| 69 |
+
Runnable server examples live under `src/examples/server` and are documented in [docs/server.md](docs/server.md).
|
| 70 |
+
|
| 71 |
+
### Tools, resources, prompts
|
| 72 |
+
|
| 73 |
+
- **Tools** let LLMs ask your server to take actions (computation, side effects, network calls).
|
| 74 |
+
- **Resources** expose read-only data that clients can surface to users or models.
|
| 75 |
+
- **Prompts** are reusable templates that help users talk to models in a consistent way.
|
| 76 |
+
|
| 77 |
+
The detailed APIs, including `ResourceTemplate`, completions, and display-name metadata, are covered in [docs/server.md](docs/server.md#tools-resources-and-prompts), with runnable implementations in [`simpleStreamableHttp.ts`](src/examples/server/simpleStreamableHttp.ts).
|
| 78 |
+
|
| 79 |
+
### Capabilities: sampling, elicitation, and tasks
|
| 80 |
+
|
| 81 |
+
The SDK includes higher-level capabilities for richer workflows:
|
| 82 |
+
|
| 83 |
+
- **Sampling**: server-side tools can ask connected clients to run LLM completions.
|
| 84 |
+
- **Form elicitation**: tools can request non-sensitive input via structured forms.
|
| 85 |
+
- **URL elicitation**: servers can ask users to complete secure flows in a browser (e.g., API key entry, payments, OAuth).
|
| 86 |
+
- **Tasks (experimental)**: long-running tool calls can be turned into tasks that you poll or resume later.
|
| 87 |
+
|
| 88 |
+
Conceptual overviews and links to runnable examples are in:
|
| 89 |
+
|
| 90 |
+
- [docs/capabilities.md](docs/capabilities.md)
|
| 91 |
+
|
| 92 |
+
Key example servers include:
|
| 93 |
+
|
| 94 |
+
- [`toolWithSampleServer.ts`](src/examples/server/toolWithSampleServer.ts)
|
| 95 |
+
- [`elicitationFormExample.ts`](src/examples/server/elicitationFormExample.ts)
|
| 96 |
+
- [`elicitationUrlExample.ts`](src/examples/server/elicitationUrlExample.ts)
|
| 97 |
+
|
| 98 |
+
### Clients
|
| 99 |
+
|
| 100 |
+
The high-level `Client` class connects to MCP servers over different transports and exposes helpers like `listTools`, `callTool`, `listResources`, `readResource`, `listPrompts`, and `getPrompt`.
|
| 101 |
+
|
| 102 |
+
Runnable clients live under `src/examples/client` and are described in [docs/client.md](docs/client.md), including:
|
| 103 |
+
|
| 104 |
+
- Interactive Streamable HTTP client ([`simpleStreamableHttp.ts`](src/examples/client/simpleStreamableHttp.ts))
|
| 105 |
+
- Streamable HTTP client with SSE fallback ([`streamableHttpWithSseFallbackClient.ts`](src/examples/client/streamableHttpWithSseFallbackClient.ts))
|
| 106 |
+
- OAuth-enabled clients and polling/parallel examples
|
| 107 |
+
|
| 108 |
+
### Node.js Web Crypto (globalThis.crypto) compatibility
|
| 109 |
+
|
| 110 |
+
Some parts of the SDK (for example, JWT-based client authentication in `auth-extensions.ts` via `jose`) rely on the Web Crypto API exposed as `globalThis.crypto`.
|
| 111 |
+
|
| 112 |
+
See [docs/faq.md](docs/faq.md) for details on supported Node.js versions and how to polyfill `globalThis.crypto` when running on older Node.js runtimes.
|
| 113 |
+
|
| 114 |
+
## Examples
|
| 115 |
+
|
| 116 |
+
The SDK ships runnable examples under `src/examples`. Use these tables to find the scenario you care about and jump straight to the corresponding code and docs.
|
| 117 |
+
|
| 118 |
+
### Server examples
|
| 119 |
+
|
| 120 |
+
| Scenario | Description | Example file(s) | Related docs |
|
| 121 |
+
| --------------------------------------------------- | ------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------ |
|
| 122 |
+
| Streamable HTTP server (stateful) | Feature-rich server with tools, resources, prompts, logging, tasks, sampling, and optional OAuth. | [`simpleStreamableHttp.ts`](src/examples/server/simpleStreamableHttp.ts) | [`server.md`](docs/server.md), [`capabilities.md`](docs/capabilities.md) |
|
| 123 |
+
| Streamable HTTP server (stateless) | No session tracking; good for simple API-style servers. | [`simpleStatelessStreamableHttp.ts`](src/examples/server/simpleStatelessStreamableHttp.ts) | [`server.md`](docs/server.md) |
|
| 124 |
+
| JSON response mode (no SSE) | Streamable HTTP with JSON responses only and limited notifications. | [`jsonResponseStreamableHttp.ts`](src/examples/server/jsonResponseStreamableHttp.ts) | [`server.md`](docs/server.md) |
|
| 125 |
+
| Server notifications over Streamable HTTP | Demonstrates server-initiated notifications using SSE with Streamable HTTP. | [`standaloneSseWithGetStreamableHttp.ts`](src/examples/server/standaloneSseWithGetStreamableHttp.ts) | [`server.md`](docs/server.md) |
|
| 126 |
+
| Deprecated HTTP+SSE server | Legacy HTTP+SSE transport for backwards-compatibility testing. | [`simpleSseServer.ts`](src/examples/server/simpleSseServer.ts) | [`server.md`](docs/server.md) |
|
| 127 |
+
| Backwards-compatible server (Streamable HTTP + SSE) | Single server that supports both Streamable HTTP and legacy SSE clients. | [`sseAndStreamableHttpCompatibleServer.ts`](src/examples/server/sseAndStreamableHttpCompatibleServer.ts) | [`server.md`](docs/server.md) |
|
| 128 |
+
| Form elicitation server | Uses form elicitation to collect non-sensitive user input. | [`elicitationFormExample.ts`](src/examples/server/elicitationFormExample.ts) | [`capabilities.md`](docs/capabilities.md#elicitation) |
|
| 129 |
+
| URL elicitation server | Demonstrates URL-mode elicitation in an OAuth-protected server. | [`elicitationUrlExample.ts`](src/examples/server/elicitationUrlExample.ts) | [`capabilities.md`](docs/capabilities.md#elicitation) |
|
| 130 |
+
| Sampling and tasks server | Combines tools, logging, sampling, and experimental task-based execution. | [`toolWithSampleServer.ts`](src/examples/server/toolWithSampleServer.ts) | [`capabilities.md`](docs/capabilities.md) |
|
| 131 |
+
| OAuth demo authorization server | In-memory OAuth provider used with the example servers. | [`demoInMemoryOAuthProvider.ts`](src/examples/server/demoInMemoryOAuthProvider.ts) | [`server.md`](docs/server.md) |
|
| 132 |
+
|
| 133 |
+
### Client examples
|
| 134 |
+
|
| 135 |
+
| Scenario | Description | Example file(s) | Related docs |
|
| 136 |
+
| --------------------------------------------------- | ---------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------ |
|
| 137 |
+
| Interactive Streamable HTTP client | CLI client that exercises tools, resources, prompts, elicitation, and tasks. | [`simpleStreamableHttp.ts`](src/examples/client/simpleStreamableHttp.ts) | [`client.md`](docs/client.md) |
|
| 138 |
+
| Backwards-compatible client (Streamable HTTP → SSE) | Tries Streamable HTTP first, then falls back to SSE on 4xx responses. | [`streamableHttpWithSseFallbackClient.ts`](src/examples/client/streamableHttpWithSseFallbackClient.ts) | [`client.md`](docs/client.md), [`server.md`](docs/server.md) |
|
| 139 |
+
| SSE polling client | Polls a legacy SSE server and demonstrates notification handling. | [`ssePollingClient.ts`](src/examples/client/ssePollingClient.ts) | [`client.md`](docs/client.md) |
|
| 140 |
+
| Parallel tool calls client | Shows how to run multiple tool calls in parallel. | [`parallelToolCallsClient.ts`](src/examples/client/parallelToolCallsClient.ts) | [`client.md`](docs/client.md) |
|
| 141 |
+
| Multiple clients in parallel | Demonstrates connecting multiple clients concurrently to the same server. | [`multipleClientsParallel.ts`](src/examples/client/multipleClientsParallel.ts) | [`client.md`](docs/client.md) |
|
| 142 |
+
| OAuth clients | Examples of client_credentials (basic and private_key_jwt) and reusable providers. | [`simpleOAuthClient.ts`](src/examples/client/simpleOAuthClient.ts), [`simpleOAuthClientProvider.ts`](src/examples/client/simpleOAuthClientProvider.ts), [`simpleClientCredentials.ts`](src/examples/client/simpleClientCredentials.ts) | [`client.md`](docs/client.md) |
|
| 143 |
+
| URL elicitation client | Works with the URL elicitation server to drive secure browser flows. | [`elicitationUrlExample.ts`](src/examples/client/elicitationUrlExample.ts) | [`capabilities.md`](docs/capabilities.md#elicitation) |
|
| 144 |
+
|
| 145 |
+
Shared utilities:
|
| 146 |
+
|
| 147 |
+
- In-memory event store for resumability: [`inMemoryEventStore.ts`](src/examples/shared/inMemoryEventStore.ts) (see [`server.md`](docs/server.md)).
|
| 148 |
+
|
| 149 |
+
For more details on how to run these examples (including recommended commands and deployment diagrams), see `src/examples/README.md`.
|
| 150 |
+
|
| 151 |
+
## Documentation
|
| 152 |
+
|
| 153 |
+
- Local SDK docs:
|
| 154 |
+
- [docs/server.md](docs/server.md) – building and running MCP servers, transports, tools/resources/prompts, CORS, DNS rebinding, and multi-node deployment.
|
| 155 |
+
- [docs/client.md](docs/client.md) – using the high-level client, transports, backwards compatibility, and OAuth helpers.
|
| 156 |
+
- [docs/capabilities.md](docs/capabilities.md) – sampling, elicitation (form and URL), and experimental task-based execution.
|
| 157 |
+
- [docs/protocol.md](docs/protocol.md) – protocol features: ping, progress, cancellation, pagination, capability negotiation, and JSON Schema.
|
| 158 |
+
- [docs/faq.md](docs/faq.md) – environment and troubleshooting FAQs (including Node.js Web Crypto support).
|
| 159 |
+
- External references:
|
| 160 |
+
- [V1 API reference](https://modelcontextprotocol.github.io/typescript-sdk/)
|
| 161 |
+
- [V2 API reference](https://modelcontextprotocol.github.io/typescript-sdk/v2/)
|
| 162 |
+
- [Model Context Protocol documentation](https://modelcontextprotocol.io)
|
| 163 |
+
- [MCP Specification](https://spec.modelcontextprotocol.io)
|
| 164 |
+
- [Example Servers](https://github.com/modelcontextprotocol/servers)
|
| 165 |
+
|
| 166 |
+
## Contributing
|
| 167 |
+
|
| 168 |
+
Issues and pull requests are welcome on GitHub at <https://github.com/modelcontextprotocol/typescript-sdk>.
|
| 169 |
+
|
| 170 |
+
## License
|
| 171 |
+
|
| 172 |
+
This project is licensed under the MIT License—see the [LICENSE](LICENSE) file for details.
|
loan-advisor-chatgpt-app/node_modules/@modelcontextprotocol/sdk/dist/esm/shared/uriTemplate.js
ADDED
|
@@ -0,0 +1,239 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
// Claude-authored implementation of RFC 6570 URI Templates
|
| 2 |
+
const MAX_TEMPLATE_LENGTH = 1000000; // 1MB
|
| 3 |
+
const MAX_VARIABLE_LENGTH = 1000000; // 1MB
|
| 4 |
+
const MAX_TEMPLATE_EXPRESSIONS = 10000;
|
| 5 |
+
const MAX_REGEX_LENGTH = 1000000; // 1MB
|
| 6 |
+
export class UriTemplate {
|
| 7 |
+
/**
|
| 8 |
+
* Returns true if the given string contains any URI template expressions.
|
| 9 |
+
* A template expression is a sequence of characters enclosed in curly braces,
|
| 10 |
+
* like {foo} or {?bar}.
|
| 11 |
+
*/
|
| 12 |
+
static isTemplate(str) {
|
| 13 |
+
// Look for any sequence of characters between curly braces
|
| 14 |
+
// that isn't just whitespace
|
| 15 |
+
return /\{[^}\s]+\}/.test(str);
|
| 16 |
+
}
|
| 17 |
+
static validateLength(str, max, context) {
|
| 18 |
+
if (str.length > max) {
|
| 19 |
+
throw new Error(`${context} exceeds maximum length of ${max} characters (got ${str.length})`);
|
| 20 |
+
}
|
| 21 |
+
}
|
| 22 |
+
get variableNames() {
|
| 23 |
+
return this.parts.flatMap(part => (typeof part === 'string' ? [] : part.names));
|
| 24 |
+
}
|
| 25 |
+
constructor(template) {
|
| 26 |
+
UriTemplate.validateLength(template, MAX_TEMPLATE_LENGTH, 'Template');
|
| 27 |
+
this.template = template;
|
| 28 |
+
this.parts = this.parse(template);
|
| 29 |
+
}
|
| 30 |
+
toString() {
|
| 31 |
+
return this.template;
|
| 32 |
+
}
|
| 33 |
+
parse(template) {
|
| 34 |
+
const parts = [];
|
| 35 |
+
let currentText = '';
|
| 36 |
+
let i = 0;
|
| 37 |
+
let expressionCount = 0;
|
| 38 |
+
while (i < template.length) {
|
| 39 |
+
if (template[i] === '{') {
|
| 40 |
+
if (currentText) {
|
| 41 |
+
parts.push(currentText);
|
| 42 |
+
currentText = '';
|
| 43 |
+
}
|
| 44 |
+
const end = template.indexOf('}', i);
|
| 45 |
+
if (end === -1)
|
| 46 |
+
throw new Error('Unclosed template expression');
|
| 47 |
+
expressionCount++;
|
| 48 |
+
if (expressionCount > MAX_TEMPLATE_EXPRESSIONS) {
|
| 49 |
+
throw new Error(`Template contains too many expressions (max ${MAX_TEMPLATE_EXPRESSIONS})`);
|
| 50 |
+
}
|
| 51 |
+
const expr = template.slice(i + 1, end);
|
| 52 |
+
const operator = this.getOperator(expr);
|
| 53 |
+
const exploded = expr.includes('*');
|
| 54 |
+
const names = this.getNames(expr);
|
| 55 |
+
const name = names[0];
|
| 56 |
+
// Validate variable name length
|
| 57 |
+
for (const name of names) {
|
| 58 |
+
UriTemplate.validateLength(name, MAX_VARIABLE_LENGTH, 'Variable name');
|
| 59 |
+
}
|
| 60 |
+
parts.push({ name, operator, names, exploded });
|
| 61 |
+
i = end + 1;
|
| 62 |
+
}
|
| 63 |
+
else {
|
| 64 |
+
currentText += template[i];
|
| 65 |
+
i++;
|
| 66 |
+
}
|
| 67 |
+
}
|
| 68 |
+
if (currentText) {
|
| 69 |
+
parts.push(currentText);
|
| 70 |
+
}
|
| 71 |
+
return parts;
|
| 72 |
+
}
|
| 73 |
+
getOperator(expr) {
|
| 74 |
+
const operators = ['+', '#', '.', '/', '?', '&'];
|
| 75 |
+
return operators.find(op => expr.startsWith(op)) || '';
|
| 76 |
+
}
|
| 77 |
+
getNames(expr) {
|
| 78 |
+
const operator = this.getOperator(expr);
|
| 79 |
+
return expr
|
| 80 |
+
.slice(operator.length)
|
| 81 |
+
.split(',')
|
| 82 |
+
.map(name => name.replace('*', '').trim())
|
| 83 |
+
.filter(name => name.length > 0);
|
| 84 |
+
}
|
| 85 |
+
encodeValue(value, operator) {
|
| 86 |
+
UriTemplate.validateLength(value, MAX_VARIABLE_LENGTH, 'Variable value');
|
| 87 |
+
if (operator === '+' || operator === '#') {
|
| 88 |
+
return encodeURI(value);
|
| 89 |
+
}
|
| 90 |
+
return encodeURIComponent(value);
|
| 91 |
+
}
|
| 92 |
+
expandPart(part, variables) {
|
| 93 |
+
if (part.operator === '?' || part.operator === '&') {
|
| 94 |
+
const pairs = part.names
|
| 95 |
+
.map(name => {
|
| 96 |
+
const value = variables[name];
|
| 97 |
+
if (value === undefined)
|
| 98 |
+
return '';
|
| 99 |
+
const encoded = Array.isArray(value)
|
| 100 |
+
? value.map(v => this.encodeValue(v, part.operator)).join(',')
|
| 101 |
+
: this.encodeValue(value.toString(), part.operator);
|
| 102 |
+
return `${name}=${encoded}`;
|
| 103 |
+
})
|
| 104 |
+
.filter(pair => pair.length > 0);
|
| 105 |
+
if (pairs.length === 0)
|
| 106 |
+
return '';
|
| 107 |
+
const separator = part.operator === '?' ? '?' : '&';
|
| 108 |
+
return separator + pairs.join('&');
|
| 109 |
+
}
|
| 110 |
+
if (part.names.length > 1) {
|
| 111 |
+
const values = part.names.map(name => variables[name]).filter(v => v !== undefined);
|
| 112 |
+
if (values.length === 0)
|
| 113 |
+
return '';
|
| 114 |
+
return values.map(v => (Array.isArray(v) ? v[0] : v)).join(',');
|
| 115 |
+
}
|
| 116 |
+
const value = variables[part.name];
|
| 117 |
+
if (value === undefined)
|
| 118 |
+
return '';
|
| 119 |
+
const values = Array.isArray(value) ? value : [value];
|
| 120 |
+
const encoded = values.map(v => this.encodeValue(v, part.operator));
|
| 121 |
+
switch (part.operator) {
|
| 122 |
+
case '':
|
| 123 |
+
return encoded.join(',');
|
| 124 |
+
case '+':
|
| 125 |
+
return encoded.join(',');
|
| 126 |
+
case '#':
|
| 127 |
+
return '#' + encoded.join(',');
|
| 128 |
+
case '.':
|
| 129 |
+
return '.' + encoded.join('.');
|
| 130 |
+
case '/':
|
| 131 |
+
return '/' + encoded.join('/');
|
| 132 |
+
default:
|
| 133 |
+
return encoded.join(',');
|
| 134 |
+
}
|
| 135 |
+
}
|
| 136 |
+
expand(variables) {
|
| 137 |
+
let result = '';
|
| 138 |
+
let hasQueryParam = false;
|
| 139 |
+
for (const part of this.parts) {
|
| 140 |
+
if (typeof part === 'string') {
|
| 141 |
+
result += part;
|
| 142 |
+
continue;
|
| 143 |
+
}
|
| 144 |
+
const expanded = this.expandPart(part, variables);
|
| 145 |
+
if (!expanded)
|
| 146 |
+
continue;
|
| 147 |
+
// Convert ? to & if we already have a query parameter
|
| 148 |
+
if ((part.operator === '?' || part.operator === '&') && hasQueryParam) {
|
| 149 |
+
result += expanded.replace('?', '&');
|
| 150 |
+
}
|
| 151 |
+
else {
|
| 152 |
+
result += expanded;
|
| 153 |
+
}
|
| 154 |
+
if (part.operator === '?' || part.operator === '&') {
|
| 155 |
+
hasQueryParam = true;
|
| 156 |
+
}
|
| 157 |
+
}
|
| 158 |
+
return result;
|
| 159 |
+
}
|
| 160 |
+
escapeRegExp(str) {
|
| 161 |
+
return str.replace(/[.*+?^${}()|[\]\\]/g, '\\$&');
|
| 162 |
+
}
|
| 163 |
+
partToRegExp(part) {
|
| 164 |
+
const patterns = [];
|
| 165 |
+
// Validate variable name length for matching
|
| 166 |
+
for (const name of part.names) {
|
| 167 |
+
UriTemplate.validateLength(name, MAX_VARIABLE_LENGTH, 'Variable name');
|
| 168 |
+
}
|
| 169 |
+
if (part.operator === '?' || part.operator === '&') {
|
| 170 |
+
for (let i = 0; i < part.names.length; i++) {
|
| 171 |
+
const name = part.names[i];
|
| 172 |
+
const prefix = i === 0 ? '\\' + part.operator : '&';
|
| 173 |
+
patterns.push({
|
| 174 |
+
pattern: prefix + this.escapeRegExp(name) + '=([^&]+)',
|
| 175 |
+
name
|
| 176 |
+
});
|
| 177 |
+
}
|
| 178 |
+
return patterns;
|
| 179 |
+
}
|
| 180 |
+
let pattern;
|
| 181 |
+
const name = part.name;
|
| 182 |
+
switch (part.operator) {
|
| 183 |
+
case '':
|
| 184 |
+
pattern = part.exploded ? '([^/,]+(?:,[^/,]+)*)' : '([^/,]+)';
|
| 185 |
+
break;
|
| 186 |
+
case '+':
|
| 187 |
+
case '#':
|
| 188 |
+
pattern = '(.+)';
|
| 189 |
+
break;
|
| 190 |
+
case '.':
|
| 191 |
+
pattern = '\\.([^/,]+)';
|
| 192 |
+
break;
|
| 193 |
+
case '/':
|
| 194 |
+
pattern = '/' + (part.exploded ? '([^/,]+(?:,[^/,]+)*)' : '([^/,]+)');
|
| 195 |
+
break;
|
| 196 |
+
default:
|
| 197 |
+
pattern = '([^/]+)';
|
| 198 |
+
}
|
| 199 |
+
patterns.push({ pattern, name });
|
| 200 |
+
return patterns;
|
| 201 |
+
}
|
| 202 |
+
match(uri) {
|
| 203 |
+
UriTemplate.validateLength(uri, MAX_TEMPLATE_LENGTH, 'URI');
|
| 204 |
+
let pattern = '^';
|
| 205 |
+
const names = [];
|
| 206 |
+
for (const part of this.parts) {
|
| 207 |
+
if (typeof part === 'string') {
|
| 208 |
+
pattern += this.escapeRegExp(part);
|
| 209 |
+
}
|
| 210 |
+
else {
|
| 211 |
+
const patterns = this.partToRegExp(part);
|
| 212 |
+
for (const { pattern: partPattern, name } of patterns) {
|
| 213 |
+
pattern += partPattern;
|
| 214 |
+
names.push({ name, exploded: part.exploded });
|
| 215 |
+
}
|
| 216 |
+
}
|
| 217 |
+
}
|
| 218 |
+
pattern += '$';
|
| 219 |
+
UriTemplate.validateLength(pattern, MAX_REGEX_LENGTH, 'Generated regex pattern');
|
| 220 |
+
const regex = new RegExp(pattern);
|
| 221 |
+
const match = uri.match(regex);
|
| 222 |
+
if (!match)
|
| 223 |
+
return null;
|
| 224 |
+
const result = {};
|
| 225 |
+
for (let i = 0; i < names.length; i++) {
|
| 226 |
+
const { name, exploded } = names[i];
|
| 227 |
+
const value = match[i + 1];
|
| 228 |
+
const cleanName = name.replace('*', '');
|
| 229 |
+
if (exploded && value.includes(',')) {
|
| 230 |
+
result[cleanName] = value.split(',');
|
| 231 |
+
}
|
| 232 |
+
else {
|
| 233 |
+
result[cleanName] = value;
|
| 234 |
+
}
|
| 235 |
+
}
|
| 236 |
+
return result;
|
| 237 |
+
}
|
| 238 |
+
}
|
| 239 |
+
//# sourceMappingURL=uriTemplate.js.map
|
loan-advisor-chatgpt-app/node_modules/@modelcontextprotocol/sdk/dist/esm/shared/uriTemplate.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
{"version":3,"file":"uriTemplate.js","sourceRoot":"","sources":["../../../src/shared/uriTemplate.ts"],"names":[],"mappings":"AAAA,2DAA2D;AAI3D,MAAM,mBAAmB,GAAG,OAAO,CAAC,CAAC,MAAM;AAC3C,MAAM,mBAAmB,GAAG,OAAO,CAAC,CAAC,MAAM;AAC3C,MAAM,wBAAwB,GAAG,KAAK,CAAC;AACvC,MAAM,gBAAgB,GAAG,OAAO,CAAC,CAAC,MAAM;AAExC,MAAM,OAAO,WAAW;IACpB;;;;OAIG;IACH,MAAM,CAAC,UAAU,CAAC,GAAW;QACzB,2DAA2D;QAC3D,6BAA6B;QAC7B,OAAO,aAAa,CAAC,IAAI,CAAC,GAAG,CAAC,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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
/**
|
| 2 |
+
* This file is automatically generated from the Model Context Protocol specification.
|
| 3 |
+
*
|
| 4 |
+
* Source: https://github.com/modelcontextprotocol/modelcontextprotocol
|
| 5 |
+
* Pulled from: https://raw.githubusercontent.com/modelcontextprotocol/modelcontextprotocol/main/schema/draft/schema.ts
|
| 6 |
+
* Last updated from commit: 35fa160caf287a9c48696e3ae452c0645c713669
|
| 7 |
+
*
|
| 8 |
+
* DO NOT EDIT THIS FILE MANUALLY. Changes will be overwritten by automated updates.
|
| 9 |
+
* To update this file, run: npm run fetch:spec-types
|
| 10 |
+
*/
|
| 11 |
+
/**
|
| 12 |
+
* Refers to any valid JSON-RPC object that can be decoded off the wire, or encoded to be sent.
|
| 13 |
+
*
|
| 14 |
+
* @category JSON-RPC
|
| 15 |
+
*/
|
| 16 |
+
export type JSONRPCMessage = JSONRPCRequest | JSONRPCNotification | JSONRPCResponse;
|
| 17 |
+
/** @internal */
|
| 18 |
+
export declare const LATEST_PROTOCOL_VERSION = "DRAFT-2026-v1";
|
| 19 |
+
/** @internal */
|
| 20 |
+
export declare const JSONRPC_VERSION = "2.0";
|
| 21 |
+
/**
|
| 22 |
+
* A progress token, used to associate progress notifications with the original request.
|
| 23 |
+
*
|
| 24 |
+
* @category Common Types
|
| 25 |
+
*/
|
| 26 |
+
export type ProgressToken = string | number;
|
| 27 |
+
/**
|
| 28 |
+
* An opaque token used to represent a cursor for pagination.
|
| 29 |
+
*
|
| 30 |
+
* @category Common Types
|
| 31 |
+
*/
|
| 32 |
+
export type Cursor = string;
|
| 33 |
+
/**
|
| 34 |
+
* Common params for any task-augmented request.
|
| 35 |
+
*
|
| 36 |
+
* @internal
|
| 37 |
+
*/
|
| 38 |
+
export interface TaskAugmentedRequestParams extends RequestParams {
|
| 39 |
+
/**
|
| 40 |
+
* If specified, the caller is requesting task-augmented execution for this request.
|
| 41 |
+
* The request will return a CreateTaskResult immediately, and the actual result can be
|
| 42 |
+
* retrieved later via tasks/result.
|
| 43 |
+
*
|
| 44 |
+
* Task augmentation is subject to capability negotiation - receivers MUST declare support
|
| 45 |
+
* for task augmentation of specific request types in their capabilities.
|
| 46 |
+
*/
|
| 47 |
+
task?: TaskMetadata;
|
| 48 |
+
}
|
| 49 |
+
/**
|
| 50 |
+
* Common params for any request.
|
| 51 |
+
*
|
| 52 |
+
* @internal
|
| 53 |
+
*/
|
| 54 |
+
export interface RequestParams {
|
| 55 |
+
/**
|
| 56 |
+
* See [General fields: `_meta`](/specification/draft/basic/index#meta) for notes on `_meta` usage.
|
| 57 |
+
*/
|
| 58 |
+
_meta?: {
|
| 59 |
+
/**
|
| 60 |
+
* If specified, the caller is requesting out-of-band progress notifications for this request (as represented by notifications/progress). The value of this parameter is an opaque token that will be attached to any subsequent notifications. The receiver is not obligated to provide these notifications.
|
| 61 |
+
*/
|
| 62 |
+
progressToken?: ProgressToken;
|
| 63 |
+
[key: string]: unknown;
|
| 64 |
+
};
|
| 65 |
+
}
|
| 66 |
+
/** @internal */
|
| 67 |
+
export interface Request {
|
| 68 |
+
method: string;
|
| 69 |
+
params?: {
|
| 70 |
+
[key: string]: any;
|
| 71 |
+
};
|
| 72 |
+
}
|
| 73 |
+
/** @internal */
|
| 74 |
+
export interface NotificationParams {
|
| 75 |
+
/**
|
| 76 |
+
* See [General fields: `_meta`](/specification/draft/basic/index#meta) for notes on `_meta` usage.
|
| 77 |
+
*/
|
| 78 |
+
_meta?: {
|
| 79 |
+
[key: string]: unknown;
|
| 80 |
+
};
|
| 81 |
+
}
|
| 82 |
+
/** @internal */
|
| 83 |
+
export interface Notification {
|
| 84 |
+
method: string;
|
| 85 |
+
params?: {
|
| 86 |
+
[key: string]: any;
|
| 87 |
+
};
|
| 88 |
+
}
|
| 89 |
+
/**
|
| 90 |
+
* @category Common Types
|
| 91 |
+
*/
|
| 92 |
+
export interface Result {
|
| 93 |
+
/**
|
| 94 |
+
* See [General fields: `_meta`](/specification/draft/basic/index#meta) for notes on `_meta` usage.
|
| 95 |
+
*/
|
| 96 |
+
_meta?: {
|
| 97 |
+
[key: string]: unknown;
|
| 98 |
+
};
|
| 99 |
+
[key: string]: unknown;
|
| 100 |
+
}
|
| 101 |
+
/**
|
| 102 |
+
* @category Common Types
|
| 103 |
+
*/
|
| 104 |
+
export interface Error {
|
| 105 |
+
/**
|
| 106 |
+
* The error type that occurred.
|
| 107 |
+
*/
|
| 108 |
+
code: number;
|
| 109 |
+
/**
|
| 110 |
+
* A short description of the error. The message SHOULD be limited to a concise single sentence.
|
| 111 |
+
*/
|
| 112 |
+
message: string;
|
| 113 |
+
/**
|
| 114 |
+
* Additional information about the error. The value of this member is defined by the sender (e.g. detailed error information, nested errors etc.).
|
| 115 |
+
*/
|
| 116 |
+
data?: unknown;
|
| 117 |
+
}
|
| 118 |
+
/**
|
| 119 |
+
* A uniquely identifying ID for a request in JSON-RPC.
|
| 120 |
+
*
|
| 121 |
+
* @category Common Types
|
| 122 |
+
*/
|
| 123 |
+
export type RequestId = string | number;
|
| 124 |
+
/**
|
| 125 |
+
* A request that expects a response.
|
| 126 |
+
*
|
| 127 |
+
* @category JSON-RPC
|
| 128 |
+
*/
|
| 129 |
+
export interface JSONRPCRequest extends Request {
|
| 130 |
+
jsonrpc: typeof JSONRPC_VERSION;
|
| 131 |
+
id: RequestId;
|
| 132 |
+
}
|
| 133 |
+
/**
|
| 134 |
+
* A notification which does not expect a response.
|
| 135 |
+
*
|
| 136 |
+
* @category JSON-RPC
|
| 137 |
+
*/
|
| 138 |
+
export interface JSONRPCNotification extends Notification {
|
| 139 |
+
jsonrpc: typeof JSONRPC_VERSION;
|
| 140 |
+
}
|
| 141 |
+
/**
|
| 142 |
+
* A successful (non-error) response to a request.
|
| 143 |
+
*
|
| 144 |
+
* @category JSON-RPC
|
| 145 |
+
*/
|
| 146 |
+
export interface JSONRPCResultResponse {
|
| 147 |
+
jsonrpc: typeof JSONRPC_VERSION;
|
| 148 |
+
id: RequestId;
|
| 149 |
+
result: Result;
|
| 150 |
+
}
|
| 151 |
+
/**
|
| 152 |
+
* A response to a request that indicates an error occurred.
|
| 153 |
+
*
|
| 154 |
+
* @category JSON-RPC
|
| 155 |
+
*/
|
| 156 |
+
export interface JSONRPCErrorResponse {
|
| 157 |
+
jsonrpc: typeof JSONRPC_VERSION;
|
| 158 |
+
id?: RequestId;
|
| 159 |
+
error: Error;
|
| 160 |
+
}
|
| 161 |
+
/**
|
| 162 |
+
* A response to a request, containing either the result or error.
|
| 163 |
+
*/
|
| 164 |
+
export type JSONRPCResponse = JSONRPCResultResponse | JSONRPCErrorResponse;
|
| 165 |
+
export declare const PARSE_ERROR = -32700;
|
| 166 |
+
export declare const INVALID_REQUEST = -32600;
|
| 167 |
+
export declare const METHOD_NOT_FOUND = -32601;
|
| 168 |
+
export declare const INVALID_PARAMS = -32602;
|
| 169 |
+
export declare const INTERNAL_ERROR = -32603;
|
| 170 |
+
/** @internal */
|
| 171 |
+
export declare const URL_ELICITATION_REQUIRED = -32042;
|
| 172 |
+
/**
|
| 173 |
+
* An error response that indicates that the server requires the client to provide additional information via an elicitation request.
|
| 174 |
+
*
|
| 175 |
+
* @internal
|
| 176 |
+
*/
|
| 177 |
+
export interface URLElicitationRequiredError extends Omit<JSONRPCErrorResponse, "error"> {
|
| 178 |
+
error: Error & {
|
| 179 |
+
code: typeof URL_ELICITATION_REQUIRED;
|
| 180 |
+
data: {
|
| 181 |
+
elicitations: ElicitRequestURLParams[];
|
| 182 |
+
[key: string]: unknown;
|
| 183 |
+
};
|
| 184 |
+
};
|
| 185 |
+
}
|
| 186 |
+
/**
|
| 187 |
+
* A response that indicates success but carries no data.
|
| 188 |
+
*
|
| 189 |
+
* @category Common Types
|
| 190 |
+
*/
|
| 191 |
+
export type EmptyResult = Result;
|
| 192 |
+
/**
|
| 193 |
+
* Parameters for a `notifications/cancelled` notification.
|
| 194 |
+
*
|
| 195 |
+
* @category `notifications/cancelled`
|
| 196 |
+
*/
|
| 197 |
+
export interface CancelledNotificationParams extends NotificationParams {
|
| 198 |
+
/**
|
| 199 |
+
* The ID of the request to cancel.
|
| 200 |
+
*
|
| 201 |
+
* This MUST correspond to the ID of a request previously issued in the same direction.
|
| 202 |
+
* This MUST be provided for cancelling non-task requests.
|
| 203 |
+
* This MUST NOT be used for cancelling tasks (use the `tasks/cancel` request instead).
|
| 204 |
+
*/
|
| 205 |
+
requestId?: RequestId;
|
| 206 |
+
/**
|
| 207 |
+
* An optional string describing the reason for the cancellation. This MAY be logged or presented to the user.
|
| 208 |
+
*/
|
| 209 |
+
reason?: string;
|
| 210 |
+
}
|
| 211 |
+
/**
|
| 212 |
+
* This notification can be sent by either side to indicate that it is cancelling a previously-issued request.
|
| 213 |
+
*
|
| 214 |
+
* The request SHOULD still be in-flight, but due to communication latency, it is always possible that this notification MAY arrive after the request has already finished.
|
| 215 |
+
*
|
| 216 |
+
* This notification indicates that the result will be unused, so any associated processing SHOULD cease.
|
| 217 |
+
*
|
| 218 |
+
* A client MUST NOT attempt to cancel its `initialize` request.
|
| 219 |
+
*
|
| 220 |
+
* For task cancellation, use the `tasks/cancel` request instead of this notification.
|
| 221 |
+
*
|
| 222 |
+
* @category `notifications/cancelled`
|
| 223 |
+
*/
|
| 224 |
+
export interface CancelledNotification extends JSONRPCNotification {
|
| 225 |
+
method: "notifications/cancelled";
|
| 226 |
+
params: CancelledNotificationParams;
|
| 227 |
+
}
|
| 228 |
+
/**
|
| 229 |
+
* Parameters for an `initialize` request.
|
| 230 |
+
*
|
| 231 |
+
* @category `initialize`
|
| 232 |
+
*/
|
| 233 |
+
export interface InitializeRequestParams extends RequestParams {
|
| 234 |
+
/**
|
| 235 |
+
* The latest version of the Model Context Protocol that the client supports. The client MAY decide to support older versions as well.
|
| 236 |
+
*/
|
| 237 |
+
protocolVersion: string;
|
| 238 |
+
capabilities: ClientCapabilities;
|
| 239 |
+
clientInfo: Implementation;
|
| 240 |
+
}
|
| 241 |
+
/**
|
| 242 |
+
* This request is sent from the client to the server when it first connects, asking it to begin initialization.
|
| 243 |
+
*
|
| 244 |
+
* @category `initialize`
|
| 245 |
+
*/
|
| 246 |
+
export interface InitializeRequest extends JSONRPCRequest {
|
| 247 |
+
method: "initialize";
|
| 248 |
+
params: InitializeRequestParams;
|
| 249 |
+
}
|
| 250 |
+
/**
|
| 251 |
+
* After receiving an initialize request from the client, the server sends this response.
|
| 252 |
+
*
|
| 253 |
+
* @category `initialize`
|
| 254 |
+
*/
|
| 255 |
+
export interface InitializeResult extends Result {
|
| 256 |
+
/**
|
| 257 |
+
* The version of the Model Context Protocol that the server wants to use. This may not match the version that the client requested. If the client cannot support this version, it MUST disconnect.
|
| 258 |
+
*/
|
| 259 |
+
protocolVersion: string;
|
| 260 |
+
capabilities: ServerCapabilities;
|
| 261 |
+
serverInfo: Implementation;
|
| 262 |
+
/**
|
| 263 |
+
* Instructions describing how to use the server and its features.
|
| 264 |
+
*
|
| 265 |
+
* This can be used by clients to improve the LLM's understanding of available tools, resources, etc. It can be thought of like a "hint" to the model. For example, this information MAY be added to the system prompt.
|
| 266 |
+
*/
|
| 267 |
+
instructions?: string;
|
| 268 |
+
}
|
| 269 |
+
/**
|
| 270 |
+
* This notification is sent from the client to the server after initialization has finished.
|
| 271 |
+
*
|
| 272 |
+
* @category `notifications/initialized`
|
| 273 |
+
*/
|
| 274 |
+
export interface InitializedNotification extends JSONRPCNotification {
|
| 275 |
+
method: "notifications/initialized";
|
| 276 |
+
params?: NotificationParams;
|
| 277 |
+
}
|
| 278 |
+
/**
|
| 279 |
+
* Capabilities a client may support. Known capabilities are defined here, in this schema, but this is not a closed set: any client can define its own, additional capabilities.
|
| 280 |
+
*
|
| 281 |
+
* @category `initialize`
|
| 282 |
+
*/
|
| 283 |
+
export interface ClientCapabilities {
|
| 284 |
+
/**
|
| 285 |
+
* Experimental, non-standard capabilities that the client supports.
|
| 286 |
+
*/
|
| 287 |
+
experimental?: {
|
| 288 |
+
[key: string]: object;
|
| 289 |
+
};
|
| 290 |
+
/**
|
| 291 |
+
* Present if the client supports listing roots.
|
| 292 |
+
*/
|
| 293 |
+
roots?: {
|
| 294 |
+
/**
|
| 295 |
+
* Whether the client supports notifications for changes to the roots list.
|
| 296 |
+
*/
|
| 297 |
+
listChanged?: boolean;
|
| 298 |
+
};
|
| 299 |
+
/**
|
| 300 |
+
* Present if the client supports sampling from an LLM.
|
| 301 |
+
*/
|
| 302 |
+
sampling?: {
|
| 303 |
+
/**
|
| 304 |
+
* Whether the client supports context inclusion via includeContext parameter.
|
| 305 |
+
* If not declared, servers SHOULD only use `includeContext: "none"` (or omit it).
|
| 306 |
+
*/
|
| 307 |
+
context?: object;
|
| 308 |
+
/**
|
| 309 |
+
* Whether the client supports tool use via tools and toolChoice parameters.
|
| 310 |
+
*/
|
| 311 |
+
tools?: object;
|
| 312 |
+
};
|
| 313 |
+
/**
|
| 314 |
+
* Present if the client supports elicitation from the server.
|
| 315 |
+
*/
|
| 316 |
+
elicitation?: {
|
| 317 |
+
form?: object;
|
| 318 |
+
url?: object;
|
| 319 |
+
};
|
| 320 |
+
/**
|
| 321 |
+
* Present if the client supports task-augmented requests.
|
| 322 |
+
*/
|
| 323 |
+
tasks?: {
|
| 324 |
+
/**
|
| 325 |
+
* Whether this client supports tasks/list.
|
| 326 |
+
*/
|
| 327 |
+
list?: object;
|
| 328 |
+
/**
|
| 329 |
+
* Whether this client supports tasks/cancel.
|
| 330 |
+
*/
|
| 331 |
+
cancel?: object;
|
| 332 |
+
/**
|
| 333 |
+
* Specifies which request types can be augmented with tasks.
|
| 334 |
+
*/
|
| 335 |
+
requests?: {
|
| 336 |
+
/**
|
| 337 |
+
* Task support for sampling-related requests.
|
| 338 |
+
*/
|
| 339 |
+
sampling?: {
|
| 340 |
+
/**
|
| 341 |
+
* Whether the client supports task-augmented sampling/createMessage requests.
|
| 342 |
+
*/
|
| 343 |
+
createMessage?: object;
|
| 344 |
+
};
|
| 345 |
+
/**
|
| 346 |
+
* Task support for elicitation-related requests.
|
| 347 |
+
*/
|
| 348 |
+
elicitation?: {
|
| 349 |
+
/**
|
| 350 |
+
* Whether the client supports task-augmented elicitation/create requests.
|
| 351 |
+
*/
|
| 352 |
+
create?: object;
|
| 353 |
+
};
|
| 354 |
+
};
|
| 355 |
+
};
|
| 356 |
+
/**
|
| 357 |
+
* Extensions that the client supports. Keys are extension identifiers (vendor-prefix/extension-name).
|
| 358 |
+
*/
|
| 359 |
+
extensions?: {
|
| 360 |
+
[key: string]: object;
|
| 361 |
+
};
|
| 362 |
+
}
|
| 363 |
+
/**
|
| 364 |
+
* Capabilities that a server may support. Known capabilities are defined here, in this schema, but this is not a closed set: any server can define its own, additional capabilities.
|
| 365 |
+
*
|
| 366 |
+
* @category `initialize`
|
| 367 |
+
*/
|
| 368 |
+
export interface ServerCapabilities {
|
| 369 |
+
/**
|
| 370 |
+
* Experimental, non-standard capabilities that the server supports.
|
| 371 |
+
*/
|
| 372 |
+
experimental?: {
|
| 373 |
+
[key: string]: object;
|
| 374 |
+
};
|
| 375 |
+
/**
|
| 376 |
+
* Present if the server supports sending log messages to the client.
|
| 377 |
+
*/
|
| 378 |
+
logging?: object;
|
| 379 |
+
/**
|
| 380 |
+
* Present if the server supports argument autocompletion suggestions.
|
| 381 |
+
*/
|
| 382 |
+
completions?: object;
|
| 383 |
+
/**
|
| 384 |
+
* Present if the server offers any prompt templates.
|
| 385 |
+
*/
|
| 386 |
+
prompts?: {
|
| 387 |
+
/**
|
| 388 |
+
* Whether this server supports notifications for changes to the prompt list.
|
| 389 |
+
*/
|
| 390 |
+
listChanged?: boolean;
|
| 391 |
+
};
|
| 392 |
+
/**
|
| 393 |
+
* Present if the server offers any resources to read.
|
| 394 |
+
*/
|
| 395 |
+
resources?: {
|
| 396 |
+
/**
|
| 397 |
+
* Whether this server supports subscribing to resource updates.
|
| 398 |
+
*/
|
| 399 |
+
subscribe?: boolean;
|
| 400 |
+
/**
|
| 401 |
+
* Whether this server supports notifications for changes to the resource list.
|
| 402 |
+
*/
|
| 403 |
+
listChanged?: boolean;
|
| 404 |
+
};
|
| 405 |
+
/**
|
| 406 |
+
* Present if the server offers any tools to call.
|
| 407 |
+
*/
|
| 408 |
+
tools?: {
|
| 409 |
+
/**
|
| 410 |
+
* Whether this server supports notifications for changes to the tool list.
|
| 411 |
+
*/
|
| 412 |
+
listChanged?: boolean;
|
| 413 |
+
};
|
| 414 |
+
/**
|
| 415 |
+
* Present if the server supports task-augmented requests.
|
| 416 |
+
*/
|
| 417 |
+
tasks?: {
|
| 418 |
+
/**
|
| 419 |
+
* Whether this server supports tasks/list.
|
| 420 |
+
*/
|
| 421 |
+
list?: object;
|
| 422 |
+
/**
|
| 423 |
+
* Whether this server supports tasks/cancel.
|
| 424 |
+
*/
|
| 425 |
+
cancel?: object;
|
| 426 |
+
/**
|
| 427 |
+
* Specifies which request types can be augmented with tasks.
|
| 428 |
+
*/
|
| 429 |
+
requests?: {
|
| 430 |
+
/**
|
| 431 |
+
* Task support for tool-related requests.
|
| 432 |
+
*/
|
| 433 |
+
tools?: {
|
| 434 |
+
/**
|
| 435 |
+
* Whether the server supports task-augmented tools/call requests.
|
| 436 |
+
*/
|
| 437 |
+
call?: object;
|
| 438 |
+
};
|
| 439 |
+
};
|
| 440 |
+
};
|
| 441 |
+
/**
|
| 442 |
+
* Extensions that the server supports. Keys are extension identifiers (vendor-prefix/extension-name).
|
| 443 |
+
*/
|
| 444 |
+
extensions?: {
|
| 445 |
+
[key: string]: object;
|
| 446 |
+
};
|
| 447 |
+
}
|
| 448 |
+
/**
|
| 449 |
+
* An optionally-sized icon that can be displayed in a user interface.
|
| 450 |
+
*
|
| 451 |
+
* @category Common Types
|
| 452 |
+
*/
|
| 453 |
+
export interface Icon {
|
| 454 |
+
/**
|
| 455 |
+
* A standard URI pointing to an icon resource. May be an HTTP/HTTPS URL or a
|
| 456 |
+
* `data:` URI with Base64-encoded image data.
|
| 457 |
+
*
|
| 458 |
+
* Consumers SHOULD takes steps to ensure URLs serving icons are from the
|
| 459 |
+
* same domain as the client/server or a trusted domain.
|
| 460 |
+
*
|
| 461 |
+
* Consumers SHOULD take appropriate precautions when consuming SVGs as they can contain
|
| 462 |
+
* executable JavaScript.
|
| 463 |
+
*
|
| 464 |
+
* @format uri
|
| 465 |
+
*/
|
| 466 |
+
src: string;
|
| 467 |
+
/**
|
| 468 |
+
* Optional MIME type override if the source MIME type is missing or generic.
|
| 469 |
+
* For example: `"image/png"`, `"image/jpeg"`, or `"image/svg+xml"`.
|
| 470 |
+
*/
|
| 471 |
+
mimeType?: string;
|
| 472 |
+
/**
|
| 473 |
+
* Optional array of strings that specify sizes at which the icon can be used.
|
| 474 |
+
* Each string should be in WxH format (e.g., `"48x48"`, `"96x96"`) or `"any"` for scalable formats like SVG.
|
| 475 |
+
*
|
| 476 |
+
* If not provided, the client should assume that the icon can be used at any size.
|
| 477 |
+
*/
|
| 478 |
+
sizes?: string[];
|
| 479 |
+
/**
|
| 480 |
+
* Optional specifier for the theme this icon is designed for. `light` indicates
|
| 481 |
+
* the icon is designed to be used with a light background, and `dark` indicates
|
| 482 |
+
* the icon is designed to be used with a dark background.
|
| 483 |
+
*
|
| 484 |
+
* If not provided, the client should assume the icon can be used with any theme.
|
| 485 |
+
*/
|
| 486 |
+
theme?: "light" | "dark";
|
| 487 |
+
}
|
| 488 |
+
/**
|
| 489 |
+
* Base interface to add `icons` property.
|
| 490 |
+
*
|
| 491 |
+
* @internal
|
| 492 |
+
*/
|
| 493 |
+
export interface Icons {
|
| 494 |
+
/**
|
| 495 |
+
* Optional set of sized icons that the client can display in a user interface.
|
| 496 |
+
*
|
| 497 |
+
* Clients that support rendering icons MUST support at least the following MIME types:
|
| 498 |
+
* - `image/png` - PNG images (safe, universal compatibility)
|
| 499 |
+
* - `image/jpeg` (and `image/jpg`) - JPEG images (safe, universal compatibility)
|
| 500 |
+
*
|
| 501 |
+
* Clients that support rendering icons SHOULD also support:
|
| 502 |
+
* - `image/svg+xml` - SVG images (scalable but requires security precautions)
|
| 503 |
+
* - `image/webp` - WebP images (modern, efficient format)
|
| 504 |
+
*/
|
| 505 |
+
icons?: Icon[];
|
| 506 |
+
}
|
| 507 |
+
/**
|
| 508 |
+
* Base interface for metadata with name (identifier) and title (display name) properties.
|
| 509 |
+
*
|
| 510 |
+
* @internal
|
| 511 |
+
*/
|
| 512 |
+
export interface BaseMetadata {
|
| 513 |
+
/**
|
| 514 |
+
* Intended for programmatic or logical use, but used as a display name in past specs or fallback (if title isn't present).
|
| 515 |
+
*/
|
| 516 |
+
name: string;
|
| 517 |
+
/**
|
| 518 |
+
* Intended for UI and end-user contexts — optimized to be human-readable and easily understood,
|
| 519 |
+
* even by those unfamiliar with domain-specific terminology.
|
| 520 |
+
*
|
| 521 |
+
* If not provided, the name should be used for display (except for Tool,
|
| 522 |
+
* where `annotations.title` should be given precedence over using `name`,
|
| 523 |
+
* if present).
|
| 524 |
+
*/
|
| 525 |
+
title?: string;
|
| 526 |
+
}
|
| 527 |
+
/**
|
| 528 |
+
* Describes the MCP implementation.
|
| 529 |
+
*
|
| 530 |
+
* @category `initialize`
|
| 531 |
+
*/
|
| 532 |
+
export interface Implementation extends BaseMetadata, Icons {
|
| 533 |
+
version: string;
|
| 534 |
+
/**
|
| 535 |
+
* An optional human-readable description of what this implementation does.
|
| 536 |
+
*
|
| 537 |
+
* This can be used by clients or servers to provide context about their purpose
|
| 538 |
+
* and capabilities. For example, a server might describe the types of resources
|
| 539 |
+
* or tools it provides, while a client might describe its intended use case.
|
| 540 |
+
*/
|
| 541 |
+
description?: string;
|
| 542 |
+
/**
|
| 543 |
+
* An optional URL of the website for this implementation.
|
| 544 |
+
*
|
| 545 |
+
* @format uri
|
| 546 |
+
*/
|
| 547 |
+
websiteUrl?: string;
|
| 548 |
+
}
|
| 549 |
+
/**
|
| 550 |
+
* A ping, issued by either the server or the client, to check that the other party is still alive. The receiver must promptly respond, or else may be disconnected.
|
| 551 |
+
*
|
| 552 |
+
* @category `ping`
|
| 553 |
+
*/
|
| 554 |
+
export interface PingRequest extends JSONRPCRequest {
|
| 555 |
+
method: "ping";
|
| 556 |
+
params?: RequestParams;
|
| 557 |
+
}
|
| 558 |
+
/**
|
| 559 |
+
* Parameters for a `notifications/progress` notification.
|
| 560 |
+
*
|
| 561 |
+
* @category `notifications/progress`
|
| 562 |
+
*/
|
| 563 |
+
export interface ProgressNotificationParams extends NotificationParams {
|
| 564 |
+
/**
|
| 565 |
+
* The progress token which was given in the initial request, used to associate this notification with the request that is proceeding.
|
| 566 |
+
*/
|
| 567 |
+
progressToken: ProgressToken;
|
| 568 |
+
/**
|
| 569 |
+
* The progress thus far. This should increase every time progress is made, even if the total is unknown.
|
| 570 |
+
*
|
| 571 |
+
* @TJS-type number
|
| 572 |
+
*/
|
| 573 |
+
progress: number;
|
| 574 |
+
/**
|
| 575 |
+
* Total number of items to process (or total progress required), if known.
|
| 576 |
+
*
|
| 577 |
+
* @TJS-type number
|
| 578 |
+
*/
|
| 579 |
+
total?: number;
|
| 580 |
+
/**
|
| 581 |
+
* An optional message describing the current progress.
|
| 582 |
+
*/
|
| 583 |
+
message?: string;
|
| 584 |
+
}
|
| 585 |
+
/**
|
| 586 |
+
* An out-of-band notification used to inform the receiver of a progress update for a long-running request.
|
| 587 |
+
*
|
| 588 |
+
* @category `notifications/progress`
|
| 589 |
+
*/
|
| 590 |
+
export interface ProgressNotification extends JSONRPCNotification {
|
| 591 |
+
method: "notifications/progress";
|
| 592 |
+
params: ProgressNotificationParams;
|
| 593 |
+
}
|
| 594 |
+
/**
|
| 595 |
+
* Common parameters for paginated requests.
|
| 596 |
+
*
|
| 597 |
+
* @internal
|
| 598 |
+
*/
|
| 599 |
+
export interface PaginatedRequestParams extends RequestParams {
|
| 600 |
+
/**
|
| 601 |
+
* An opaque token representing the current pagination position.
|
| 602 |
+
* If provided, the server should return results starting after this cursor.
|
| 603 |
+
*/
|
| 604 |
+
cursor?: Cursor;
|
| 605 |
+
}
|
| 606 |
+
/** @internal */
|
| 607 |
+
export interface PaginatedRequest extends JSONRPCRequest {
|
| 608 |
+
params?: PaginatedRequestParams;
|
| 609 |
+
}
|
| 610 |
+
/** @internal */
|
| 611 |
+
export interface PaginatedResult extends Result {
|
| 612 |
+
/**
|
| 613 |
+
* An opaque token representing the pagination position after the last returned result.
|
| 614 |
+
* If present, there may be more results available.
|
| 615 |
+
*/
|
| 616 |
+
nextCursor?: Cursor;
|
| 617 |
+
}
|
| 618 |
+
/**
|
| 619 |
+
* Sent from the client to request a list of resources the server has.
|
| 620 |
+
*
|
| 621 |
+
* @category `resources/list`
|
| 622 |
+
*/
|
| 623 |
+
export interface ListResourcesRequest extends PaginatedRequest {
|
| 624 |
+
method: "resources/list";
|
| 625 |
+
}
|
| 626 |
+
/**
|
| 627 |
+
* The server's response to a resources/list request from the client.
|
| 628 |
+
*
|
| 629 |
+
* @category `resources/list`
|
| 630 |
+
*/
|
| 631 |
+
export interface ListResourcesResult extends PaginatedResult {
|
| 632 |
+
resources: Resource[];
|
| 633 |
+
}
|
| 634 |
+
/**
|
| 635 |
+
* Sent from the client to request a list of resource templates the server has.
|
| 636 |
+
*
|
| 637 |
+
* @category `resources/templates/list`
|
| 638 |
+
*/
|
| 639 |
+
export interface ListResourceTemplatesRequest extends PaginatedRequest {
|
| 640 |
+
method: "resources/templates/list";
|
| 641 |
+
}
|
| 642 |
+
/**
|
| 643 |
+
* The server's response to a resources/templates/list request from the client.
|
| 644 |
+
*
|
| 645 |
+
* @category `resources/templates/list`
|
| 646 |
+
*/
|
| 647 |
+
export interface ListResourceTemplatesResult extends PaginatedResult {
|
| 648 |
+
resourceTemplates: ResourceTemplate[];
|
| 649 |
+
}
|
| 650 |
+
/**
|
| 651 |
+
* Common parameters when working with resources.
|
| 652 |
+
*
|
| 653 |
+
* @internal
|
| 654 |
+
*/
|
| 655 |
+
export interface ResourceRequestParams extends RequestParams {
|
| 656 |
+
/**
|
| 657 |
+
* The URI of the resource. The URI can use any protocol; it is up to the server how to interpret it.
|
| 658 |
+
*
|
| 659 |
+
* @format uri
|
| 660 |
+
*/
|
| 661 |
+
uri: string;
|
| 662 |
+
}
|
| 663 |
+
/**
|
| 664 |
+
* Parameters for a `resources/read` request.
|
| 665 |
+
*
|
| 666 |
+
* @category `resources/read`
|
| 667 |
+
*/
|
| 668 |
+
export interface ReadResourceRequestParams extends ResourceRequestParams {
|
| 669 |
+
}
|
| 670 |
+
/**
|
| 671 |
+
* Sent from the client to the server, to read a specific resource URI.
|
| 672 |
+
*
|
| 673 |
+
* @category `resources/read`
|
| 674 |
+
*/
|
| 675 |
+
export interface ReadResourceRequest extends JSONRPCRequest {
|
| 676 |
+
method: "resources/read";
|
| 677 |
+
params: ReadResourceRequestParams;
|
| 678 |
+
}
|
| 679 |
+
/**
|
| 680 |
+
* The server's response to a resources/read request from the client.
|
| 681 |
+
*
|
| 682 |
+
* @category `resources/read`
|
| 683 |
+
*/
|
| 684 |
+
export interface ReadResourceResult extends Result {
|
| 685 |
+
contents: (TextResourceContents | BlobResourceContents)[];
|
| 686 |
+
}
|
| 687 |
+
/**
|
| 688 |
+
* An optional notification from the server to the client, informing it that the list of resources it can read from has changed. This may be issued by servers without any previous subscription from the client.
|
| 689 |
+
*
|
| 690 |
+
* @category `notifications/resources/list_changed`
|
| 691 |
+
*/
|
| 692 |
+
export interface ResourceListChangedNotification extends JSONRPCNotification {
|
| 693 |
+
method: "notifications/resources/list_changed";
|
| 694 |
+
params?: NotificationParams;
|
| 695 |
+
}
|
| 696 |
+
/**
|
| 697 |
+
* Parameters for a `resources/subscribe` request.
|
| 698 |
+
*
|
| 699 |
+
* @category `resources/subscribe`
|
| 700 |
+
*/
|
| 701 |
+
export interface SubscribeRequestParams extends ResourceRequestParams {
|
| 702 |
+
}
|
| 703 |
+
/**
|
| 704 |
+
* Sent from the client to request resources/updated notifications from the server whenever a particular resource changes.
|
| 705 |
+
*
|
| 706 |
+
* @category `resources/subscribe`
|
| 707 |
+
*/
|
| 708 |
+
export interface SubscribeRequest extends JSONRPCRequest {
|
| 709 |
+
method: "resources/subscribe";
|
| 710 |
+
params: SubscribeRequestParams;
|
| 711 |
+
}
|
| 712 |
+
/**
|
| 713 |
+
* Parameters for a `resources/unsubscribe` request.
|
| 714 |
+
*
|
| 715 |
+
* @category `resources/unsubscribe`
|
| 716 |
+
*/
|
| 717 |
+
export interface UnsubscribeRequestParams extends ResourceRequestParams {
|
| 718 |
+
}
|
| 719 |
+
/**
|
| 720 |
+
* Sent from the client to request cancellation of resources/updated notifications from the server. This should follow a previous resources/subscribe request.
|
| 721 |
+
*
|
| 722 |
+
* @category `resources/unsubscribe`
|
| 723 |
+
*/
|
| 724 |
+
export interface UnsubscribeRequest extends JSONRPCRequest {
|
| 725 |
+
method: "resources/unsubscribe";
|
| 726 |
+
params: UnsubscribeRequestParams;
|
| 727 |
+
}
|
| 728 |
+
/**
|
| 729 |
+
* Parameters for a `notifications/resources/updated` notification.
|
| 730 |
+
*
|
| 731 |
+
* @category `notifications/resources/updated`
|
| 732 |
+
*/
|
| 733 |
+
export interface ResourceUpdatedNotificationParams extends NotificationParams {
|
| 734 |
+
/**
|
| 735 |
+
* The URI of the resource that has been updated. This might be a sub-resource of the one that the client actually subscribed to.
|
| 736 |
+
*
|
| 737 |
+
* @format uri
|
| 738 |
+
*/
|
| 739 |
+
uri: string;
|
| 740 |
+
}
|
| 741 |
+
/**
|
| 742 |
+
* A notification from the server to the client, informing it that a resource has changed and may need to be read again. This should only be sent if the client previously sent a resources/subscribe request.
|
| 743 |
+
*
|
| 744 |
+
* @category `notifications/resources/updated`
|
| 745 |
+
*/
|
| 746 |
+
export interface ResourceUpdatedNotification extends JSONRPCNotification {
|
| 747 |
+
method: "notifications/resources/updated";
|
| 748 |
+
params: ResourceUpdatedNotificationParams;
|
| 749 |
+
}
|
| 750 |
+
/**
|
| 751 |
+
* A known resource that the server is capable of reading.
|
| 752 |
+
*
|
| 753 |
+
* @category `resources/list`
|
| 754 |
+
*/
|
| 755 |
+
export interface Resource extends BaseMetadata, Icons {
|
| 756 |
+
/**
|
| 757 |
+
* The URI of this resource.
|
| 758 |
+
*
|
| 759 |
+
* @format uri
|
| 760 |
+
*/
|
| 761 |
+
uri: string;
|
| 762 |
+
/**
|
| 763 |
+
* A description of what this resource represents.
|
| 764 |
+
*
|
| 765 |
+
* This can be used by clients to improve the LLM's understanding of available resources. It can be thought of like a "hint" to the model.
|
| 766 |
+
*/
|
| 767 |
+
description?: string;
|
| 768 |
+
/**
|
| 769 |
+
* The MIME type of this resource, if known.
|
| 770 |
+
*/
|
| 771 |
+
mimeType?: string;
|
| 772 |
+
/**
|
| 773 |
+
* Optional annotations for the client.
|
| 774 |
+
*/
|
| 775 |
+
annotations?: Annotations;
|
| 776 |
+
/**
|
| 777 |
+
* The size of the raw resource content, in bytes (i.e., before base64 encoding or any tokenization), if known.
|
| 778 |
+
*
|
| 779 |
+
* This can be used by Hosts to display file sizes and estimate context window usage.
|
| 780 |
+
*/
|
| 781 |
+
size?: number;
|
| 782 |
+
/**
|
| 783 |
+
* See [General fields: `_meta`](/specification/draft/basic/index#meta) for notes on `_meta` usage.
|
| 784 |
+
*/
|
| 785 |
+
_meta?: {
|
| 786 |
+
[key: string]: unknown;
|
| 787 |
+
};
|
| 788 |
+
}
|
| 789 |
+
/**
|
| 790 |
+
* A template description for resources available on the server.
|
| 791 |
+
*
|
| 792 |
+
* @category `resources/templates/list`
|
| 793 |
+
*/
|
| 794 |
+
export interface ResourceTemplate extends BaseMetadata, Icons {
|
| 795 |
+
/**
|
| 796 |
+
* A URI template (according to RFC 6570) that can be used to construct resource URIs.
|
| 797 |
+
*
|
| 798 |
+
* @format uri-template
|
| 799 |
+
*/
|
| 800 |
+
uriTemplate: string;
|
| 801 |
+
/**
|
| 802 |
+
* A description of what this template is for.
|
| 803 |
+
*
|
| 804 |
+
* This can be used by clients to improve the LLM's understanding of available resources. It can be thought of like a "hint" to the model.
|
| 805 |
+
*/
|
| 806 |
+
description?: string;
|
| 807 |
+
/**
|
| 808 |
+
* The MIME type for all resources that match this template. This should only be included if all resources matching this template have the same type.
|
| 809 |
+
*/
|
| 810 |
+
mimeType?: string;
|
| 811 |
+
/**
|
| 812 |
+
* Optional annotations for the client.
|
| 813 |
+
*/
|
| 814 |
+
annotations?: Annotations;
|
| 815 |
+
/**
|
| 816 |
+
* See [General fields: `_meta`](/specification/draft/basic/index#meta) for notes on `_meta` usage.
|
| 817 |
+
*/
|
| 818 |
+
_meta?: {
|
| 819 |
+
[key: string]: unknown;
|
| 820 |
+
};
|
| 821 |
+
}
|
| 822 |
+
/**
|
| 823 |
+
* The contents of a specific resource or sub-resource.
|
| 824 |
+
*
|
| 825 |
+
* @internal
|
| 826 |
+
*/
|
| 827 |
+
export interface ResourceContents {
|
| 828 |
+
/**
|
| 829 |
+
* The URI of this resource.
|
| 830 |
+
*
|
| 831 |
+
* @format uri
|
| 832 |
+
*/
|
| 833 |
+
uri: string;
|
| 834 |
+
/**
|
| 835 |
+
* The MIME type of this resource, if known.
|
| 836 |
+
*/
|
| 837 |
+
mimeType?: string;
|
| 838 |
+
/**
|
| 839 |
+
* See [General fields: `_meta`](/specification/draft/basic/index#meta) for notes on `_meta` usage.
|
| 840 |
+
*/
|
| 841 |
+
_meta?: {
|
| 842 |
+
[key: string]: unknown;
|
| 843 |
+
};
|
| 844 |
+
}
|
| 845 |
+
/**
|
| 846 |
+
* @category Content
|
| 847 |
+
*/
|
| 848 |
+
export interface TextResourceContents extends ResourceContents {
|
| 849 |
+
/**
|
| 850 |
+
* The text of the item. This must only be set if the item can actually be represented as text (not binary data).
|
| 851 |
+
*/
|
| 852 |
+
text: string;
|
| 853 |
+
}
|
| 854 |
+
/**
|
| 855 |
+
* @category Content
|
| 856 |
+
*/
|
| 857 |
+
export interface BlobResourceContents extends ResourceContents {
|
| 858 |
+
/**
|
| 859 |
+
* A base64-encoded string representing the binary data of the item.
|
| 860 |
+
*
|
| 861 |
+
* @format byte
|
| 862 |
+
*/
|
| 863 |
+
blob: string;
|
| 864 |
+
}
|
| 865 |
+
/**
|
| 866 |
+
* Sent from the client to request a list of prompts and prompt templates the server has.
|
| 867 |
+
*
|
| 868 |
+
* @category `prompts/list`
|
| 869 |
+
*/
|
| 870 |
+
export interface ListPromptsRequest extends PaginatedRequest {
|
| 871 |
+
method: "prompts/list";
|
| 872 |
+
}
|
| 873 |
+
/**
|
| 874 |
+
* The server's response to a prompts/list request from the client.
|
| 875 |
+
*
|
| 876 |
+
* @category `prompts/list`
|
| 877 |
+
*/
|
| 878 |
+
export interface ListPromptsResult extends PaginatedResult {
|
| 879 |
+
prompts: Prompt[];
|
| 880 |
+
}
|
| 881 |
+
/**
|
| 882 |
+
* Parameters for a `prompts/get` request.
|
| 883 |
+
*
|
| 884 |
+
* @category `prompts/get`
|
| 885 |
+
*/
|
| 886 |
+
export interface GetPromptRequestParams extends RequestParams {
|
| 887 |
+
/**
|
| 888 |
+
* The name of the prompt or prompt template.
|
| 889 |
+
*/
|
| 890 |
+
name: string;
|
| 891 |
+
/**
|
| 892 |
+
* Arguments to use for templating the prompt.
|
| 893 |
+
*/
|
| 894 |
+
arguments?: {
|
| 895 |
+
[key: string]: string;
|
| 896 |
+
};
|
| 897 |
+
}
|
| 898 |
+
/**
|
| 899 |
+
* Used by the client to get a prompt provided by the server.
|
| 900 |
+
*
|
| 901 |
+
* @category `prompts/get`
|
| 902 |
+
*/
|
| 903 |
+
export interface GetPromptRequest extends JSONRPCRequest {
|
| 904 |
+
method: "prompts/get";
|
| 905 |
+
params: GetPromptRequestParams;
|
| 906 |
+
}
|
| 907 |
+
/**
|
| 908 |
+
* The server's response to a prompts/get request from the client.
|
| 909 |
+
*
|
| 910 |
+
* @category `prompts/get`
|
| 911 |
+
*/
|
| 912 |
+
export interface GetPromptResult extends Result {
|
| 913 |
+
/**
|
| 914 |
+
* An optional description for the prompt.
|
| 915 |
+
*/
|
| 916 |
+
description?: string;
|
| 917 |
+
messages: PromptMessage[];
|
| 918 |
+
}
|
| 919 |
+
/**
|
| 920 |
+
* A prompt or prompt template that the server offers.
|
| 921 |
+
*
|
| 922 |
+
* @category `prompts/list`
|
| 923 |
+
*/
|
| 924 |
+
export interface Prompt extends BaseMetadata, Icons {
|
| 925 |
+
/**
|
| 926 |
+
* An optional description of what this prompt provides
|
| 927 |
+
*/
|
| 928 |
+
description?: string;
|
| 929 |
+
/**
|
| 930 |
+
* A list of arguments to use for templating the prompt.
|
| 931 |
+
*/
|
| 932 |
+
arguments?: PromptArgument[];
|
| 933 |
+
/**
|
| 934 |
+
* See [General fields: `_meta`](/specification/draft/basic/index#meta) for notes on `_meta` usage.
|
| 935 |
+
*/
|
| 936 |
+
_meta?: {
|
| 937 |
+
[key: string]: unknown;
|
| 938 |
+
};
|
| 939 |
+
}
|
| 940 |
+
/**
|
| 941 |
+
* Describes an argument that a prompt can accept.
|
| 942 |
+
*
|
| 943 |
+
* @category `prompts/list`
|
| 944 |
+
*/
|
| 945 |
+
export interface PromptArgument extends BaseMetadata {
|
| 946 |
+
/**
|
| 947 |
+
* A human-readable description of the argument.
|
| 948 |
+
*/
|
| 949 |
+
description?: string;
|
| 950 |
+
/**
|
| 951 |
+
* Whether this argument must be provided.
|
| 952 |
+
*/
|
| 953 |
+
required?: boolean;
|
| 954 |
+
}
|
| 955 |
+
/**
|
| 956 |
+
* The sender or recipient of messages and data in a conversation.
|
| 957 |
+
*
|
| 958 |
+
* @category Common Types
|
| 959 |
+
*/
|
| 960 |
+
export type Role = "user" | "assistant";
|
| 961 |
+
/**
|
| 962 |
+
* Describes a message returned as part of a prompt.
|
| 963 |
+
*
|
| 964 |
+
* This is similar to `SamplingMessage`, but also supports the embedding of
|
| 965 |
+
* resources from the MCP server.
|
| 966 |
+
*
|
| 967 |
+
* @category `prompts/get`
|
| 968 |
+
*/
|
| 969 |
+
export interface PromptMessage {
|
| 970 |
+
role: Role;
|
| 971 |
+
content: ContentBlock;
|
| 972 |
+
}
|
| 973 |
+
/**
|
| 974 |
+
* A resource that the server is capable of reading, included in a prompt or tool call result.
|
| 975 |
+
*
|
| 976 |
+
* Note: resource links returned by tools are not guaranteed to appear in the results of `resources/list` requests.
|
| 977 |
+
*
|
| 978 |
+
* @category Content
|
| 979 |
+
*/
|
| 980 |
+
export interface ResourceLink extends Resource {
|
| 981 |
+
type: "resource_link";
|
| 982 |
+
}
|
| 983 |
+
/**
|
| 984 |
+
* The contents of a resource, embedded into a prompt or tool call result.
|
| 985 |
+
*
|
| 986 |
+
* It is up to the client how best to render embedded resources for the benefit
|
| 987 |
+
* of the LLM and/or the user.
|
| 988 |
+
*
|
| 989 |
+
* @category Content
|
| 990 |
+
*/
|
| 991 |
+
export interface EmbeddedResource {
|
| 992 |
+
type: "resource";
|
| 993 |
+
resource: TextResourceContents | BlobResourceContents;
|
| 994 |
+
/**
|
| 995 |
+
* Optional annotations for the client.
|
| 996 |
+
*/
|
| 997 |
+
annotations?: Annotations;
|
| 998 |
+
/**
|
| 999 |
+
* See [General fields: `_meta`](/specification/draft/basic/index#meta) for notes on `_meta` usage.
|
| 1000 |
+
*/
|
| 1001 |
+
_meta?: {
|
| 1002 |
+
[key: string]: unknown;
|
| 1003 |
+
};
|
| 1004 |
+
}
|
| 1005 |
+
/**
|
| 1006 |
+
* An optional notification from the server to the client, informing it that the list of prompts it offers has changed. This may be issued by servers without any previous subscription from the client.
|
| 1007 |
+
*
|
| 1008 |
+
* @category `notifications/prompts/list_changed`
|
| 1009 |
+
*/
|
| 1010 |
+
export interface PromptListChangedNotification extends JSONRPCNotification {
|
| 1011 |
+
method: "notifications/prompts/list_changed";
|
| 1012 |
+
params?: NotificationParams;
|
| 1013 |
+
}
|
| 1014 |
+
/**
|
| 1015 |
+
* Sent from the client to request a list of tools the server has.
|
| 1016 |
+
*
|
| 1017 |
+
* @category `tools/list`
|
| 1018 |
+
*/
|
| 1019 |
+
export interface ListToolsRequest extends PaginatedRequest {
|
| 1020 |
+
method: "tools/list";
|
| 1021 |
+
}
|
| 1022 |
+
/**
|
| 1023 |
+
* The server's response to a tools/list request from the client.
|
| 1024 |
+
*
|
| 1025 |
+
* @category `tools/list`
|
| 1026 |
+
*/
|
| 1027 |
+
export interface ListToolsResult extends PaginatedResult {
|
| 1028 |
+
tools: Tool[];
|
| 1029 |
+
}
|
| 1030 |
+
/**
|
| 1031 |
+
* The server's response to a tool call.
|
| 1032 |
+
*
|
| 1033 |
+
* @category `tools/call`
|
| 1034 |
+
*/
|
| 1035 |
+
export interface CallToolResult extends Result {
|
| 1036 |
+
/**
|
| 1037 |
+
* A list of content objects that represent the unstructured result of the tool call.
|
| 1038 |
+
*/
|
| 1039 |
+
content: ContentBlock[];
|
| 1040 |
+
/**
|
| 1041 |
+
* An optional JSON object that represents the structured result of the tool call.
|
| 1042 |
+
*/
|
| 1043 |
+
structuredContent?: {
|
| 1044 |
+
[key: string]: unknown;
|
| 1045 |
+
};
|
| 1046 |
+
/**
|
| 1047 |
+
* Whether the tool call ended in an error.
|
| 1048 |
+
*
|
| 1049 |
+
* If not set, this is assumed to be false (the call was successful).
|
| 1050 |
+
*
|
| 1051 |
+
* Any errors that originate from the tool SHOULD be reported inside the result
|
| 1052 |
+
* object, with `isError` set to true, _not_ as an MCP protocol-level error
|
| 1053 |
+
* response. Otherwise, the LLM would not be able to see that an error occurred
|
| 1054 |
+
* and self-correct.
|
| 1055 |
+
*
|
| 1056 |
+
* However, any errors in _finding_ the tool, an error indicating that the
|
| 1057 |
+
* server does not support tool calls, or any other exceptional conditions,
|
| 1058 |
+
* should be reported as an MCP error response.
|
| 1059 |
+
*/
|
| 1060 |
+
isError?: boolean;
|
| 1061 |
+
}
|
| 1062 |
+
/**
|
| 1063 |
+
* Parameters for a `tools/call` request.
|
| 1064 |
+
*
|
| 1065 |
+
* @category `tools/call`
|
| 1066 |
+
*/
|
| 1067 |
+
export interface CallToolRequestParams extends TaskAugmentedRequestParams {
|
| 1068 |
+
/**
|
| 1069 |
+
* The name of the tool.
|
| 1070 |
+
*/
|
| 1071 |
+
name: string;
|
| 1072 |
+
/**
|
| 1073 |
+
* Arguments to use for the tool call.
|
| 1074 |
+
*/
|
| 1075 |
+
arguments?: {
|
| 1076 |
+
[key: string]: unknown;
|
| 1077 |
+
};
|
| 1078 |
+
}
|
| 1079 |
+
/**
|
| 1080 |
+
* Used by the client to invoke a tool provided by the server.
|
| 1081 |
+
*
|
| 1082 |
+
* @category `tools/call`
|
| 1083 |
+
*/
|
| 1084 |
+
export interface CallToolRequest extends JSONRPCRequest {
|
| 1085 |
+
method: "tools/call";
|
| 1086 |
+
params: CallToolRequestParams;
|
| 1087 |
+
}
|
| 1088 |
+
/**
|
| 1089 |
+
* An optional notification from the server to the client, informing it that the list of tools it offers has changed. This may be issued by servers without any previous subscription from the client.
|
| 1090 |
+
*
|
| 1091 |
+
* @category `notifications/tools/list_changed`
|
| 1092 |
+
*/
|
| 1093 |
+
export interface ToolListChangedNotification extends JSONRPCNotification {
|
| 1094 |
+
method: "notifications/tools/list_changed";
|
| 1095 |
+
params?: NotificationParams;
|
| 1096 |
+
}
|
| 1097 |
+
/**
|
| 1098 |
+
* Additional properties describing a Tool to clients.
|
| 1099 |
+
*
|
| 1100 |
+
* NOTE: all properties in ToolAnnotations are **hints**.
|
| 1101 |
+
* They are not guaranteed to provide a faithful description of
|
| 1102 |
+
* tool behavior (including descriptive properties like `title`).
|
| 1103 |
+
*
|
| 1104 |
+
* Clients should never make tool use decisions based on ToolAnnotations
|
| 1105 |
+
* received from untrusted servers.
|
| 1106 |
+
*
|
| 1107 |
+
* @category `tools/list`
|
| 1108 |
+
*/
|
| 1109 |
+
export interface ToolAnnotations {
|
| 1110 |
+
/**
|
| 1111 |
+
* A human-readable title for the tool.
|
| 1112 |
+
*/
|
| 1113 |
+
title?: string;
|
| 1114 |
+
/**
|
| 1115 |
+
* If true, the tool does not modify its environment.
|
| 1116 |
+
*
|
| 1117 |
+
* Default: false
|
| 1118 |
+
*/
|
| 1119 |
+
readOnlyHint?: boolean;
|
| 1120 |
+
/**
|
| 1121 |
+
* If true, the tool may perform destructive updates to its environment.
|
| 1122 |
+
* If false, the tool performs only additive updates.
|
| 1123 |
+
*
|
| 1124 |
+
* (This property is meaningful only when `readOnlyHint == false`)
|
| 1125 |
+
*
|
| 1126 |
+
* Default: true
|
| 1127 |
+
*/
|
| 1128 |
+
destructiveHint?: boolean;
|
| 1129 |
+
/**
|
| 1130 |
+
* If true, calling the tool repeatedly with the same arguments
|
| 1131 |
+
* will have no additional effect on its environment.
|
| 1132 |
+
*
|
| 1133 |
+
* (This property is meaningful only when `readOnlyHint == false`)
|
| 1134 |
+
*
|
| 1135 |
+
* Default: false
|
| 1136 |
+
*/
|
| 1137 |
+
idempotentHint?: boolean;
|
| 1138 |
+
/**
|
| 1139 |
+
* If true, this tool may interact with an "open world" of external
|
| 1140 |
+
* entities. If false, the tool's domain of interaction is closed.
|
| 1141 |
+
* For example, the world of a web search tool is open, whereas that
|
| 1142 |
+
* of a memory tool is not.
|
| 1143 |
+
*
|
| 1144 |
+
* Default: true
|
| 1145 |
+
*/
|
| 1146 |
+
openWorldHint?: boolean;
|
| 1147 |
+
}
|
| 1148 |
+
/**
|
| 1149 |
+
* Execution-related properties for a tool.
|
| 1150 |
+
*
|
| 1151 |
+
* @category `tools/list`
|
| 1152 |
+
*/
|
| 1153 |
+
export interface ToolExecution {
|
| 1154 |
+
/**
|
| 1155 |
+
* Indicates whether this tool supports task-augmented execution.
|
| 1156 |
+
* This allows clients to handle long-running operations through polling
|
| 1157 |
+
* the task system.
|
| 1158 |
+
*
|
| 1159 |
+
* - "forbidden": Tool does not support task-augmented execution (default when absent)
|
| 1160 |
+
* - "optional": Tool may support task-augmented execution
|
| 1161 |
+
* - "required": Tool requires task-augmented execution
|
| 1162 |
+
*
|
| 1163 |
+
* Default: "forbidden"
|
| 1164 |
+
*/
|
| 1165 |
+
taskSupport?: "forbidden" | "optional" | "required";
|
| 1166 |
+
}
|
| 1167 |
+
/**
|
| 1168 |
+
* Definition for a tool the client can call.
|
| 1169 |
+
*
|
| 1170 |
+
* @category `tools/list`
|
| 1171 |
+
*/
|
| 1172 |
+
export interface Tool extends BaseMetadata, Icons {
|
| 1173 |
+
/**
|
| 1174 |
+
* A human-readable description of the tool.
|
| 1175 |
+
*
|
| 1176 |
+
* This can be used by clients to improve the LLM's understanding of available tools. It can be thought of like a "hint" to the model.
|
| 1177 |
+
*/
|
| 1178 |
+
description?: string;
|
| 1179 |
+
/**
|
| 1180 |
+
* A JSON Schema object defining the expected parameters for the tool.
|
| 1181 |
+
*/
|
| 1182 |
+
inputSchema: {
|
| 1183 |
+
$schema?: string;
|
| 1184 |
+
type: "object";
|
| 1185 |
+
properties?: {
|
| 1186 |
+
[key: string]: object;
|
| 1187 |
+
};
|
| 1188 |
+
required?: string[];
|
| 1189 |
+
};
|
| 1190 |
+
/**
|
| 1191 |
+
* Execution-related properties for this tool.
|
| 1192 |
+
*/
|
| 1193 |
+
execution?: ToolExecution;
|
| 1194 |
+
/**
|
| 1195 |
+
* An optional JSON Schema object defining the structure of the tool's output returned in
|
| 1196 |
+
* the structuredContent field of a CallToolResult.
|
| 1197 |
+
*
|
| 1198 |
+
* Defaults to JSON Schema 2020-12 when no explicit $schema is provided.
|
| 1199 |
+
* Currently restricted to type: "object" at the root level.
|
| 1200 |
+
*/
|
| 1201 |
+
outputSchema?: {
|
| 1202 |
+
$schema?: string;
|
| 1203 |
+
type: "object";
|
| 1204 |
+
properties?: {
|
| 1205 |
+
[key: string]: object;
|
| 1206 |
+
};
|
| 1207 |
+
required?: string[];
|
| 1208 |
+
};
|
| 1209 |
+
/**
|
| 1210 |
+
* Optional additional tool information.
|
| 1211 |
+
*
|
| 1212 |
+
* Display name precedence order is: title, annotations.title, then name.
|
| 1213 |
+
*/
|
| 1214 |
+
annotations?: ToolAnnotations;
|
| 1215 |
+
/**
|
| 1216 |
+
* See [General fields: `_meta`](/specification/draft/basic/index#meta) for notes on `_meta` usage.
|
| 1217 |
+
*/
|
| 1218 |
+
_meta?: {
|
| 1219 |
+
[key: string]: unknown;
|
| 1220 |
+
};
|
| 1221 |
+
}
|
| 1222 |
+
/**
|
| 1223 |
+
* The status of a task.
|
| 1224 |
+
*
|
| 1225 |
+
* @category `tasks`
|
| 1226 |
+
*/
|
| 1227 |
+
export type TaskStatus = "working" | "input_required" | "completed" | "failed" | "cancelled";
|
| 1228 |
+
/**
|
| 1229 |
+
* Metadata for augmenting a request with task execution.
|
| 1230 |
+
* Include this in the `task` field of the request parameters.
|
| 1231 |
+
*
|
| 1232 |
+
* @category `tasks`
|
| 1233 |
+
*/
|
| 1234 |
+
export interface TaskMetadata {
|
| 1235 |
+
/**
|
| 1236 |
+
* Requested duration in milliseconds to retain task from creation.
|
| 1237 |
+
*/
|
| 1238 |
+
ttl?: number;
|
| 1239 |
+
}
|
| 1240 |
+
/**
|
| 1241 |
+
* Metadata for associating messages with a task.
|
| 1242 |
+
* Include this in the `_meta` field under the key `io.modelcontextprotocol/related-task`.
|
| 1243 |
+
*
|
| 1244 |
+
* @category `tasks`
|
| 1245 |
+
*/
|
| 1246 |
+
export interface RelatedTaskMetadata {
|
| 1247 |
+
/**
|
| 1248 |
+
* The task identifier this message is associated with.
|
| 1249 |
+
*/
|
| 1250 |
+
taskId: string;
|
| 1251 |
+
}
|
| 1252 |
+
/**
|
| 1253 |
+
* Data associated with a task.
|
| 1254 |
+
*
|
| 1255 |
+
* @category `tasks`
|
| 1256 |
+
*/
|
| 1257 |
+
export interface Task {
|
| 1258 |
+
/**
|
| 1259 |
+
* The task identifier.
|
| 1260 |
+
*/
|
| 1261 |
+
taskId: string;
|
| 1262 |
+
/**
|
| 1263 |
+
* Current task state.
|
| 1264 |
+
*/
|
| 1265 |
+
status: TaskStatus;
|
| 1266 |
+
/**
|
| 1267 |
+
* Optional human-readable message describing the current task state.
|
| 1268 |
+
* This can provide context for any status, including:
|
| 1269 |
+
* - Reasons for "cancelled" status
|
| 1270 |
+
* - Summaries for "completed" status
|
| 1271 |
+
* - Diagnostic information for "failed" status (e.g., error details, what went wrong)
|
| 1272 |
+
*/
|
| 1273 |
+
statusMessage?: string;
|
| 1274 |
+
/**
|
| 1275 |
+
* ISO 8601 timestamp when the task was created.
|
| 1276 |
+
*/
|
| 1277 |
+
createdAt: string;
|
| 1278 |
+
/**
|
| 1279 |
+
* ISO 8601 timestamp when the task was last updated.
|
| 1280 |
+
*/
|
| 1281 |
+
lastUpdatedAt: string;
|
| 1282 |
+
/**
|
| 1283 |
+
* Actual retention duration from creation in milliseconds, null for unlimited.
|
| 1284 |
+
*/
|
| 1285 |
+
ttl: number | null;
|
| 1286 |
+
/**
|
| 1287 |
+
* Suggested polling interval in milliseconds.
|
| 1288 |
+
*/
|
| 1289 |
+
pollInterval?: number;
|
| 1290 |
+
}
|
| 1291 |
+
/**
|
| 1292 |
+
* A response to a task-augmented request.
|
| 1293 |
+
*
|
| 1294 |
+
* @category `tasks`
|
| 1295 |
+
*/
|
| 1296 |
+
export interface CreateTaskResult extends Result {
|
| 1297 |
+
task: Task;
|
| 1298 |
+
}
|
| 1299 |
+
/**
|
| 1300 |
+
* A request to retrieve the state of a task.
|
| 1301 |
+
*
|
| 1302 |
+
* @category `tasks/get`
|
| 1303 |
+
*/
|
| 1304 |
+
export interface GetTaskRequest extends JSONRPCRequest {
|
| 1305 |
+
method: "tasks/get";
|
| 1306 |
+
params: {
|
| 1307 |
+
/**
|
| 1308 |
+
* The task identifier to query.
|
| 1309 |
+
*/
|
| 1310 |
+
taskId: string;
|
| 1311 |
+
};
|
| 1312 |
+
}
|
| 1313 |
+
/**
|
| 1314 |
+
* The response to a tasks/get request.
|
| 1315 |
+
*
|
| 1316 |
+
* @category `tasks/get`
|
| 1317 |
+
*/
|
| 1318 |
+
export type GetTaskResult = Result & Task;
|
| 1319 |
+
/**
|
| 1320 |
+
* A request to retrieve the result of a completed task.
|
| 1321 |
+
*
|
| 1322 |
+
* @category `tasks/result`
|
| 1323 |
+
*/
|
| 1324 |
+
export interface GetTaskPayloadRequest extends JSONRPCRequest {
|
| 1325 |
+
method: "tasks/result";
|
| 1326 |
+
params: {
|
| 1327 |
+
/**
|
| 1328 |
+
* The task identifier to retrieve results for.
|
| 1329 |
+
*/
|
| 1330 |
+
taskId: string;
|
| 1331 |
+
};
|
| 1332 |
+
}
|
| 1333 |
+
/**
|
| 1334 |
+
* The response to a tasks/result request.
|
| 1335 |
+
* The structure matches the result type of the original request.
|
| 1336 |
+
* For example, a tools/call task would return the CallToolResult structure.
|
| 1337 |
+
*
|
| 1338 |
+
* @category `tasks/result`
|
| 1339 |
+
*/
|
| 1340 |
+
export interface GetTaskPayloadResult extends Result {
|
| 1341 |
+
[key: string]: unknown;
|
| 1342 |
+
}
|
| 1343 |
+
/**
|
| 1344 |
+
* A request to cancel a task.
|
| 1345 |
+
*
|
| 1346 |
+
* @category `tasks/cancel`
|
| 1347 |
+
*/
|
| 1348 |
+
export interface CancelTaskRequest extends JSONRPCRequest {
|
| 1349 |
+
method: "tasks/cancel";
|
| 1350 |
+
params: {
|
| 1351 |
+
/**
|
| 1352 |
+
* The task identifier to cancel.
|
| 1353 |
+
*/
|
| 1354 |
+
taskId: string;
|
| 1355 |
+
};
|
| 1356 |
+
}
|
| 1357 |
+
/**
|
| 1358 |
+
* The response to a tasks/cancel request.
|
| 1359 |
+
*
|
| 1360 |
+
* @category `tasks/cancel`
|
| 1361 |
+
*/
|
| 1362 |
+
export type CancelTaskResult = Result & Task;
|
| 1363 |
+
/**
|
| 1364 |
+
* A request to retrieve a list of tasks.
|
| 1365 |
+
*
|
| 1366 |
+
* @category `tasks/list`
|
| 1367 |
+
*/
|
| 1368 |
+
export interface ListTasksRequest extends PaginatedRequest {
|
| 1369 |
+
method: "tasks/list";
|
| 1370 |
+
}
|
| 1371 |
+
/**
|
| 1372 |
+
* The response to a tasks/list request.
|
| 1373 |
+
*
|
| 1374 |
+
* @category `tasks/list`
|
| 1375 |
+
*/
|
| 1376 |
+
export interface ListTasksResult extends PaginatedResult {
|
| 1377 |
+
tasks: Task[];
|
| 1378 |
+
}
|
| 1379 |
+
/**
|
| 1380 |
+
* Parameters for a `notifications/tasks/status` notification.
|
| 1381 |
+
*
|
| 1382 |
+
* @category `notifications/tasks/status`
|
| 1383 |
+
*/
|
| 1384 |
+
export type TaskStatusNotificationParams = NotificationParams & Task;
|
| 1385 |
+
/**
|
| 1386 |
+
* An optional notification from the receiver to the requestor, informing them that a task's status has changed. Receivers are not required to send these notifications.
|
| 1387 |
+
*
|
| 1388 |
+
* @category `notifications/tasks/status`
|
| 1389 |
+
*/
|
| 1390 |
+
export interface TaskStatusNotification extends JSONRPCNotification {
|
| 1391 |
+
method: "notifications/tasks/status";
|
| 1392 |
+
params: TaskStatusNotificationParams;
|
| 1393 |
+
}
|
| 1394 |
+
/**
|
| 1395 |
+
* Parameters for a `logging/setLevel` request.
|
| 1396 |
+
*
|
| 1397 |
+
* @category `logging/setLevel`
|
| 1398 |
+
*/
|
| 1399 |
+
export interface SetLevelRequestParams extends RequestParams {
|
| 1400 |
+
/**
|
| 1401 |
+
* The level of logging that the client wants to receive from the server. The server should send all logs at this level and higher (i.e., more severe) to the client as notifications/message.
|
| 1402 |
+
*/
|
| 1403 |
+
level: LoggingLevel;
|
| 1404 |
+
}
|
| 1405 |
+
/**
|
| 1406 |
+
* A request from the client to the server, to enable or adjust logging.
|
| 1407 |
+
*
|
| 1408 |
+
* @category `logging/setLevel`
|
| 1409 |
+
*/
|
| 1410 |
+
export interface SetLevelRequest extends JSONRPCRequest {
|
| 1411 |
+
method: "logging/setLevel";
|
| 1412 |
+
params: SetLevelRequestParams;
|
| 1413 |
+
}
|
| 1414 |
+
/**
|
| 1415 |
+
* Parameters for a `notifications/message` notification.
|
| 1416 |
+
*
|
| 1417 |
+
* @category `notifications/message`
|
| 1418 |
+
*/
|
| 1419 |
+
export interface LoggingMessageNotificationParams extends NotificationParams {
|
| 1420 |
+
/**
|
| 1421 |
+
* The severity of this log message.
|
| 1422 |
+
*/
|
| 1423 |
+
level: LoggingLevel;
|
| 1424 |
+
/**
|
| 1425 |
+
* An optional name of the logger issuing this message.
|
| 1426 |
+
*/
|
| 1427 |
+
logger?: string;
|
| 1428 |
+
/**
|
| 1429 |
+
* The data to be logged, such as a string message or an object. Any JSON serializable type is allowed here.
|
| 1430 |
+
*/
|
| 1431 |
+
data: unknown;
|
| 1432 |
+
}
|
| 1433 |
+
/**
|
| 1434 |
+
* JSONRPCNotification of a log message passed from server to client. If no logging/setLevel request has been sent from the client, the server MAY decide which messages to send automatically.
|
| 1435 |
+
*
|
| 1436 |
+
* @category `notifications/message`
|
| 1437 |
+
*/
|
| 1438 |
+
export interface LoggingMessageNotification extends JSONRPCNotification {
|
| 1439 |
+
method: "notifications/message";
|
| 1440 |
+
params: LoggingMessageNotificationParams;
|
| 1441 |
+
}
|
| 1442 |
+
/**
|
| 1443 |
+
* The severity of a log message.
|
| 1444 |
+
*
|
| 1445 |
+
* These map to syslog message severities, as specified in RFC-5424:
|
| 1446 |
+
* https://datatracker.ietf.org/doc/html/rfc5424#section-6.2.1
|
| 1447 |
+
*
|
| 1448 |
+
* @category Common Types
|
| 1449 |
+
*/
|
| 1450 |
+
export type LoggingLevel = "debug" | "info" | "notice" | "warning" | "error" | "critical" | "alert" | "emergency";
|
| 1451 |
+
/**
|
| 1452 |
+
* Parameters for a `sampling/createMessage` request.
|
| 1453 |
+
*
|
| 1454 |
+
* @category `sampling/createMessage`
|
| 1455 |
+
*/
|
| 1456 |
+
export interface CreateMessageRequestParams extends TaskAugmentedRequestParams {
|
| 1457 |
+
messages: SamplingMessage[];
|
| 1458 |
+
/**
|
| 1459 |
+
* The server's preferences for which model to select. The client MAY ignore these preferences.
|
| 1460 |
+
*/
|
| 1461 |
+
modelPreferences?: ModelPreferences;
|
| 1462 |
+
/**
|
| 1463 |
+
* An optional system prompt the server wants to use for sampling. The client MAY modify or omit this prompt.
|
| 1464 |
+
*/
|
| 1465 |
+
systemPrompt?: string;
|
| 1466 |
+
/**
|
| 1467 |
+
* A request to include context from one or more MCP servers (including the caller), to be attached to the prompt.
|
| 1468 |
+
* The client MAY ignore this request.
|
| 1469 |
+
*
|
| 1470 |
+
* Default is "none". Values "thisServer" and "allServers" are soft-deprecated. Servers SHOULD only use these values if the client
|
| 1471 |
+
* declares ClientCapabilities.sampling.context. These values may be removed in future spec releases.
|
| 1472 |
+
*/
|
| 1473 |
+
includeContext?: "none" | "thisServer" | "allServers";
|
| 1474 |
+
/**
|
| 1475 |
+
* @TJS-type number
|
| 1476 |
+
*/
|
| 1477 |
+
temperature?: number;
|
| 1478 |
+
/**
|
| 1479 |
+
* The requested maximum number of tokens to sample (to prevent runaway completions).
|
| 1480 |
+
*
|
| 1481 |
+
* The client MAY choose to sample fewer tokens than the requested maximum.
|
| 1482 |
+
*/
|
| 1483 |
+
maxTokens: number;
|
| 1484 |
+
stopSequences?: string[];
|
| 1485 |
+
/**
|
| 1486 |
+
* Optional metadata to pass through to the LLM provider. The format of this metadata is provider-specific.
|
| 1487 |
+
*/
|
| 1488 |
+
metadata?: object;
|
| 1489 |
+
/**
|
| 1490 |
+
* Tools that the model may use during generation.
|
| 1491 |
+
* The client MUST return an error if this field is provided but ClientCapabilities.sampling.tools is not declared.
|
| 1492 |
+
*/
|
| 1493 |
+
tools?: Tool[];
|
| 1494 |
+
/**
|
| 1495 |
+
* Controls how the model uses tools.
|
| 1496 |
+
* The client MUST return an error if this field is provided but ClientCapabilities.sampling.tools is not declared.
|
| 1497 |
+
* Default is `{ mode: "auto" }`.
|
| 1498 |
+
*/
|
| 1499 |
+
toolChoice?: ToolChoice;
|
| 1500 |
+
}
|
| 1501 |
+
/**
|
| 1502 |
+
* Controls tool selection behavior for sampling requests.
|
| 1503 |
+
*
|
| 1504 |
+
* @category `sampling/createMessage`
|
| 1505 |
+
*/
|
| 1506 |
+
export interface ToolChoice {
|
| 1507 |
+
/**
|
| 1508 |
+
* Controls the tool use ability of the model:
|
| 1509 |
+
* - "auto": Model decides whether to use tools (default)
|
| 1510 |
+
* - "required": Model MUST use at least one tool before completing
|
| 1511 |
+
* - "none": Model MUST NOT use any tools
|
| 1512 |
+
*/
|
| 1513 |
+
mode?: "auto" | "required" | "none";
|
| 1514 |
+
}
|
| 1515 |
+
/**
|
| 1516 |
+
* A request from the server to sample an LLM via the client. The client has full discretion over which model to select. The client should also inform the user before beginning sampling, to allow them to inspect the request (human in the loop) and decide whether to approve it.
|
| 1517 |
+
*
|
| 1518 |
+
* @category `sampling/createMessage`
|
| 1519 |
+
*/
|
| 1520 |
+
export interface CreateMessageRequest extends JSONRPCRequest {
|
| 1521 |
+
method: "sampling/createMessage";
|
| 1522 |
+
params: CreateMessageRequestParams;
|
| 1523 |
+
}
|
| 1524 |
+
/**
|
| 1525 |
+
* The client's response to a sampling/createMessage request from the server.
|
| 1526 |
+
* The client should inform the user before returning the sampled message, to allow them
|
| 1527 |
+
* to inspect the response (human in the loop) and decide whether to allow the server to see it.
|
| 1528 |
+
*
|
| 1529 |
+
* @category `sampling/createMessage`
|
| 1530 |
+
*/
|
| 1531 |
+
export interface CreateMessageResult extends Result, SamplingMessage {
|
| 1532 |
+
/**
|
| 1533 |
+
* The name of the model that generated the message.
|
| 1534 |
+
*/
|
| 1535 |
+
model: string;
|
| 1536 |
+
/**
|
| 1537 |
+
* The reason why sampling stopped, if known.
|
| 1538 |
+
*
|
| 1539 |
+
* Standard values:
|
| 1540 |
+
* - "endTurn": Natural end of the assistant's turn
|
| 1541 |
+
* - "stopSequence": A stop sequence was encountered
|
| 1542 |
+
* - "maxTokens": Maximum token limit was reached
|
| 1543 |
+
* - "toolUse": The model wants to use one or more tools
|
| 1544 |
+
*
|
| 1545 |
+
* This field is an open string to allow for provider-specific stop reasons.
|
| 1546 |
+
*/
|
| 1547 |
+
stopReason?: "endTurn" | "stopSequence" | "maxTokens" | "toolUse" | string;
|
| 1548 |
+
}
|
| 1549 |
+
/**
|
| 1550 |
+
* Describes a message issued to or received from an LLM API.
|
| 1551 |
+
*
|
| 1552 |
+
* @category `sampling/createMessage`
|
| 1553 |
+
*/
|
| 1554 |
+
export interface SamplingMessage {
|
| 1555 |
+
role: Role;
|
| 1556 |
+
content: SamplingMessageContentBlock | SamplingMessageContentBlock[];
|
| 1557 |
+
/**
|
| 1558 |
+
* See [General fields: `_meta`](/specification/draft/basic/index#meta) for notes on `_meta` usage.
|
| 1559 |
+
*/
|
| 1560 |
+
_meta?: {
|
| 1561 |
+
[key: string]: unknown;
|
| 1562 |
+
};
|
| 1563 |
+
}
|
| 1564 |
+
export type SamplingMessageContentBlock = TextContent | ImageContent | AudioContent | ToolUseContent | ToolResultContent;
|
| 1565 |
+
/**
|
| 1566 |
+
* Optional annotations for the client. The client can use annotations to inform how objects are used or displayed
|
| 1567 |
+
*
|
| 1568 |
+
* @category Common Types
|
| 1569 |
+
*/
|
| 1570 |
+
export interface Annotations {
|
| 1571 |
+
/**
|
| 1572 |
+
* Describes who the intended audience of this object or data is.
|
| 1573 |
+
*
|
| 1574 |
+
* It can include multiple entries to indicate content useful for multiple audiences (e.g., `["user", "assistant"]`).
|
| 1575 |
+
*/
|
| 1576 |
+
audience?: Role[];
|
| 1577 |
+
/**
|
| 1578 |
+
* Describes how important this data is for operating the server.
|
| 1579 |
+
*
|
| 1580 |
+
* A value of 1 means "most important," and indicates that the data is
|
| 1581 |
+
* effectively required, while 0 means "least important," and indicates that
|
| 1582 |
+
* the data is entirely optional.
|
| 1583 |
+
*
|
| 1584 |
+
* @TJS-type number
|
| 1585 |
+
* @minimum 0
|
| 1586 |
+
* @maximum 1
|
| 1587 |
+
*/
|
| 1588 |
+
priority?: number;
|
| 1589 |
+
/**
|
| 1590 |
+
* The moment the resource was last modified, as an ISO 8601 formatted string.
|
| 1591 |
+
*
|
| 1592 |
+
* Should be an ISO 8601 formatted string (e.g., "2025-01-12T15:00:58Z").
|
| 1593 |
+
*
|
| 1594 |
+
* Examples: last activity timestamp in an open file, timestamp when the resource
|
| 1595 |
+
* was attached, etc.
|
| 1596 |
+
*/
|
| 1597 |
+
lastModified?: string;
|
| 1598 |
+
}
|
| 1599 |
+
/**
|
| 1600 |
+
* @category Content
|
| 1601 |
+
*/
|
| 1602 |
+
export type ContentBlock = TextContent | ImageContent | AudioContent | ResourceLink | EmbeddedResource;
|
| 1603 |
+
/**
|
| 1604 |
+
* Text provided to or from an LLM.
|
| 1605 |
+
*
|
| 1606 |
+
* @category Content
|
| 1607 |
+
*/
|
| 1608 |
+
export interface TextContent {
|
| 1609 |
+
type: "text";
|
| 1610 |
+
/**
|
| 1611 |
+
* The text content of the message.
|
| 1612 |
+
*/
|
| 1613 |
+
text: string;
|
| 1614 |
+
/**
|
| 1615 |
+
* Optional annotations for the client.
|
| 1616 |
+
*/
|
| 1617 |
+
annotations?: Annotations;
|
| 1618 |
+
/**
|
| 1619 |
+
* See [General fields: `_meta`](/specification/draft/basic/index#meta) for notes on `_meta` usage.
|
| 1620 |
+
*/
|
| 1621 |
+
_meta?: {
|
| 1622 |
+
[key: string]: unknown;
|
| 1623 |
+
};
|
| 1624 |
+
}
|
| 1625 |
+
/**
|
| 1626 |
+
* An image provided to or from an LLM.
|
| 1627 |
+
*
|
| 1628 |
+
* @category Content
|
| 1629 |
+
*/
|
| 1630 |
+
export interface ImageContent {
|
| 1631 |
+
type: "image";
|
| 1632 |
+
/**
|
| 1633 |
+
* The base64-encoded image data.
|
| 1634 |
+
*
|
| 1635 |
+
* @format byte
|
| 1636 |
+
*/
|
| 1637 |
+
data: string;
|
| 1638 |
+
/**
|
| 1639 |
+
* The MIME type of the image. Different providers may support different image types.
|
| 1640 |
+
*/
|
| 1641 |
+
mimeType: string;
|
| 1642 |
+
/**
|
| 1643 |
+
* Optional annotations for the client.
|
| 1644 |
+
*/
|
| 1645 |
+
annotations?: Annotations;
|
| 1646 |
+
/**
|
| 1647 |
+
* See [General fields: `_meta`](/specification/draft/basic/index#meta) for notes on `_meta` usage.
|
| 1648 |
+
*/
|
| 1649 |
+
_meta?: {
|
| 1650 |
+
[key: string]: unknown;
|
| 1651 |
+
};
|
| 1652 |
+
}
|
| 1653 |
+
/**
|
| 1654 |
+
* Audio provided to or from an LLM.
|
| 1655 |
+
*
|
| 1656 |
+
* @category Content
|
| 1657 |
+
*/
|
| 1658 |
+
export interface AudioContent {
|
| 1659 |
+
type: "audio";
|
| 1660 |
+
/**
|
| 1661 |
+
* The base64-encoded audio data.
|
| 1662 |
+
*
|
| 1663 |
+
* @format byte
|
| 1664 |
+
*/
|
| 1665 |
+
data: string;
|
| 1666 |
+
/**
|
| 1667 |
+
* The MIME type of the audio. Different providers may support different audio types.
|
| 1668 |
+
*/
|
| 1669 |
+
mimeType: string;
|
| 1670 |
+
/**
|
| 1671 |
+
* Optional annotations for the client.
|
| 1672 |
+
*/
|
| 1673 |
+
annotations?: Annotations;
|
| 1674 |
+
/**
|
| 1675 |
+
* See [General fields: `_meta`](/specification/draft/basic/index#meta) for notes on `_meta` usage.
|
| 1676 |
+
*/
|
| 1677 |
+
_meta?: {
|
| 1678 |
+
[key: string]: unknown;
|
| 1679 |
+
};
|
| 1680 |
+
}
|
| 1681 |
+
/**
|
| 1682 |
+
* A request from the assistant to call a tool.
|
| 1683 |
+
*
|
| 1684 |
+
* @category `sampling/createMessage`
|
| 1685 |
+
*/
|
| 1686 |
+
export interface ToolUseContent {
|
| 1687 |
+
type: "tool_use";
|
| 1688 |
+
/**
|
| 1689 |
+
* A unique identifier for this tool use.
|
| 1690 |
+
*
|
| 1691 |
+
* This ID is used to match tool results to their corresponding tool uses.
|
| 1692 |
+
*/
|
| 1693 |
+
id: string;
|
| 1694 |
+
/**
|
| 1695 |
+
* The name of the tool to call.
|
| 1696 |
+
*/
|
| 1697 |
+
name: string;
|
| 1698 |
+
/**
|
| 1699 |
+
* The arguments to pass to the tool, conforming to the tool's input schema.
|
| 1700 |
+
*/
|
| 1701 |
+
input: {
|
| 1702 |
+
[key: string]: unknown;
|
| 1703 |
+
};
|
| 1704 |
+
/**
|
| 1705 |
+
* Optional metadata about the tool use. Clients SHOULD preserve this field when
|
| 1706 |
+
* including tool uses in subsequent sampling requests to enable caching optimizations.
|
| 1707 |
+
*
|
| 1708 |
+
* See [General fields: `_meta`](/specification/draft/basic/index#meta) for notes on `_meta` usage.
|
| 1709 |
+
*/
|
| 1710 |
+
_meta?: {
|
| 1711 |
+
[key: string]: unknown;
|
| 1712 |
+
};
|
| 1713 |
+
}
|
| 1714 |
+
/**
|
| 1715 |
+
* The result of a tool use, provided by the user back to the assistant.
|
| 1716 |
+
*
|
| 1717 |
+
* @category `sampling/createMessage`
|
| 1718 |
+
*/
|
| 1719 |
+
export interface ToolResultContent {
|
| 1720 |
+
type: "tool_result";
|
| 1721 |
+
/**
|
| 1722 |
+
* The ID of the tool use this result corresponds to.
|
| 1723 |
+
*
|
| 1724 |
+
* This MUST match the ID from a previous ToolUseContent.
|
| 1725 |
+
*/
|
| 1726 |
+
toolUseId: string;
|
| 1727 |
+
/**
|
| 1728 |
+
* The unstructured result content of the tool use.
|
| 1729 |
+
*
|
| 1730 |
+
* This has the same format as CallToolResult.content and can include text, images,
|
| 1731 |
+
* audio, resource links, and embedded resources.
|
| 1732 |
+
*/
|
| 1733 |
+
content: ContentBlock[];
|
| 1734 |
+
/**
|
| 1735 |
+
* An optional structured result object.
|
| 1736 |
+
*
|
| 1737 |
+
* If the tool defined an outputSchema, this SHOULD conform to that schema.
|
| 1738 |
+
*/
|
| 1739 |
+
structuredContent?: {
|
| 1740 |
+
[key: string]: unknown;
|
| 1741 |
+
};
|
| 1742 |
+
/**
|
| 1743 |
+
* Whether the tool use resulted in an error.
|
| 1744 |
+
*
|
| 1745 |
+
* If true, the content typically describes the error that occurred.
|
| 1746 |
+
* Default: false
|
| 1747 |
+
*/
|
| 1748 |
+
isError?: boolean;
|
| 1749 |
+
/**
|
| 1750 |
+
* Optional metadata about the tool result. Clients SHOULD preserve this field when
|
| 1751 |
+
* including tool results in subsequent sampling requests to enable caching optimizations.
|
| 1752 |
+
*
|
| 1753 |
+
* See [General fields: `_meta`](/specification/draft/basic/index#meta) for notes on `_meta` usage.
|
| 1754 |
+
*/
|
| 1755 |
+
_meta?: {
|
| 1756 |
+
[key: string]: unknown;
|
| 1757 |
+
};
|
| 1758 |
+
}
|
| 1759 |
+
/**
|
| 1760 |
+
* The server's preferences for model selection, requested of the client during sampling.
|
| 1761 |
+
*
|
| 1762 |
+
* Because LLMs can vary along multiple dimensions, choosing the "best" model is
|
| 1763 |
+
* rarely straightforward. Different models excel in different areas—some are
|
| 1764 |
+
* faster but less capable, others are more capable but more expensive, and so
|
| 1765 |
+
* on. This interface allows servers to express their priorities across multiple
|
| 1766 |
+
* dimensions to help clients make an appropriate selection for their use case.
|
| 1767 |
+
*
|
| 1768 |
+
* These preferences are always advisory. The client MAY ignore them. It is also
|
| 1769 |
+
* up to the client to decide how to interpret these preferences and how to
|
| 1770 |
+
* balance them against other considerations.
|
| 1771 |
+
*
|
| 1772 |
+
* @category `sampling/createMessage`
|
| 1773 |
+
*/
|
| 1774 |
+
export interface ModelPreferences {
|
| 1775 |
+
/**
|
| 1776 |
+
* Optional hints to use for model selection.
|
| 1777 |
+
*
|
| 1778 |
+
* If multiple hints are specified, the client MUST evaluate them in order
|
| 1779 |
+
* (such that the first match is taken).
|
| 1780 |
+
*
|
| 1781 |
+
* The client SHOULD prioritize these hints over the numeric priorities, but
|
| 1782 |
+
* MAY still use the priorities to select from ambiguous matches.
|
| 1783 |
+
*/
|
| 1784 |
+
hints?: ModelHint[];
|
| 1785 |
+
/**
|
| 1786 |
+
* How much to prioritize cost when selecting a model. A value of 0 means cost
|
| 1787 |
+
* is not important, while a value of 1 means cost is the most important
|
| 1788 |
+
* factor.
|
| 1789 |
+
*
|
| 1790 |
+
* @TJS-type number
|
| 1791 |
+
* @minimum 0
|
| 1792 |
+
* @maximum 1
|
| 1793 |
+
*/
|
| 1794 |
+
costPriority?: number;
|
| 1795 |
+
/**
|
| 1796 |
+
* How much to prioritize sampling speed (latency) when selecting a model. A
|
| 1797 |
+
* value of 0 means speed is not important, while a value of 1 means speed is
|
| 1798 |
+
* the most important factor.
|
| 1799 |
+
*
|
| 1800 |
+
* @TJS-type number
|
| 1801 |
+
* @minimum 0
|
| 1802 |
+
* @maximum 1
|
| 1803 |
+
*/
|
| 1804 |
+
speedPriority?: number;
|
| 1805 |
+
/**
|
| 1806 |
+
* How much to prioritize intelligence and capabilities when selecting a
|
| 1807 |
+
* model. A value of 0 means intelligence is not important, while a value of 1
|
| 1808 |
+
* means intelligence is the most important factor.
|
| 1809 |
+
*
|
| 1810 |
+
* @TJS-type number
|
| 1811 |
+
* @minimum 0
|
| 1812 |
+
* @maximum 1
|
| 1813 |
+
*/
|
| 1814 |
+
intelligencePriority?: number;
|
| 1815 |
+
}
|
| 1816 |
+
/**
|
| 1817 |
+
* Hints to use for model selection.
|
| 1818 |
+
*
|
| 1819 |
+
* Keys not declared here are currently left unspecified by the spec and are up
|
| 1820 |
+
* to the client to interpret.
|
| 1821 |
+
*
|
| 1822 |
+
* @category `sampling/createMessage`
|
| 1823 |
+
*/
|
| 1824 |
+
export interface ModelHint {
|
| 1825 |
+
/**
|
| 1826 |
+
* A hint for a model name.
|
| 1827 |
+
*
|
| 1828 |
+
* The client SHOULD treat this as a substring of a model name; for example:
|
| 1829 |
+
* - `claude-3-5-sonnet` should match `claude-3-5-sonnet-20241022`
|
| 1830 |
+
* - `sonnet` should match `claude-3-5-sonnet-20241022`, `claude-3-sonnet-20240229`, etc.
|
| 1831 |
+
* - `claude` should match any Claude model
|
| 1832 |
+
*
|
| 1833 |
+
* The client MAY also map the string to a different provider's model name or a different model family, as long as it fills a similar niche; for example:
|
| 1834 |
+
* - `gemini-1.5-flash` could match `claude-3-haiku-20240307`
|
| 1835 |
+
*/
|
| 1836 |
+
name?: string;
|
| 1837 |
+
}
|
| 1838 |
+
/**
|
| 1839 |
+
* Parameters for a `completion/complete` request.
|
| 1840 |
+
*
|
| 1841 |
+
* @category `completion/complete`
|
| 1842 |
+
*/
|
| 1843 |
+
export interface CompleteRequestParams extends RequestParams {
|
| 1844 |
+
ref: PromptReference | ResourceTemplateReference;
|
| 1845 |
+
/**
|
| 1846 |
+
* The argument's information
|
| 1847 |
+
*/
|
| 1848 |
+
argument: {
|
| 1849 |
+
/**
|
| 1850 |
+
* The name of the argument
|
| 1851 |
+
*/
|
| 1852 |
+
name: string;
|
| 1853 |
+
/**
|
| 1854 |
+
* The value of the argument to use for completion matching.
|
| 1855 |
+
*/
|
| 1856 |
+
value: string;
|
| 1857 |
+
};
|
| 1858 |
+
/**
|
| 1859 |
+
* Additional, optional context for completions
|
| 1860 |
+
*/
|
| 1861 |
+
context?: {
|
| 1862 |
+
/**
|
| 1863 |
+
* Previously-resolved variables in a URI template or prompt.
|
| 1864 |
+
*/
|
| 1865 |
+
arguments?: {
|
| 1866 |
+
[key: string]: string;
|
| 1867 |
+
};
|
| 1868 |
+
};
|
| 1869 |
+
}
|
| 1870 |
+
/**
|
| 1871 |
+
* A request from the client to the server, to ask for completion options.
|
| 1872 |
+
*
|
| 1873 |
+
* @category `completion/complete`
|
| 1874 |
+
*/
|
| 1875 |
+
export interface CompleteRequest extends JSONRPCRequest {
|
| 1876 |
+
method: "completion/complete";
|
| 1877 |
+
params: CompleteRequestParams;
|
| 1878 |
+
}
|
| 1879 |
+
/**
|
| 1880 |
+
* The server's response to a completion/complete request
|
| 1881 |
+
*
|
| 1882 |
+
* @category `completion/complete`
|
| 1883 |
+
*/
|
| 1884 |
+
export interface CompleteResult extends Result {
|
| 1885 |
+
completion: {
|
| 1886 |
+
/**
|
| 1887 |
+
* An array of completion values. Must not exceed 100 items.
|
| 1888 |
+
*/
|
| 1889 |
+
values: string[];
|
| 1890 |
+
/**
|
| 1891 |
+
* The total number of completion options available. This can exceed the number of values actually sent in the response.
|
| 1892 |
+
*/
|
| 1893 |
+
total?: number;
|
| 1894 |
+
/**
|
| 1895 |
+
* Indicates whether there are additional completion options beyond those provided in the current response, even if the exact total is unknown.
|
| 1896 |
+
*/
|
| 1897 |
+
hasMore?: boolean;
|
| 1898 |
+
};
|
| 1899 |
+
}
|
| 1900 |
+
/**
|
| 1901 |
+
* A reference to a resource or resource template definition.
|
| 1902 |
+
*
|
| 1903 |
+
* @category `completion/complete`
|
| 1904 |
+
*/
|
| 1905 |
+
export interface ResourceTemplateReference {
|
| 1906 |
+
type: "ref/resource";
|
| 1907 |
+
/**
|
| 1908 |
+
* The URI or URI template of the resource.
|
| 1909 |
+
*
|
| 1910 |
+
* @format uri-template
|
| 1911 |
+
*/
|
| 1912 |
+
uri: string;
|
| 1913 |
+
}
|
| 1914 |
+
/**
|
| 1915 |
+
* Identifies a prompt.
|
| 1916 |
+
*
|
| 1917 |
+
* @category `completion/complete`
|
| 1918 |
+
*/
|
| 1919 |
+
export interface PromptReference extends BaseMetadata {
|
| 1920 |
+
type: "ref/prompt";
|
| 1921 |
+
}
|
| 1922 |
+
/**
|
| 1923 |
+
* Sent from the server to request a list of root URIs from the client. Roots allow
|
| 1924 |
+
* servers to ask for specific directories or files to operate on. A common example
|
| 1925 |
+
* for roots is providing a set of repositories or directories a server should operate
|
| 1926 |
+
* on.
|
| 1927 |
+
*
|
| 1928 |
+
* This request is typically used when the server needs to understand the file system
|
| 1929 |
+
* structure or access specific locations that the client has permission to read from.
|
| 1930 |
+
*
|
| 1931 |
+
* @category `roots/list`
|
| 1932 |
+
*/
|
| 1933 |
+
export interface ListRootsRequest extends JSONRPCRequest {
|
| 1934 |
+
method: "roots/list";
|
| 1935 |
+
params?: RequestParams;
|
| 1936 |
+
}
|
| 1937 |
+
/**
|
| 1938 |
+
* The client's response to a roots/list request from the server.
|
| 1939 |
+
* This result contains an array of Root objects, each representing a root directory
|
| 1940 |
+
* or file that the server can operate on.
|
| 1941 |
+
*
|
| 1942 |
+
* @category `roots/list`
|
| 1943 |
+
*/
|
| 1944 |
+
export interface ListRootsResult extends Result {
|
| 1945 |
+
roots: Root[];
|
| 1946 |
+
}
|
| 1947 |
+
/**
|
| 1948 |
+
* Represents a root directory or file that the server can operate on.
|
| 1949 |
+
*
|
| 1950 |
+
* @category `roots/list`
|
| 1951 |
+
*/
|
| 1952 |
+
export interface Root {
|
| 1953 |
+
/**
|
| 1954 |
+
* The URI identifying the root. This *must* start with file:// for now.
|
| 1955 |
+
* This restriction may be relaxed in future versions of the protocol to allow
|
| 1956 |
+
* other URI schemes.
|
| 1957 |
+
*
|
| 1958 |
+
* @format uri
|
| 1959 |
+
*/
|
| 1960 |
+
uri: string;
|
| 1961 |
+
/**
|
| 1962 |
+
* An optional name for the root. This can be used to provide a human-readable
|
| 1963 |
+
* identifier for the root, which may be useful for display purposes or for
|
| 1964 |
+
* referencing the root in other parts of the application.
|
| 1965 |
+
*/
|
| 1966 |
+
name?: string;
|
| 1967 |
+
/**
|
| 1968 |
+
* See [General fields: `_meta`](/specification/draft/basic/index#meta) for notes on `_meta` usage.
|
| 1969 |
+
*/
|
| 1970 |
+
_meta?: {
|
| 1971 |
+
[key: string]: unknown;
|
| 1972 |
+
};
|
| 1973 |
+
}
|
| 1974 |
+
/**
|
| 1975 |
+
* A notification from the client to the server, informing it that the list of roots has changed.
|
| 1976 |
+
* This notification should be sent whenever the client adds, removes, or modifies any root.
|
| 1977 |
+
* The server should then request an updated list of roots using the ListRootsRequest.
|
| 1978 |
+
*
|
| 1979 |
+
* @category `notifications/roots/list_changed`
|
| 1980 |
+
*/
|
| 1981 |
+
export interface RootsListChangedNotification extends JSONRPCNotification {
|
| 1982 |
+
method: "notifications/roots/list_changed";
|
| 1983 |
+
params?: NotificationParams;
|
| 1984 |
+
}
|
| 1985 |
+
/**
|
| 1986 |
+
* The parameters for a request to elicit non-sensitive information from the user via a form in the client.
|
| 1987 |
+
*
|
| 1988 |
+
* @category `elicitation/create`
|
| 1989 |
+
*/
|
| 1990 |
+
export interface ElicitRequestFormParams extends TaskAugmentedRequestParams {
|
| 1991 |
+
/**
|
| 1992 |
+
* The elicitation mode.
|
| 1993 |
+
*/
|
| 1994 |
+
mode?: "form";
|
| 1995 |
+
/**
|
| 1996 |
+
* The message to present to the user describing what information is being requested.
|
| 1997 |
+
*/
|
| 1998 |
+
message: string;
|
| 1999 |
+
/**
|
| 2000 |
+
* A restricted subset of JSON Schema.
|
| 2001 |
+
* Only top-level properties are allowed, without nesting.
|
| 2002 |
+
*/
|
| 2003 |
+
requestedSchema: {
|
| 2004 |
+
$schema?: string;
|
| 2005 |
+
type: "object";
|
| 2006 |
+
properties: {
|
| 2007 |
+
[key: string]: PrimitiveSchemaDefinition;
|
| 2008 |
+
};
|
| 2009 |
+
required?: string[];
|
| 2010 |
+
};
|
| 2011 |
+
}
|
| 2012 |
+
/**
|
| 2013 |
+
* The parameters for a request to elicit information from the user via a URL in the client.
|
| 2014 |
+
*
|
| 2015 |
+
* @category `elicitation/create`
|
| 2016 |
+
*/
|
| 2017 |
+
export interface ElicitRequestURLParams extends TaskAugmentedRequestParams {
|
| 2018 |
+
/**
|
| 2019 |
+
* The elicitation mode.
|
| 2020 |
+
*/
|
| 2021 |
+
mode: "url";
|
| 2022 |
+
/**
|
| 2023 |
+
* The message to present to the user explaining why the interaction is needed.
|
| 2024 |
+
*/
|
| 2025 |
+
message: string;
|
| 2026 |
+
/**
|
| 2027 |
+
* The ID of the elicitation, which must be unique within the context of the server.
|
| 2028 |
+
* The client MUST treat this ID as an opaque value.
|
| 2029 |
+
*/
|
| 2030 |
+
elicitationId: string;
|
| 2031 |
+
/**
|
| 2032 |
+
* The URL that the user should navigate to.
|
| 2033 |
+
*
|
| 2034 |
+
* @format uri
|
| 2035 |
+
*/
|
| 2036 |
+
url: string;
|
| 2037 |
+
}
|
| 2038 |
+
/**
|
| 2039 |
+
* The parameters for a request to elicit additional information from the user via the client.
|
| 2040 |
+
*
|
| 2041 |
+
* @category `elicitation/create`
|
| 2042 |
+
*/
|
| 2043 |
+
export type ElicitRequestParams = ElicitRequestFormParams | ElicitRequestURLParams;
|
| 2044 |
+
/**
|
| 2045 |
+
* A request from the server to elicit additional information from the user via the client.
|
| 2046 |
+
*
|
| 2047 |
+
* @category `elicitation/create`
|
| 2048 |
+
*/
|
| 2049 |
+
export interface ElicitRequest extends JSONRPCRequest {
|
| 2050 |
+
method: "elicitation/create";
|
| 2051 |
+
params: ElicitRequestParams;
|
| 2052 |
+
}
|
| 2053 |
+
/**
|
| 2054 |
+
* Restricted schema definitions that only allow primitive types
|
| 2055 |
+
* without nested objects or arrays.
|
| 2056 |
+
*
|
| 2057 |
+
* @category `elicitation/create`
|
| 2058 |
+
*/
|
| 2059 |
+
export type PrimitiveSchemaDefinition = StringSchema | NumberSchema | BooleanSchema | EnumSchema;
|
| 2060 |
+
/**
|
| 2061 |
+
* @category `elicitation/create`
|
| 2062 |
+
*/
|
| 2063 |
+
export interface StringSchema {
|
| 2064 |
+
type: "string";
|
| 2065 |
+
title?: string;
|
| 2066 |
+
description?: string;
|
| 2067 |
+
minLength?: number;
|
| 2068 |
+
maxLength?: number;
|
| 2069 |
+
format?: "email" | "uri" | "date" | "date-time";
|
| 2070 |
+
default?: string;
|
| 2071 |
+
}
|
| 2072 |
+
/**
|
| 2073 |
+
* @category `elicitation/create`
|
| 2074 |
+
*/
|
| 2075 |
+
export interface NumberSchema {
|
| 2076 |
+
type: "number" | "integer";
|
| 2077 |
+
title?: string;
|
| 2078 |
+
description?: string;
|
| 2079 |
+
minimum?: number;
|
| 2080 |
+
maximum?: number;
|
| 2081 |
+
default?: number;
|
| 2082 |
+
}
|
| 2083 |
+
/**
|
| 2084 |
+
* @category `elicitation/create`
|
| 2085 |
+
*/
|
| 2086 |
+
export interface BooleanSchema {
|
| 2087 |
+
type: "boolean";
|
| 2088 |
+
title?: string;
|
| 2089 |
+
description?: string;
|
| 2090 |
+
default?: boolean;
|
| 2091 |
+
}
|
| 2092 |
+
/**
|
| 2093 |
+
* Schema for single-selection enumeration without display titles for options.
|
| 2094 |
+
*
|
| 2095 |
+
* @category `elicitation/create`
|
| 2096 |
+
*/
|
| 2097 |
+
export interface UntitledSingleSelectEnumSchema {
|
| 2098 |
+
type: "string";
|
| 2099 |
+
/**
|
| 2100 |
+
* Optional title for the enum field.
|
| 2101 |
+
*/
|
| 2102 |
+
title?: string;
|
| 2103 |
+
/**
|
| 2104 |
+
* Optional description for the enum field.
|
| 2105 |
+
*/
|
| 2106 |
+
description?: string;
|
| 2107 |
+
/**
|
| 2108 |
+
* Array of enum values to choose from.
|
| 2109 |
+
*/
|
| 2110 |
+
enum: string[];
|
| 2111 |
+
/**
|
| 2112 |
+
* Optional default value.
|
| 2113 |
+
*/
|
| 2114 |
+
default?: string;
|
| 2115 |
+
}
|
| 2116 |
+
/**
|
| 2117 |
+
* Schema for single-selection enumeration with display titles for each option.
|
| 2118 |
+
*
|
| 2119 |
+
* @category `elicitation/create`
|
| 2120 |
+
*/
|
| 2121 |
+
export interface TitledSingleSelectEnumSchema {
|
| 2122 |
+
type: "string";
|
| 2123 |
+
/**
|
| 2124 |
+
* Optional title for the enum field.
|
| 2125 |
+
*/
|
| 2126 |
+
title?: string;
|
| 2127 |
+
/**
|
| 2128 |
+
* Optional description for the enum field.
|
| 2129 |
+
*/
|
| 2130 |
+
description?: string;
|
| 2131 |
+
/**
|
| 2132 |
+
* Array of enum options with values and display labels.
|
| 2133 |
+
*/
|
| 2134 |
+
oneOf: Array<{
|
| 2135 |
+
/**
|
| 2136 |
+
* The enum value.
|
| 2137 |
+
*/
|
| 2138 |
+
const: string;
|
| 2139 |
+
/**
|
| 2140 |
+
* Display label for this option.
|
| 2141 |
+
*/
|
| 2142 |
+
title: string;
|
| 2143 |
+
}>;
|
| 2144 |
+
/**
|
| 2145 |
+
* Optional default value.
|
| 2146 |
+
*/
|
| 2147 |
+
default?: string;
|
| 2148 |
+
}
|
| 2149 |
+
/**
|
| 2150 |
+
* @category `elicitation/create`
|
| 2151 |
+
*/
|
| 2152 |
+
export type SingleSelectEnumSchema = UntitledSingleSelectEnumSchema | TitledSingleSelectEnumSchema;
|
| 2153 |
+
/**
|
| 2154 |
+
* Schema for multiple-selection enumeration without display titles for options.
|
| 2155 |
+
*
|
| 2156 |
+
* @category `elicitation/create`
|
| 2157 |
+
*/
|
| 2158 |
+
export interface UntitledMultiSelectEnumSchema {
|
| 2159 |
+
type: "array";
|
| 2160 |
+
/**
|
| 2161 |
+
* Optional title for the enum field.
|
| 2162 |
+
*/
|
| 2163 |
+
title?: string;
|
| 2164 |
+
/**
|
| 2165 |
+
* Optional description for the enum field.
|
| 2166 |
+
*/
|
| 2167 |
+
description?: string;
|
| 2168 |
+
/**
|
| 2169 |
+
* Minimum number of items to select.
|
| 2170 |
+
*/
|
| 2171 |
+
minItems?: number;
|
| 2172 |
+
/**
|
| 2173 |
+
* Maximum number of items to select.
|
| 2174 |
+
*/
|
| 2175 |
+
maxItems?: number;
|
| 2176 |
+
/**
|
| 2177 |
+
* Schema for the array items.
|
| 2178 |
+
*/
|
| 2179 |
+
items: {
|
| 2180 |
+
type: "string";
|
| 2181 |
+
/**
|
| 2182 |
+
* Array of enum values to choose from.
|
| 2183 |
+
*/
|
| 2184 |
+
enum: string[];
|
| 2185 |
+
};
|
| 2186 |
+
/**
|
| 2187 |
+
* Optional default value.
|
| 2188 |
+
*/
|
| 2189 |
+
default?: string[];
|
| 2190 |
+
}
|
| 2191 |
+
/**
|
| 2192 |
+
* Schema for multiple-selection enumeration with display titles for each option.
|
| 2193 |
+
*
|
| 2194 |
+
* @category `elicitation/create`
|
| 2195 |
+
*/
|
| 2196 |
+
export interface TitledMultiSelectEnumSchema {
|
| 2197 |
+
type: "array";
|
| 2198 |
+
/**
|
| 2199 |
+
* Optional title for the enum field.
|
| 2200 |
+
*/
|
| 2201 |
+
title?: string;
|
| 2202 |
+
/**
|
| 2203 |
+
* Optional description for the enum field.
|
| 2204 |
+
*/
|
| 2205 |
+
description?: string;
|
| 2206 |
+
/**
|
| 2207 |
+
* Minimum number of items to select.
|
| 2208 |
+
*/
|
| 2209 |
+
minItems?: number;
|
| 2210 |
+
/**
|
| 2211 |
+
* Maximum number of items to select.
|
| 2212 |
+
*/
|
| 2213 |
+
maxItems?: number;
|
| 2214 |
+
/**
|
| 2215 |
+
* Schema for array items with enum options and display labels.
|
| 2216 |
+
*/
|
| 2217 |
+
items: {
|
| 2218 |
+
/**
|
| 2219 |
+
* Array of enum options with values and display labels.
|
| 2220 |
+
*/
|
| 2221 |
+
anyOf: Array<{
|
| 2222 |
+
/**
|
| 2223 |
+
* The constant enum value.
|
| 2224 |
+
*/
|
| 2225 |
+
const: string;
|
| 2226 |
+
/**
|
| 2227 |
+
* Display title for this option.
|
| 2228 |
+
*/
|
| 2229 |
+
title: string;
|
| 2230 |
+
}>;
|
| 2231 |
+
};
|
| 2232 |
+
/**
|
| 2233 |
+
* Optional default value.
|
| 2234 |
+
*/
|
| 2235 |
+
default?: string[];
|
| 2236 |
+
}
|
| 2237 |
+
/**
|
| 2238 |
+
* @category `elicitation/create`
|
| 2239 |
+
*/
|
| 2240 |
+
export type MultiSelectEnumSchema = UntitledMultiSelectEnumSchema | TitledMultiSelectEnumSchema;
|
| 2241 |
+
/**
|
| 2242 |
+
* Use TitledSingleSelectEnumSchema instead.
|
| 2243 |
+
* This interface will be removed in a future version.
|
| 2244 |
+
*
|
| 2245 |
+
* @category `elicitation/create`
|
| 2246 |
+
*/
|
| 2247 |
+
export interface LegacyTitledEnumSchema {
|
| 2248 |
+
type: "string";
|
| 2249 |
+
title?: string;
|
| 2250 |
+
description?: string;
|
| 2251 |
+
enum: string[];
|
| 2252 |
+
/**
|
| 2253 |
+
* (Legacy) Display names for enum values.
|
| 2254 |
+
* Non-standard according to JSON schema 2020-12.
|
| 2255 |
+
*/
|
| 2256 |
+
enumNames?: string[];
|
| 2257 |
+
default?: string;
|
| 2258 |
+
}
|
| 2259 |
+
/**
|
| 2260 |
+
* @category `elicitation/create`
|
| 2261 |
+
*/
|
| 2262 |
+
export type EnumSchema = SingleSelectEnumSchema | MultiSelectEnumSchema | LegacyTitledEnumSchema;
|
| 2263 |
+
/**
|
| 2264 |
+
* The client's response to an elicitation request.
|
| 2265 |
+
*
|
| 2266 |
+
* @category `elicitation/create`
|
| 2267 |
+
*/
|
| 2268 |
+
export interface ElicitResult extends Result {
|
| 2269 |
+
/**
|
| 2270 |
+
* The user action in response to the elicitation.
|
| 2271 |
+
* - "accept": User submitted the form/confirmed the action
|
| 2272 |
+
* - "decline": User explicitly decline the action
|
| 2273 |
+
* - "cancel": User dismissed without making an explicit choice
|
| 2274 |
+
*/
|
| 2275 |
+
action: "accept" | "decline" | "cancel";
|
| 2276 |
+
/**
|
| 2277 |
+
* The submitted form data, only present when action is "accept" and mode was "form".
|
| 2278 |
+
* Contains values matching the requested schema.
|
| 2279 |
+
* Omitted for out-of-band mode responses.
|
| 2280 |
+
*/
|
| 2281 |
+
content?: {
|
| 2282 |
+
[key: string]: string | number | boolean | string[];
|
| 2283 |
+
};
|
| 2284 |
+
}
|
| 2285 |
+
/**
|
| 2286 |
+
* An optional notification from the server to the client, informing it of a completion of a out-of-band elicitation request.
|
| 2287 |
+
*
|
| 2288 |
+
* @category `notifications/elicitation/complete`
|
| 2289 |
+
*/
|
| 2290 |
+
export interface ElicitationCompleteNotification extends JSONRPCNotification {
|
| 2291 |
+
method: "notifications/elicitation/complete";
|
| 2292 |
+
params: {
|
| 2293 |
+
/**
|
| 2294 |
+
* The ID of the elicitation that completed.
|
| 2295 |
+
*/
|
| 2296 |
+
elicitationId: string;
|
| 2297 |
+
};
|
| 2298 |
+
}
|
| 2299 |
+
/** @internal */
|
| 2300 |
+
export type ClientRequest = PingRequest | InitializeRequest | CompleteRequest | SetLevelRequest | GetPromptRequest | ListPromptsRequest | ListResourcesRequest | ListResourceTemplatesRequest | ReadResourceRequest | SubscribeRequest | UnsubscribeRequest | CallToolRequest | ListToolsRequest | GetTaskRequest | GetTaskPayloadRequest | ListTasksRequest | CancelTaskRequest;
|
| 2301 |
+
/** @internal */
|
| 2302 |
+
export type ClientNotification = CancelledNotification | ProgressNotification | InitializedNotification | RootsListChangedNotification | TaskStatusNotification;
|
| 2303 |
+
/** @internal */
|
| 2304 |
+
export type ClientResult = EmptyResult | CreateMessageResult | ListRootsResult | ElicitResult | GetTaskResult | GetTaskPayloadResult | ListTasksResult | CancelTaskResult;
|
| 2305 |
+
/** @internal */
|
| 2306 |
+
export type ServerRequest = PingRequest | CreateMessageRequest | ListRootsRequest | ElicitRequest | GetTaskRequest | GetTaskPayloadRequest | ListTasksRequest | CancelTaskRequest;
|
| 2307 |
+
/** @internal */
|
| 2308 |
+
export type ServerNotification = CancelledNotification | ProgressNotification | LoggingMessageNotification | ResourceUpdatedNotification | ResourceListChangedNotification | ToolListChangedNotification | PromptListChangedNotification | ElicitationCompleteNotification | TaskStatusNotification;
|
| 2309 |
+
/** @internal */
|
| 2310 |
+
export type ServerResult = EmptyResult | InitializeResult | CompleteResult | GetPromptResult | ListPromptsResult | ListResourceTemplatesResult | ListResourcesResult | ReadResourceResult | CallToolResult | ListToolsResult | GetTaskResult | GetTaskPayloadResult | ListTasksResult | CancelTaskResult;
|
| 2311 |
+
//# sourceMappingURL=spec.types.d.ts.map
|
loan-advisor-chatgpt-app/node_modules/@modelcontextprotocol/sdk/dist/esm/spec.types.d.ts.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
{"version":3,"file":"spec.types.d.ts","sourceRoot":"","sources":["../../src/spec.types.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAEH;;;;GAIG;AACH,MAAM,MAAM,cAAc,GACtB,cAAc,GACd,mBAAmB,GACnB,eAAe,CAAC;AAEpB,gBAAgB;AAChB,eAAO,MAAM,uBAAuB,kBAAkB,CAAC;AACvD,gBAAgB;AAChB,eAAO,MAAM,eAAe,QAAQ,CAAC;AAErC;;;;GAIG;AACH,MAAM,MAAM,aAAa,GAAG,MAAM,GAAG,MAAM,CAAC;AAE5C;;;;GAIG;AACH,MAAM,MAAM,MAAM,GAAG,MAAM,CAAC;AAE5B;;;;GAIG;AACH,MAAM,WAAW,0BAA2B,SAAQ,aAAa;IAC/D;;;;;;;OAOG;IACH,IAAI,CAAC,EAAE,YAAY,CAAC;CACrB;AACD;;;;GAIG;AACH,MAAM,WAAW,aAAa;IAC5B;;OAEG;IACH,KAAK,CAAC,EAAE;QACN;;WAEG;QACH,aAAa,CAAC,EAAE,aAAa,CAAC;QAC9B,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC;KACxB,CAAC;CACH;AAED,gBAAgB;AAChB,MAAM,WAAW,OAAO;IACtB,MAAM,EAAE,MAAM,CAAC;IAGf,MAAM,CAAC,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAA;KAAE,CAAC;CACjC;AAED,gBAAgB;AAChB,MAAM,WAAW,kBAAkB;IACjC;;OAEG;IACH,KAAK,CAAC,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,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AAmB,GACnB,kBAAkB,GAClB,cAAc,GACd,eAAe,GACf,aAAa,GACb,oBAAoB,GACpB,eAAe,GACf,gBAAgB,CAAC"}
|
loan-advisor-chatgpt-app/node_modules/@modelcontextprotocol/sdk/dist/esm/spec.types.js
ADDED
|
@@ -0,0 +1,24 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
/**
|
| 2 |
+
* This file is automatically generated from the Model Context Protocol specification.
|
| 3 |
+
*
|
| 4 |
+
* Source: https://github.com/modelcontextprotocol/modelcontextprotocol
|
| 5 |
+
* Pulled from: https://raw.githubusercontent.com/modelcontextprotocol/modelcontextprotocol/main/schema/draft/schema.ts
|
| 6 |
+
* Last updated from commit: 35fa160caf287a9c48696e3ae452c0645c713669
|
| 7 |
+
*
|
| 8 |
+
* DO NOT EDIT THIS FILE MANUALLY. Changes will be overwritten by automated updates.
|
| 9 |
+
* To update this file, run: npm run fetch:spec-types
|
| 10 |
+
*/ /* JSON-RPC types */
|
| 11 |
+
/** @internal */
|
| 12 |
+
export const LATEST_PROTOCOL_VERSION = "DRAFT-2026-v1";
|
| 13 |
+
/** @internal */
|
| 14 |
+
export const JSONRPC_VERSION = "2.0";
|
| 15 |
+
// Standard JSON-RPC error codes
|
| 16 |
+
export const PARSE_ERROR = -32700;
|
| 17 |
+
export const INVALID_REQUEST = -32600;
|
| 18 |
+
export const METHOD_NOT_FOUND = -32601;
|
| 19 |
+
export const INVALID_PARAMS = -32602;
|
| 20 |
+
export const INTERNAL_ERROR = -32603;
|
| 21 |
+
// Implementation-specific JSON-RPC error codes [-32000, -32099]
|
| 22 |
+
/** @internal */
|
| 23 |
+
export const URL_ELICITATION_REQUIRED = -32042;
|
| 24 |
+
//# sourceMappingURL=spec.types.js.map
|
loan-advisor-chatgpt-app/node_modules/@modelcontextprotocol/sdk/dist/esm/spec.types.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
{"version":3,"file":"spec.types.js","sourceRoot":"","sources":["../../src/spec.types.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG,CAAA,oBAAoB;AAYvB,gBAAgB;AAChB,MAAM,CAAC,MAAM,uBAAuB,GAAG,eAAe,CAAC;AACvD,gBAAgB;AAChB,MAAM,CAAC,MAAM,eAAe,GAAG,KAAK,CAAC;AA4JrC,gCAAgC;AAChC,MAAM,CAAC,MAAM,WAAW,GAAG,CAAC,KAAK,CAAC;AAClC,MAAM,CAAC,MAAM,eAAe,GAAG,CAAC,KAAK,CAAC;AACtC,MAAM,CAAC,MAAM,gBAAgB,GAAG,CAAC,KAAK,CAAC;AACvC,MAAM,CAAC,MAAM,cAAc,GAAG,CAAC,KAAK,CAAC;AACrC,MAAM,CAAC,MAAM,cAAc,GAAG,CAAC,KAAK,CAAC;AAErC,gEAAgE;AAChE,gBAAgB;AAChB,MAAM,CAAC,MAAM,wBAAwB,GAAG,CAAC,KAAK,CAAC"}
|
loan-advisor-chatgpt-app/node_modules/@modelcontextprotocol/sdk/dist/esm/types.d.ts
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
loan-advisor-chatgpt-app/node_modules/@modelcontextprotocol/sdk/dist/esm/types.d.ts.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAC5B,OAAO,EAAE,QAAQ,EAAE,MAAM,wBAAwB,CAAC;AAElD,eAAO,MAAM,uBAAuB,eAAe,CAAC;AACpD,eAAO,MAAM,mCAAmC,eAAe,CAAC;AAChE,eAAO,MAAM,2BAA2B,UAAoF,CAAC;AAE7H,eAAO,MAAM,qBAAq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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import * as z from 'zod/v4';
|
| 2 |
+
export const LATEST_PROTOCOL_VERSION = '2025-11-25';
|
| 3 |
+
export const DEFAULT_NEGOTIATED_PROTOCOL_VERSION = '2025-03-26';
|
| 4 |
+
export const SUPPORTED_PROTOCOL_VERSIONS = [LATEST_PROTOCOL_VERSION, '2025-06-18', '2025-03-26', '2024-11-05', '2024-10-07'];
|
| 5 |
+
export const RELATED_TASK_META_KEY = 'io.modelcontextprotocol/related-task';
|
| 6 |
+
/* JSON-RPC types */
|
| 7 |
+
export const JSONRPC_VERSION = '2.0';
|
| 8 |
+
/**
|
| 9 |
+
* Assert 'object' type schema.
|
| 10 |
+
*
|
| 11 |
+
* @internal
|
| 12 |
+
*/
|
| 13 |
+
const AssertObjectSchema = z.custom((v) => v !== null && (typeof v === 'object' || typeof v === 'function'));
|
| 14 |
+
/**
|
| 15 |
+
* A progress token, used to associate progress notifications with the original request.
|
| 16 |
+
*/
|
| 17 |
+
export const ProgressTokenSchema = z.union([z.string(), z.number().int()]);
|
| 18 |
+
/**
|
| 19 |
+
* An opaque token used to represent a cursor for pagination.
|
| 20 |
+
*/
|
| 21 |
+
export const CursorSchema = z.string();
|
| 22 |
+
/**
|
| 23 |
+
* Task creation parameters, used to ask that the server create a task to represent a request.
|
| 24 |
+
*/
|
| 25 |
+
export const TaskCreationParamsSchema = z.looseObject({
|
| 26 |
+
/**
|
| 27 |
+
* Requested duration in milliseconds to retain task from creation.
|
| 28 |
+
*/
|
| 29 |
+
ttl: z.number().optional(),
|
| 30 |
+
/**
|
| 31 |
+
* Time in milliseconds to wait between task status requests.
|
| 32 |
+
*/
|
| 33 |
+
pollInterval: z.number().optional()
|
| 34 |
+
});
|
| 35 |
+
export const TaskMetadataSchema = z.object({
|
| 36 |
+
ttl: z.number().optional()
|
| 37 |
+
});
|
| 38 |
+
/**
|
| 39 |
+
* Metadata for associating messages with a task.
|
| 40 |
+
* Include this in the `_meta` field under the key `io.modelcontextprotocol/related-task`.
|
| 41 |
+
*/
|
| 42 |
+
export const RelatedTaskMetadataSchema = z.object({
|
| 43 |
+
taskId: z.string()
|
| 44 |
+
});
|
| 45 |
+
const RequestMetaSchema = z.looseObject({
|
| 46 |
+
/**
|
| 47 |
+
* If specified, the caller is requesting out-of-band progress notifications for this request (as represented by notifications/progress). The value of this parameter is an opaque token that will be attached to any subsequent notifications. The receiver is not obligated to provide these notifications.
|
| 48 |
+
*/
|
| 49 |
+
progressToken: ProgressTokenSchema.optional(),
|
| 50 |
+
/**
|
| 51 |
+
* If specified, this request is related to the provided task.
|
| 52 |
+
*/
|
| 53 |
+
[RELATED_TASK_META_KEY]: RelatedTaskMetadataSchema.optional()
|
| 54 |
+
});
|
| 55 |
+
/**
|
| 56 |
+
* Common params for any request.
|
| 57 |
+
*/
|
| 58 |
+
const BaseRequestParamsSchema = z.object({
|
| 59 |
+
/**
|
| 60 |
+
* See [General fields: `_meta`](/specification/draft/basic/index#meta) for notes on `_meta` usage.
|
| 61 |
+
*/
|
| 62 |
+
_meta: RequestMetaSchema.optional()
|
| 63 |
+
});
|
| 64 |
+
/**
|
| 65 |
+
* Common params for any task-augmented request.
|
| 66 |
+
*/
|
| 67 |
+
export const TaskAugmentedRequestParamsSchema = BaseRequestParamsSchema.extend({
|
| 68 |
+
/**
|
| 69 |
+
* If specified, the caller is requesting task-augmented execution for this request.
|
| 70 |
+
* The request will return a CreateTaskResult immediately, and the actual result can be
|
| 71 |
+
* retrieved later via tasks/result.
|
| 72 |
+
*
|
| 73 |
+
* Task augmentation is subject to capability negotiation - receivers MUST declare support
|
| 74 |
+
* for task augmentation of specific request types in their capabilities.
|
| 75 |
+
*/
|
| 76 |
+
task: TaskMetadataSchema.optional()
|
| 77 |
+
});
|
| 78 |
+
/**
|
| 79 |
+
* Checks if a value is a valid TaskAugmentedRequestParams.
|
| 80 |
+
* @param value - The value to check.
|
| 81 |
+
*
|
| 82 |
+
* @returns True if the value is a valid TaskAugmentedRequestParams, false otherwise.
|
| 83 |
+
*/
|
| 84 |
+
export const isTaskAugmentedRequestParams = (value) => TaskAugmentedRequestParamsSchema.safeParse(value).success;
|
| 85 |
+
export const RequestSchema = z.object({
|
| 86 |
+
method: z.string(),
|
| 87 |
+
params: BaseRequestParamsSchema.loose().optional()
|
| 88 |
+
});
|
| 89 |
+
const NotificationsParamsSchema = z.object({
|
| 90 |
+
/**
|
| 91 |
+
* See [MCP specification](https://github.com/modelcontextprotocol/modelcontextprotocol/blob/47339c03c143bb4ec01a26e721a1b8fe66634ebe/docs/specification/draft/basic/index.mdx#general-fields)
|
| 92 |
+
* for notes on _meta usage.
|
| 93 |
+
*/
|
| 94 |
+
_meta: RequestMetaSchema.optional()
|
| 95 |
+
});
|
| 96 |
+
export const NotificationSchema = z.object({
|
| 97 |
+
method: z.string(),
|
| 98 |
+
params: NotificationsParamsSchema.loose().optional()
|
| 99 |
+
});
|
| 100 |
+
export const ResultSchema = z.looseObject({
|
| 101 |
+
/**
|
| 102 |
+
* See [MCP specification](https://github.com/modelcontextprotocol/modelcontextprotocol/blob/47339c03c143bb4ec01a26e721a1b8fe66634ebe/docs/specification/draft/basic/index.mdx#general-fields)
|
| 103 |
+
* for notes on _meta usage.
|
| 104 |
+
*/
|
| 105 |
+
_meta: RequestMetaSchema.optional()
|
| 106 |
+
});
|
| 107 |
+
/**
|
| 108 |
+
* A uniquely identifying ID for a request in JSON-RPC.
|
| 109 |
+
*/
|
| 110 |
+
export const RequestIdSchema = z.union([z.string(), z.number().int()]);
|
| 111 |
+
/**
|
| 112 |
+
* A request that expects a response.
|
| 113 |
+
*/
|
| 114 |
+
export const JSONRPCRequestSchema = z
|
| 115 |
+
.object({
|
| 116 |
+
jsonrpc: z.literal(JSONRPC_VERSION),
|
| 117 |
+
id: RequestIdSchema,
|
| 118 |
+
...RequestSchema.shape
|
| 119 |
+
})
|
| 120 |
+
.strict();
|
| 121 |
+
export const isJSONRPCRequest = (value) => JSONRPCRequestSchema.safeParse(value).success;
|
| 122 |
+
/**
|
| 123 |
+
* A notification which does not expect a response.
|
| 124 |
+
*/
|
| 125 |
+
export const JSONRPCNotificationSchema = z
|
| 126 |
+
.object({
|
| 127 |
+
jsonrpc: z.literal(JSONRPC_VERSION),
|
| 128 |
+
...NotificationSchema.shape
|
| 129 |
+
})
|
| 130 |
+
.strict();
|
| 131 |
+
export const isJSONRPCNotification = (value) => JSONRPCNotificationSchema.safeParse(value).success;
|
| 132 |
+
/**
|
| 133 |
+
* A successful (non-error) response to a request.
|
| 134 |
+
*/
|
| 135 |
+
export const JSONRPCResultResponseSchema = z
|
| 136 |
+
.object({
|
| 137 |
+
jsonrpc: z.literal(JSONRPC_VERSION),
|
| 138 |
+
id: RequestIdSchema,
|
| 139 |
+
result: ResultSchema
|
| 140 |
+
})
|
| 141 |
+
.strict();
|
| 142 |
+
/**
|
| 143 |
+
* Checks if a value is a valid JSONRPCResultResponse.
|
| 144 |
+
* @param value - The value to check.
|
| 145 |
+
*
|
| 146 |
+
* @returns True if the value is a valid JSONRPCResultResponse, false otherwise.
|
| 147 |
+
*/
|
| 148 |
+
export const isJSONRPCResultResponse = (value) => JSONRPCResultResponseSchema.safeParse(value).success;
|
| 149 |
+
/**
|
| 150 |
+
* @deprecated Use {@link isJSONRPCResultResponse} instead.
|
| 151 |
+
*
|
| 152 |
+
* Please note that {@link JSONRPCResponse} is a union of {@link JSONRPCResultResponse} and {@link JSONRPCErrorResponse} as per the updated JSON-RPC specification. (was previously just {@link JSONRPCResultResponse})
|
| 153 |
+
*/
|
| 154 |
+
export const isJSONRPCResponse = isJSONRPCResultResponse;
|
| 155 |
+
/**
|
| 156 |
+
* Error codes defined by the JSON-RPC specification.
|
| 157 |
+
*/
|
| 158 |
+
export var ErrorCode;
|
| 159 |
+
(function (ErrorCode) {
|
| 160 |
+
// SDK error codes
|
| 161 |
+
ErrorCode[ErrorCode["ConnectionClosed"] = -32000] = "ConnectionClosed";
|
| 162 |
+
ErrorCode[ErrorCode["RequestTimeout"] = -32001] = "RequestTimeout";
|
| 163 |
+
// Standard JSON-RPC error codes
|
| 164 |
+
ErrorCode[ErrorCode["ParseError"] = -32700] = "ParseError";
|
| 165 |
+
ErrorCode[ErrorCode["InvalidRequest"] = -32600] = "InvalidRequest";
|
| 166 |
+
ErrorCode[ErrorCode["MethodNotFound"] = -32601] = "MethodNotFound";
|
| 167 |
+
ErrorCode[ErrorCode["InvalidParams"] = -32602] = "InvalidParams";
|
| 168 |
+
ErrorCode[ErrorCode["InternalError"] = -32603] = "InternalError";
|
| 169 |
+
// MCP-specific error codes
|
| 170 |
+
ErrorCode[ErrorCode["UrlElicitationRequired"] = -32042] = "UrlElicitationRequired";
|
| 171 |
+
})(ErrorCode || (ErrorCode = {}));
|
| 172 |
+
/**
|
| 173 |
+
* A response to a request that indicates an error occurred.
|
| 174 |
+
*/
|
| 175 |
+
export const JSONRPCErrorResponseSchema = z
|
| 176 |
+
.object({
|
| 177 |
+
jsonrpc: z.literal(JSONRPC_VERSION),
|
| 178 |
+
id: RequestIdSchema.optional(),
|
| 179 |
+
error: z.object({
|
| 180 |
+
/**
|
| 181 |
+
* The error type that occurred.
|
| 182 |
+
*/
|
| 183 |
+
code: z.number().int(),
|
| 184 |
+
/**
|
| 185 |
+
* A short description of the error. The message SHOULD be limited to a concise single sentence.
|
| 186 |
+
*/
|
| 187 |
+
message: z.string(),
|
| 188 |
+
/**
|
| 189 |
+
* Additional information about the error. The value of this member is defined by the sender (e.g. detailed error information, nested errors etc.).
|
| 190 |
+
*/
|
| 191 |
+
data: z.unknown().optional()
|
| 192 |
+
})
|
| 193 |
+
})
|
| 194 |
+
.strict();
|
| 195 |
+
/**
|
| 196 |
+
* @deprecated Use {@link JSONRPCErrorResponseSchema} instead.
|
| 197 |
+
*/
|
| 198 |
+
export const JSONRPCErrorSchema = JSONRPCErrorResponseSchema;
|
| 199 |
+
/**
|
| 200 |
+
* Checks if a value is a valid JSONRPCErrorResponse.
|
| 201 |
+
* @param value - The value to check.
|
| 202 |
+
*
|
| 203 |
+
* @returns True if the value is a valid JSONRPCErrorResponse, false otherwise.
|
| 204 |
+
*/
|
| 205 |
+
export const isJSONRPCErrorResponse = (value) => JSONRPCErrorResponseSchema.safeParse(value).success;
|
| 206 |
+
/**
|
| 207 |
+
* @deprecated Use {@link isJSONRPCErrorResponse} instead.
|
| 208 |
+
*/
|
| 209 |
+
export const isJSONRPCError = isJSONRPCErrorResponse;
|
| 210 |
+
export const JSONRPCMessageSchema = z.union([
|
| 211 |
+
JSONRPCRequestSchema,
|
| 212 |
+
JSONRPCNotificationSchema,
|
| 213 |
+
JSONRPCResultResponseSchema,
|
| 214 |
+
JSONRPCErrorResponseSchema
|
| 215 |
+
]);
|
| 216 |
+
export const JSONRPCResponseSchema = z.union([JSONRPCResultResponseSchema, JSONRPCErrorResponseSchema]);
|
| 217 |
+
/* Empty result */
|
| 218 |
+
/**
|
| 219 |
+
* A response that indicates success but carries no data.
|
| 220 |
+
*/
|
| 221 |
+
export const EmptyResultSchema = ResultSchema.strict();
|
| 222 |
+
export const CancelledNotificationParamsSchema = NotificationsParamsSchema.extend({
|
| 223 |
+
/**
|
| 224 |
+
* The ID of the request to cancel.
|
| 225 |
+
*
|
| 226 |
+
* This MUST correspond to the ID of a request previously issued in the same direction.
|
| 227 |
+
*/
|
| 228 |
+
requestId: RequestIdSchema.optional(),
|
| 229 |
+
/**
|
| 230 |
+
* An optional string describing the reason for the cancellation. This MAY be logged or presented to the user.
|
| 231 |
+
*/
|
| 232 |
+
reason: z.string().optional()
|
| 233 |
+
});
|
| 234 |
+
/* Cancellation */
|
| 235 |
+
/**
|
| 236 |
+
* This notification can be sent by either side to indicate that it is cancelling a previously-issued request.
|
| 237 |
+
*
|
| 238 |
+
* The request SHOULD still be in-flight, but due to communication latency, it is always possible that this notification MAY arrive after the request has already finished.
|
| 239 |
+
*
|
| 240 |
+
* This notification indicates that the result will be unused, so any associated processing SHOULD cease.
|
| 241 |
+
*
|
| 242 |
+
* A client MUST NOT attempt to cancel its `initialize` request.
|
| 243 |
+
*/
|
| 244 |
+
export const CancelledNotificationSchema = NotificationSchema.extend({
|
| 245 |
+
method: z.literal('notifications/cancelled'),
|
| 246 |
+
params: CancelledNotificationParamsSchema
|
| 247 |
+
});
|
| 248 |
+
/* Base Metadata */
|
| 249 |
+
/**
|
| 250 |
+
* Icon schema for use in tools, prompts, resources, and implementations.
|
| 251 |
+
*/
|
| 252 |
+
export const IconSchema = z.object({
|
| 253 |
+
/**
|
| 254 |
+
* URL or data URI for the icon.
|
| 255 |
+
*/
|
| 256 |
+
src: z.string(),
|
| 257 |
+
/**
|
| 258 |
+
* Optional MIME type for the icon.
|
| 259 |
+
*/
|
| 260 |
+
mimeType: z.string().optional(),
|
| 261 |
+
/**
|
| 262 |
+
* Optional array of strings that specify sizes at which the icon can be used.
|
| 263 |
+
* Each string should be in WxH format (e.g., `"48x48"`, `"96x96"`) or `"any"` for scalable formats like SVG.
|
| 264 |
+
*
|
| 265 |
+
* If not provided, the client should assume that the icon can be used at any size.
|
| 266 |
+
*/
|
| 267 |
+
sizes: z.array(z.string()).optional(),
|
| 268 |
+
/**
|
| 269 |
+
* Optional specifier for the theme this icon is designed for. `light` indicates
|
| 270 |
+
* the icon is designed to be used with a light background, and `dark` indicates
|
| 271 |
+
* the icon is designed to be used with a dark background.
|
| 272 |
+
*
|
| 273 |
+
* If not provided, the client should assume the icon can be used with any theme.
|
| 274 |
+
*/
|
| 275 |
+
theme: z.enum(['light', 'dark']).optional()
|
| 276 |
+
});
|
| 277 |
+
/**
|
| 278 |
+
* Base schema to add `icons` property.
|
| 279 |
+
*
|
| 280 |
+
*/
|
| 281 |
+
export const IconsSchema = z.object({
|
| 282 |
+
/**
|
| 283 |
+
* Optional set of sized icons that the client can display in a user interface.
|
| 284 |
+
*
|
| 285 |
+
* Clients that support rendering icons MUST support at least the following MIME types:
|
| 286 |
+
* - `image/png` - PNG images (safe, universal compatibility)
|
| 287 |
+
* - `image/jpeg` (and `image/jpg`) - JPEG images (safe, universal compatibility)
|
| 288 |
+
*
|
| 289 |
+
* Clients that support rendering icons SHOULD also support:
|
| 290 |
+
* - `image/svg+xml` - SVG images (scalable but requires security precautions)
|
| 291 |
+
* - `image/webp` - WebP images (modern, efficient format)
|
| 292 |
+
*/
|
| 293 |
+
icons: z.array(IconSchema).optional()
|
| 294 |
+
});
|
| 295 |
+
/**
|
| 296 |
+
* Base metadata interface for common properties across resources, tools, prompts, and implementations.
|
| 297 |
+
*/
|
| 298 |
+
export const BaseMetadataSchema = z.object({
|
| 299 |
+
/** Intended for programmatic or logical use, but used as a display name in past specs or fallback */
|
| 300 |
+
name: z.string(),
|
| 301 |
+
/**
|
| 302 |
+
* Intended for UI and end-user contexts — optimized to be human-readable and easily understood,
|
| 303 |
+
* even by those unfamiliar with domain-specific terminology.
|
| 304 |
+
*
|
| 305 |
+
* If not provided, the name should be used for display (except for Tool,
|
| 306 |
+
* where `annotations.title` should be given precedence over using `name`,
|
| 307 |
+
* if present).
|
| 308 |
+
*/
|
| 309 |
+
title: z.string().optional()
|
| 310 |
+
});
|
| 311 |
+
/* Initialization */
|
| 312 |
+
/**
|
| 313 |
+
* Describes the name and version of an MCP implementation.
|
| 314 |
+
*/
|
| 315 |
+
export const ImplementationSchema = BaseMetadataSchema.extend({
|
| 316 |
+
...BaseMetadataSchema.shape,
|
| 317 |
+
...IconsSchema.shape,
|
| 318 |
+
version: z.string(),
|
| 319 |
+
/**
|
| 320 |
+
* An optional URL of the website for this implementation.
|
| 321 |
+
*/
|
| 322 |
+
websiteUrl: z.string().optional(),
|
| 323 |
+
/**
|
| 324 |
+
* An optional human-readable description of what this implementation does.
|
| 325 |
+
*
|
| 326 |
+
* This can be used by clients or servers to provide context about their purpose
|
| 327 |
+
* and capabilities. For example, a server might describe the types of resources
|
| 328 |
+
* or tools it provides, while a client might describe its intended use case.
|
| 329 |
+
*/
|
| 330 |
+
description: z.string().optional()
|
| 331 |
+
});
|
| 332 |
+
const FormElicitationCapabilitySchema = z.intersection(z.object({
|
| 333 |
+
applyDefaults: z.boolean().optional()
|
| 334 |
+
}), z.record(z.string(), z.unknown()));
|
| 335 |
+
const ElicitationCapabilitySchema = z.preprocess(value => {
|
| 336 |
+
if (value && typeof value === 'object' && !Array.isArray(value)) {
|
| 337 |
+
if (Object.keys(value).length === 0) {
|
| 338 |
+
return { form: {} };
|
| 339 |
+
}
|
| 340 |
+
}
|
| 341 |
+
return value;
|
| 342 |
+
}, z.intersection(z.object({
|
| 343 |
+
form: FormElicitationCapabilitySchema.optional(),
|
| 344 |
+
url: AssertObjectSchema.optional()
|
| 345 |
+
}), z.record(z.string(), z.unknown()).optional()));
|
| 346 |
+
/**
|
| 347 |
+
* Task capabilities for clients, indicating which request types support task creation.
|
| 348 |
+
*/
|
| 349 |
+
export const ClientTasksCapabilitySchema = z.looseObject({
|
| 350 |
+
/**
|
| 351 |
+
* Present if the client supports listing tasks.
|
| 352 |
+
*/
|
| 353 |
+
list: AssertObjectSchema.optional(),
|
| 354 |
+
/**
|
| 355 |
+
* Present if the client supports cancelling tasks.
|
| 356 |
+
*/
|
| 357 |
+
cancel: AssertObjectSchema.optional(),
|
| 358 |
+
/**
|
| 359 |
+
* Capabilities for task creation on specific request types.
|
| 360 |
+
*/
|
| 361 |
+
requests: z
|
| 362 |
+
.looseObject({
|
| 363 |
+
/**
|
| 364 |
+
* Task support for sampling requests.
|
| 365 |
+
*/
|
| 366 |
+
sampling: z
|
| 367 |
+
.looseObject({
|
| 368 |
+
createMessage: AssertObjectSchema.optional()
|
| 369 |
+
})
|
| 370 |
+
.optional(),
|
| 371 |
+
/**
|
| 372 |
+
* Task support for elicitation requests.
|
| 373 |
+
*/
|
| 374 |
+
elicitation: z
|
| 375 |
+
.looseObject({
|
| 376 |
+
create: AssertObjectSchema.optional()
|
| 377 |
+
})
|
| 378 |
+
.optional()
|
| 379 |
+
})
|
| 380 |
+
.optional()
|
| 381 |
+
});
|
| 382 |
+
/**
|
| 383 |
+
* Task capabilities for servers, indicating which request types support task creation.
|
| 384 |
+
*/
|
| 385 |
+
export const ServerTasksCapabilitySchema = z.looseObject({
|
| 386 |
+
/**
|
| 387 |
+
* Present if the server supports listing tasks.
|
| 388 |
+
*/
|
| 389 |
+
list: AssertObjectSchema.optional(),
|
| 390 |
+
/**
|
| 391 |
+
* Present if the server supports cancelling tasks.
|
| 392 |
+
*/
|
| 393 |
+
cancel: AssertObjectSchema.optional(),
|
| 394 |
+
/**
|
| 395 |
+
* Capabilities for task creation on specific request types.
|
| 396 |
+
*/
|
| 397 |
+
requests: z
|
| 398 |
+
.looseObject({
|
| 399 |
+
/**
|
| 400 |
+
* Task support for tool requests.
|
| 401 |
+
*/
|
| 402 |
+
tools: z
|
| 403 |
+
.looseObject({
|
| 404 |
+
call: AssertObjectSchema.optional()
|
| 405 |
+
})
|
| 406 |
+
.optional()
|
| 407 |
+
})
|
| 408 |
+
.optional()
|
| 409 |
+
});
|
| 410 |
+
/**
|
| 411 |
+
* Capabilities a client may support. Known capabilities are defined here, in this schema, but this is not a closed set: any client can define its own, additional capabilities.
|
| 412 |
+
*/
|
| 413 |
+
export const ClientCapabilitiesSchema = z.object({
|
| 414 |
+
/**
|
| 415 |
+
* Experimental, non-standard capabilities that the client supports.
|
| 416 |
+
*/
|
| 417 |
+
experimental: z.record(z.string(), AssertObjectSchema).optional(),
|
| 418 |
+
/**
|
| 419 |
+
* Present if the client supports sampling from an LLM.
|
| 420 |
+
*/
|
| 421 |
+
sampling: z
|
| 422 |
+
.object({
|
| 423 |
+
/**
|
| 424 |
+
* Present if the client supports context inclusion via includeContext parameter.
|
| 425 |
+
* If not declared, servers SHOULD only use `includeContext: "none"` (or omit it).
|
| 426 |
+
*/
|
| 427 |
+
context: AssertObjectSchema.optional(),
|
| 428 |
+
/**
|
| 429 |
+
* Present if the client supports tool use via tools and toolChoice parameters.
|
| 430 |
+
*/
|
| 431 |
+
tools: AssertObjectSchema.optional()
|
| 432 |
+
})
|
| 433 |
+
.optional(),
|
| 434 |
+
/**
|
| 435 |
+
* Present if the client supports eliciting user input.
|
| 436 |
+
*/
|
| 437 |
+
elicitation: ElicitationCapabilitySchema.optional(),
|
| 438 |
+
/**
|
| 439 |
+
* Present if the client supports listing roots.
|
| 440 |
+
*/
|
| 441 |
+
roots: z
|
| 442 |
+
.object({
|
| 443 |
+
/**
|
| 444 |
+
* Whether the client supports issuing notifications for changes to the roots list.
|
| 445 |
+
*/
|
| 446 |
+
listChanged: z.boolean().optional()
|
| 447 |
+
})
|
| 448 |
+
.optional(),
|
| 449 |
+
/**
|
| 450 |
+
* Present if the client supports task creation.
|
| 451 |
+
*/
|
| 452 |
+
tasks: ClientTasksCapabilitySchema.optional(),
|
| 453 |
+
/**
|
| 454 |
+
* Extensions that the client supports. Keys are extension identifiers (vendor-prefix/extension-name).
|
| 455 |
+
*/
|
| 456 |
+
extensions: z.record(z.string(), AssertObjectSchema).optional()
|
| 457 |
+
});
|
| 458 |
+
export const InitializeRequestParamsSchema = BaseRequestParamsSchema.extend({
|
| 459 |
+
/**
|
| 460 |
+
* The latest version of the Model Context Protocol that the client supports. The client MAY decide to support older versions as well.
|
| 461 |
+
*/
|
| 462 |
+
protocolVersion: z.string(),
|
| 463 |
+
capabilities: ClientCapabilitiesSchema,
|
| 464 |
+
clientInfo: ImplementationSchema
|
| 465 |
+
});
|
| 466 |
+
/**
|
| 467 |
+
* This request is sent from the client to the server when it first connects, asking it to begin initialization.
|
| 468 |
+
*/
|
| 469 |
+
export const InitializeRequestSchema = RequestSchema.extend({
|
| 470 |
+
method: z.literal('initialize'),
|
| 471 |
+
params: InitializeRequestParamsSchema
|
| 472 |
+
});
|
| 473 |
+
export const isInitializeRequest = (value) => InitializeRequestSchema.safeParse(value).success;
|
| 474 |
+
/**
|
| 475 |
+
* Capabilities that a server may support. Known capabilities are defined here, in this schema, but this is not a closed set: any server can define its own, additional capabilities.
|
| 476 |
+
*/
|
| 477 |
+
export const ServerCapabilitiesSchema = z.object({
|
| 478 |
+
/**
|
| 479 |
+
* Experimental, non-standard capabilities that the server supports.
|
| 480 |
+
*/
|
| 481 |
+
experimental: z.record(z.string(), AssertObjectSchema).optional(),
|
| 482 |
+
/**
|
| 483 |
+
* Present if the server supports sending log messages to the client.
|
| 484 |
+
*/
|
| 485 |
+
logging: AssertObjectSchema.optional(),
|
| 486 |
+
/**
|
| 487 |
+
* Present if the server supports sending completions to the client.
|
| 488 |
+
*/
|
| 489 |
+
completions: AssertObjectSchema.optional(),
|
| 490 |
+
/**
|
| 491 |
+
* Present if the server offers any prompt templates.
|
| 492 |
+
*/
|
| 493 |
+
prompts: z
|
| 494 |
+
.object({
|
| 495 |
+
/**
|
| 496 |
+
* Whether this server supports issuing notifications for changes to the prompt list.
|
| 497 |
+
*/
|
| 498 |
+
listChanged: z.boolean().optional()
|
| 499 |
+
})
|
| 500 |
+
.optional(),
|
| 501 |
+
/**
|
| 502 |
+
* Present if the server offers any resources to read.
|
| 503 |
+
*/
|
| 504 |
+
resources: z
|
| 505 |
+
.object({
|
| 506 |
+
/**
|
| 507 |
+
* Whether this server supports clients subscribing to resource updates.
|
| 508 |
+
*/
|
| 509 |
+
subscribe: z.boolean().optional(),
|
| 510 |
+
/**
|
| 511 |
+
* Whether this server supports issuing notifications for changes to the resource list.
|
| 512 |
+
*/
|
| 513 |
+
listChanged: z.boolean().optional()
|
| 514 |
+
})
|
| 515 |
+
.optional(),
|
| 516 |
+
/**
|
| 517 |
+
* Present if the server offers any tools to call.
|
| 518 |
+
*/
|
| 519 |
+
tools: z
|
| 520 |
+
.object({
|
| 521 |
+
/**
|
| 522 |
+
* Whether this server supports issuing notifications for changes to the tool list.
|
| 523 |
+
*/
|
| 524 |
+
listChanged: z.boolean().optional()
|
| 525 |
+
})
|
| 526 |
+
.optional(),
|
| 527 |
+
/**
|
| 528 |
+
* Present if the server supports task creation.
|
| 529 |
+
*/
|
| 530 |
+
tasks: ServerTasksCapabilitySchema.optional(),
|
| 531 |
+
/**
|
| 532 |
+
* Extensions that the server supports. Keys are extension identifiers (vendor-prefix/extension-name).
|
| 533 |
+
*/
|
| 534 |
+
extensions: z.record(z.string(), AssertObjectSchema).optional()
|
| 535 |
+
});
|
| 536 |
+
/**
|
| 537 |
+
* After receiving an initialize request from the client, the server sends this response.
|
| 538 |
+
*/
|
| 539 |
+
export const InitializeResultSchema = ResultSchema.extend({
|
| 540 |
+
/**
|
| 541 |
+
* The version of the Model Context Protocol that the server wants to use. This may not match the version that the client requested. If the client cannot support this version, it MUST disconnect.
|
| 542 |
+
*/
|
| 543 |
+
protocolVersion: z.string(),
|
| 544 |
+
capabilities: ServerCapabilitiesSchema,
|
| 545 |
+
serverInfo: ImplementationSchema,
|
| 546 |
+
/**
|
| 547 |
+
* Instructions describing how to use the server and its features.
|
| 548 |
+
*
|
| 549 |
+
* This can be used by clients to improve the LLM's understanding of available tools, resources, etc. It can be thought of like a "hint" to the model. For example, this information MAY be added to the system prompt.
|
| 550 |
+
*/
|
| 551 |
+
instructions: z.string().optional()
|
| 552 |
+
});
|
| 553 |
+
/**
|
| 554 |
+
* This notification is sent from the client to the server after initialization has finished.
|
| 555 |
+
*/
|
| 556 |
+
export const InitializedNotificationSchema = NotificationSchema.extend({
|
| 557 |
+
method: z.literal('notifications/initialized'),
|
| 558 |
+
params: NotificationsParamsSchema.optional()
|
| 559 |
+
});
|
| 560 |
+
export const isInitializedNotification = (value) => InitializedNotificationSchema.safeParse(value).success;
|
| 561 |
+
/* Ping */
|
| 562 |
+
/**
|
| 563 |
+
* A ping, issued by either the server or the client, to check that the other party is still alive. The receiver must promptly respond, or else may be disconnected.
|
| 564 |
+
*/
|
| 565 |
+
export const PingRequestSchema = RequestSchema.extend({
|
| 566 |
+
method: z.literal('ping'),
|
| 567 |
+
params: BaseRequestParamsSchema.optional()
|
| 568 |
+
});
|
| 569 |
+
/* Progress notifications */
|
| 570 |
+
export const ProgressSchema = z.object({
|
| 571 |
+
/**
|
| 572 |
+
* The progress thus far. This should increase every time progress is made, even if the total is unknown.
|
| 573 |
+
*/
|
| 574 |
+
progress: z.number(),
|
| 575 |
+
/**
|
| 576 |
+
* Total number of items to process (or total progress required), if known.
|
| 577 |
+
*/
|
| 578 |
+
total: z.optional(z.number()),
|
| 579 |
+
/**
|
| 580 |
+
* An optional message describing the current progress.
|
| 581 |
+
*/
|
| 582 |
+
message: z.optional(z.string())
|
| 583 |
+
});
|
| 584 |
+
export const ProgressNotificationParamsSchema = z.object({
|
| 585 |
+
...NotificationsParamsSchema.shape,
|
| 586 |
+
...ProgressSchema.shape,
|
| 587 |
+
/**
|
| 588 |
+
* The progress token which was given in the initial request, used to associate this notification with the request that is proceeding.
|
| 589 |
+
*/
|
| 590 |
+
progressToken: ProgressTokenSchema
|
| 591 |
+
});
|
| 592 |
+
/**
|
| 593 |
+
* An out-of-band notification used to inform the receiver of a progress update for a long-running request.
|
| 594 |
+
*
|
| 595 |
+
* @category notifications/progress
|
| 596 |
+
*/
|
| 597 |
+
export const ProgressNotificationSchema = NotificationSchema.extend({
|
| 598 |
+
method: z.literal('notifications/progress'),
|
| 599 |
+
params: ProgressNotificationParamsSchema
|
| 600 |
+
});
|
| 601 |
+
export const PaginatedRequestParamsSchema = BaseRequestParamsSchema.extend({
|
| 602 |
+
/**
|
| 603 |
+
* An opaque token representing the current pagination position.
|
| 604 |
+
* If provided, the server should return results starting after this cursor.
|
| 605 |
+
*/
|
| 606 |
+
cursor: CursorSchema.optional()
|
| 607 |
+
});
|
| 608 |
+
/* Pagination */
|
| 609 |
+
export const PaginatedRequestSchema = RequestSchema.extend({
|
| 610 |
+
params: PaginatedRequestParamsSchema.optional()
|
| 611 |
+
});
|
| 612 |
+
export const PaginatedResultSchema = ResultSchema.extend({
|
| 613 |
+
/**
|
| 614 |
+
* An opaque token representing the pagination position after the last returned result.
|
| 615 |
+
* If present, there may be more results available.
|
| 616 |
+
*/
|
| 617 |
+
nextCursor: CursorSchema.optional()
|
| 618 |
+
});
|
| 619 |
+
/**
|
| 620 |
+
* The status of a task.
|
| 621 |
+
* */
|
| 622 |
+
export const TaskStatusSchema = z.enum(['working', 'input_required', 'completed', 'failed', 'cancelled']);
|
| 623 |
+
/* Tasks */
|
| 624 |
+
/**
|
| 625 |
+
* A pollable state object associated with a request.
|
| 626 |
+
*/
|
| 627 |
+
export const TaskSchema = z.object({
|
| 628 |
+
taskId: z.string(),
|
| 629 |
+
status: TaskStatusSchema,
|
| 630 |
+
/**
|
| 631 |
+
* Time in milliseconds to keep task results available after completion.
|
| 632 |
+
* If null, the task has unlimited lifetime until manually cleaned up.
|
| 633 |
+
*/
|
| 634 |
+
ttl: z.union([z.number(), z.null()]),
|
| 635 |
+
/**
|
| 636 |
+
* ISO 8601 timestamp when the task was created.
|
| 637 |
+
*/
|
| 638 |
+
createdAt: z.string(),
|
| 639 |
+
/**
|
| 640 |
+
* ISO 8601 timestamp when the task was last updated.
|
| 641 |
+
*/
|
| 642 |
+
lastUpdatedAt: z.string(),
|
| 643 |
+
pollInterval: z.optional(z.number()),
|
| 644 |
+
/**
|
| 645 |
+
* Optional diagnostic message for failed tasks or other status information.
|
| 646 |
+
*/
|
| 647 |
+
statusMessage: z.optional(z.string())
|
| 648 |
+
});
|
| 649 |
+
/**
|
| 650 |
+
* Result returned when a task is created, containing the task data wrapped in a task field.
|
| 651 |
+
*/
|
| 652 |
+
export const CreateTaskResultSchema = ResultSchema.extend({
|
| 653 |
+
task: TaskSchema
|
| 654 |
+
});
|
| 655 |
+
/**
|
| 656 |
+
* Parameters for task status notification.
|
| 657 |
+
*/
|
| 658 |
+
export const TaskStatusNotificationParamsSchema = NotificationsParamsSchema.merge(TaskSchema);
|
| 659 |
+
/**
|
| 660 |
+
* A notification sent when a task's status changes.
|
| 661 |
+
*/
|
| 662 |
+
export const TaskStatusNotificationSchema = NotificationSchema.extend({
|
| 663 |
+
method: z.literal('notifications/tasks/status'),
|
| 664 |
+
params: TaskStatusNotificationParamsSchema
|
| 665 |
+
});
|
| 666 |
+
/**
|
| 667 |
+
* A request to get the state of a specific task.
|
| 668 |
+
*/
|
| 669 |
+
export const GetTaskRequestSchema = RequestSchema.extend({
|
| 670 |
+
method: z.literal('tasks/get'),
|
| 671 |
+
params: BaseRequestParamsSchema.extend({
|
| 672 |
+
taskId: z.string()
|
| 673 |
+
})
|
| 674 |
+
});
|
| 675 |
+
/**
|
| 676 |
+
* The response to a tasks/get request.
|
| 677 |
+
*/
|
| 678 |
+
export const GetTaskResultSchema = ResultSchema.merge(TaskSchema);
|
| 679 |
+
/**
|
| 680 |
+
* A request to get the result of a specific task.
|
| 681 |
+
*/
|
| 682 |
+
export const GetTaskPayloadRequestSchema = RequestSchema.extend({
|
| 683 |
+
method: z.literal('tasks/result'),
|
| 684 |
+
params: BaseRequestParamsSchema.extend({
|
| 685 |
+
taskId: z.string()
|
| 686 |
+
})
|
| 687 |
+
});
|
| 688 |
+
/**
|
| 689 |
+
* The response to a tasks/result request.
|
| 690 |
+
* The structure matches the result type of the original request.
|
| 691 |
+
* For example, a tools/call task would return the CallToolResult structure.
|
| 692 |
+
*
|
| 693 |
+
*/
|
| 694 |
+
export const GetTaskPayloadResultSchema = ResultSchema.loose();
|
| 695 |
+
/**
|
| 696 |
+
* A request to list tasks.
|
| 697 |
+
*/
|
| 698 |
+
export const ListTasksRequestSchema = PaginatedRequestSchema.extend({
|
| 699 |
+
method: z.literal('tasks/list')
|
| 700 |
+
});
|
| 701 |
+
/**
|
| 702 |
+
* The response to a tasks/list request.
|
| 703 |
+
*/
|
| 704 |
+
export const ListTasksResultSchema = PaginatedResultSchema.extend({
|
| 705 |
+
tasks: z.array(TaskSchema)
|
| 706 |
+
});
|
| 707 |
+
/**
|
| 708 |
+
* A request to cancel a specific task.
|
| 709 |
+
*/
|
| 710 |
+
export const CancelTaskRequestSchema = RequestSchema.extend({
|
| 711 |
+
method: z.literal('tasks/cancel'),
|
| 712 |
+
params: BaseRequestParamsSchema.extend({
|
| 713 |
+
taskId: z.string()
|
| 714 |
+
})
|
| 715 |
+
});
|
| 716 |
+
/**
|
| 717 |
+
* The response to a tasks/cancel request.
|
| 718 |
+
*/
|
| 719 |
+
export const CancelTaskResultSchema = ResultSchema.merge(TaskSchema);
|
| 720 |
+
/* Resources */
|
| 721 |
+
/**
|
| 722 |
+
* The contents of a specific resource or sub-resource.
|
| 723 |
+
*/
|
| 724 |
+
export const ResourceContentsSchema = z.object({
|
| 725 |
+
/**
|
| 726 |
+
* The URI of this resource.
|
| 727 |
+
*/
|
| 728 |
+
uri: z.string(),
|
| 729 |
+
/**
|
| 730 |
+
* The MIME type of this resource, if known.
|
| 731 |
+
*/
|
| 732 |
+
mimeType: z.optional(z.string()),
|
| 733 |
+
/**
|
| 734 |
+
* See [MCP specification](https://github.com/modelcontextprotocol/modelcontextprotocol/blob/47339c03c143bb4ec01a26e721a1b8fe66634ebe/docs/specification/draft/basic/index.mdx#general-fields)
|
| 735 |
+
* for notes on _meta usage.
|
| 736 |
+
*/
|
| 737 |
+
_meta: z.record(z.string(), z.unknown()).optional()
|
| 738 |
+
});
|
| 739 |
+
export const TextResourceContentsSchema = ResourceContentsSchema.extend({
|
| 740 |
+
/**
|
| 741 |
+
* The text of the item. This must only be set if the item can actually be represented as text (not binary data).
|
| 742 |
+
*/
|
| 743 |
+
text: z.string()
|
| 744 |
+
});
|
| 745 |
+
/**
|
| 746 |
+
* A Zod schema for validating Base64 strings that is more performant and
|
| 747 |
+
* robust for very large inputs than the default regex-based check. It avoids
|
| 748 |
+
* stack overflows by using the native `atob` function for validation.
|
| 749 |
+
*/
|
| 750 |
+
const Base64Schema = z.string().refine(val => {
|
| 751 |
+
try {
|
| 752 |
+
// atob throws a DOMException if the string contains characters
|
| 753 |
+
// that are not part of the Base64 character set.
|
| 754 |
+
atob(val);
|
| 755 |
+
return true;
|
| 756 |
+
}
|
| 757 |
+
catch {
|
| 758 |
+
return false;
|
| 759 |
+
}
|
| 760 |
+
}, { message: 'Invalid Base64 string' });
|
| 761 |
+
export const BlobResourceContentsSchema = ResourceContentsSchema.extend({
|
| 762 |
+
/**
|
| 763 |
+
* A base64-encoded string representing the binary data of the item.
|
| 764 |
+
*/
|
| 765 |
+
blob: Base64Schema
|
| 766 |
+
});
|
| 767 |
+
/**
|
| 768 |
+
* The sender or recipient of messages and data in a conversation.
|
| 769 |
+
*/
|
| 770 |
+
export const RoleSchema = z.enum(['user', 'assistant']);
|
| 771 |
+
/**
|
| 772 |
+
* Optional annotations providing clients additional context about a resource.
|
| 773 |
+
*/
|
| 774 |
+
export const AnnotationsSchema = z.object({
|
| 775 |
+
/**
|
| 776 |
+
* Intended audience(s) for the resource.
|
| 777 |
+
*/
|
| 778 |
+
audience: z.array(RoleSchema).optional(),
|
| 779 |
+
/**
|
| 780 |
+
* Importance hint for the resource, from 0 (least) to 1 (most).
|
| 781 |
+
*/
|
| 782 |
+
priority: z.number().min(0).max(1).optional(),
|
| 783 |
+
/**
|
| 784 |
+
* ISO 8601 timestamp for the most recent modification.
|
| 785 |
+
*/
|
| 786 |
+
lastModified: z.iso.datetime({ offset: true }).optional()
|
| 787 |
+
});
|
| 788 |
+
/**
|
| 789 |
+
* A known resource that the server is capable of reading.
|
| 790 |
+
*/
|
| 791 |
+
export const ResourceSchema = z.object({
|
| 792 |
+
...BaseMetadataSchema.shape,
|
| 793 |
+
...IconsSchema.shape,
|
| 794 |
+
/**
|
| 795 |
+
* The URI of this resource.
|
| 796 |
+
*/
|
| 797 |
+
uri: z.string(),
|
| 798 |
+
/**
|
| 799 |
+
* A description of what this resource represents.
|
| 800 |
+
*
|
| 801 |
+
* This can be used by clients to improve the LLM's understanding of available resources. It can be thought of like a "hint" to the model.
|
| 802 |
+
*/
|
| 803 |
+
description: z.optional(z.string()),
|
| 804 |
+
/**
|
| 805 |
+
* The MIME type of this resource, if known.
|
| 806 |
+
*/
|
| 807 |
+
mimeType: z.optional(z.string()),
|
| 808 |
+
/**
|
| 809 |
+
* The size of the raw resource content, in bytes (i.e., before base64 encoding or any tokenization), if known.
|
| 810 |
+
*
|
| 811 |
+
* This can be used by Hosts to display file sizes and estimate context window usage.
|
| 812 |
+
*/
|
| 813 |
+
size: z.optional(z.number()),
|
| 814 |
+
/**
|
| 815 |
+
* Optional annotations for the client.
|
| 816 |
+
*/
|
| 817 |
+
annotations: AnnotationsSchema.optional(),
|
| 818 |
+
/**
|
| 819 |
+
* See [MCP specification](https://github.com/modelcontextprotocol/modelcontextprotocol/blob/47339c03c143bb4ec01a26e721a1b8fe66634ebe/docs/specification/draft/basic/index.mdx#general-fields)
|
| 820 |
+
* for notes on _meta usage.
|
| 821 |
+
*/
|
| 822 |
+
_meta: z.optional(z.looseObject({}))
|
| 823 |
+
});
|
| 824 |
+
/**
|
| 825 |
+
* A template description for resources available on the server.
|
| 826 |
+
*/
|
| 827 |
+
export const ResourceTemplateSchema = z.object({
|
| 828 |
+
...BaseMetadataSchema.shape,
|
| 829 |
+
...IconsSchema.shape,
|
| 830 |
+
/**
|
| 831 |
+
* A URI template (according to RFC 6570) that can be used to construct resource URIs.
|
| 832 |
+
*/
|
| 833 |
+
uriTemplate: z.string(),
|
| 834 |
+
/**
|
| 835 |
+
* A description of what this template is for.
|
| 836 |
+
*
|
| 837 |
+
* This can be used by clients to improve the LLM's understanding of available resources. It can be thought of like a "hint" to the model.
|
| 838 |
+
*/
|
| 839 |
+
description: z.optional(z.string()),
|
| 840 |
+
/**
|
| 841 |
+
* The MIME type for all resources that match this template. This should only be included if all resources matching this template have the same type.
|
| 842 |
+
*/
|
| 843 |
+
mimeType: z.optional(z.string()),
|
| 844 |
+
/**
|
| 845 |
+
* Optional annotations for the client.
|
| 846 |
+
*/
|
| 847 |
+
annotations: AnnotationsSchema.optional(),
|
| 848 |
+
/**
|
| 849 |
+
* See [MCP specification](https://github.com/modelcontextprotocol/modelcontextprotocol/blob/47339c03c143bb4ec01a26e721a1b8fe66634ebe/docs/specification/draft/basic/index.mdx#general-fields)
|
| 850 |
+
* for notes on _meta usage.
|
| 851 |
+
*/
|
| 852 |
+
_meta: z.optional(z.looseObject({}))
|
| 853 |
+
});
|
| 854 |
+
/**
|
| 855 |
+
* Sent from the client to request a list of resources the server has.
|
| 856 |
+
*/
|
| 857 |
+
export const ListResourcesRequestSchema = PaginatedRequestSchema.extend({
|
| 858 |
+
method: z.literal('resources/list')
|
| 859 |
+
});
|
| 860 |
+
/**
|
| 861 |
+
* The server's response to a resources/list request from the client.
|
| 862 |
+
*/
|
| 863 |
+
export const ListResourcesResultSchema = PaginatedResultSchema.extend({
|
| 864 |
+
resources: z.array(ResourceSchema)
|
| 865 |
+
});
|
| 866 |
+
/**
|
| 867 |
+
* Sent from the client to request a list of resource templates the server has.
|
| 868 |
+
*/
|
| 869 |
+
export const ListResourceTemplatesRequestSchema = PaginatedRequestSchema.extend({
|
| 870 |
+
method: z.literal('resources/templates/list')
|
| 871 |
+
});
|
| 872 |
+
/**
|
| 873 |
+
* The server's response to a resources/templates/list request from the client.
|
| 874 |
+
*/
|
| 875 |
+
export const ListResourceTemplatesResultSchema = PaginatedResultSchema.extend({
|
| 876 |
+
resourceTemplates: z.array(ResourceTemplateSchema)
|
| 877 |
+
});
|
| 878 |
+
export const ResourceRequestParamsSchema = BaseRequestParamsSchema.extend({
|
| 879 |
+
/**
|
| 880 |
+
* The URI of the resource to read. The URI can use any protocol; it is up to the server how to interpret it.
|
| 881 |
+
*
|
| 882 |
+
* @format uri
|
| 883 |
+
*/
|
| 884 |
+
uri: z.string()
|
| 885 |
+
});
|
| 886 |
+
/**
|
| 887 |
+
* Parameters for a `resources/read` request.
|
| 888 |
+
*/
|
| 889 |
+
export const ReadResourceRequestParamsSchema = ResourceRequestParamsSchema;
|
| 890 |
+
/**
|
| 891 |
+
* Sent from the client to the server, to read a specific resource URI.
|
| 892 |
+
*/
|
| 893 |
+
export const ReadResourceRequestSchema = RequestSchema.extend({
|
| 894 |
+
method: z.literal('resources/read'),
|
| 895 |
+
params: ReadResourceRequestParamsSchema
|
| 896 |
+
});
|
| 897 |
+
/**
|
| 898 |
+
* The server's response to a resources/read request from the client.
|
| 899 |
+
*/
|
| 900 |
+
export const ReadResourceResultSchema = ResultSchema.extend({
|
| 901 |
+
contents: z.array(z.union([TextResourceContentsSchema, BlobResourceContentsSchema]))
|
| 902 |
+
});
|
| 903 |
+
/**
|
| 904 |
+
* An optional notification from the server to the client, informing it that the list of resources it can read from has changed. This may be issued by servers without any previous subscription from the client.
|
| 905 |
+
*/
|
| 906 |
+
export const ResourceListChangedNotificationSchema = NotificationSchema.extend({
|
| 907 |
+
method: z.literal('notifications/resources/list_changed'),
|
| 908 |
+
params: NotificationsParamsSchema.optional()
|
| 909 |
+
});
|
| 910 |
+
export const SubscribeRequestParamsSchema = ResourceRequestParamsSchema;
|
| 911 |
+
/**
|
| 912 |
+
* Sent from the client to request resources/updated notifications from the server whenever a particular resource changes.
|
| 913 |
+
*/
|
| 914 |
+
export const SubscribeRequestSchema = RequestSchema.extend({
|
| 915 |
+
method: z.literal('resources/subscribe'),
|
| 916 |
+
params: SubscribeRequestParamsSchema
|
| 917 |
+
});
|
| 918 |
+
export const UnsubscribeRequestParamsSchema = ResourceRequestParamsSchema;
|
| 919 |
+
/**
|
| 920 |
+
* Sent from the client to request cancellation of resources/updated notifications from the server. This should follow a previous resources/subscribe request.
|
| 921 |
+
*/
|
| 922 |
+
export const UnsubscribeRequestSchema = RequestSchema.extend({
|
| 923 |
+
method: z.literal('resources/unsubscribe'),
|
| 924 |
+
params: UnsubscribeRequestParamsSchema
|
| 925 |
+
});
|
| 926 |
+
/**
|
| 927 |
+
* Parameters for a `notifications/resources/updated` notification.
|
| 928 |
+
*/
|
| 929 |
+
export const ResourceUpdatedNotificationParamsSchema = NotificationsParamsSchema.extend({
|
| 930 |
+
/**
|
| 931 |
+
* The URI of the resource that has been updated. This might be a sub-resource of the one that the client actually subscribed to.
|
| 932 |
+
*/
|
| 933 |
+
uri: z.string()
|
| 934 |
+
});
|
| 935 |
+
/**
|
| 936 |
+
* A notification from the server to the client, informing it that a resource has changed and may need to be read again. This should only be sent if the client previously sent a resources/subscribe request.
|
| 937 |
+
*/
|
| 938 |
+
export const ResourceUpdatedNotificationSchema = NotificationSchema.extend({
|
| 939 |
+
method: z.literal('notifications/resources/updated'),
|
| 940 |
+
params: ResourceUpdatedNotificationParamsSchema
|
| 941 |
+
});
|
| 942 |
+
/* Prompts */
|
| 943 |
+
/**
|
| 944 |
+
* Describes an argument that a prompt can accept.
|
| 945 |
+
*/
|
| 946 |
+
export const PromptArgumentSchema = z.object({
|
| 947 |
+
/**
|
| 948 |
+
* The name of the argument.
|
| 949 |
+
*/
|
| 950 |
+
name: z.string(),
|
| 951 |
+
/**
|
| 952 |
+
* A human-readable description of the argument.
|
| 953 |
+
*/
|
| 954 |
+
description: z.optional(z.string()),
|
| 955 |
+
/**
|
| 956 |
+
* Whether this argument must be provided.
|
| 957 |
+
*/
|
| 958 |
+
required: z.optional(z.boolean())
|
| 959 |
+
});
|
| 960 |
+
/**
|
| 961 |
+
* A prompt or prompt template that the server offers.
|
| 962 |
+
*/
|
| 963 |
+
export const PromptSchema = z.object({
|
| 964 |
+
...BaseMetadataSchema.shape,
|
| 965 |
+
...IconsSchema.shape,
|
| 966 |
+
/**
|
| 967 |
+
* An optional description of what this prompt provides
|
| 968 |
+
*/
|
| 969 |
+
description: z.optional(z.string()),
|
| 970 |
+
/**
|
| 971 |
+
* A list of arguments to use for templating the prompt.
|
| 972 |
+
*/
|
| 973 |
+
arguments: z.optional(z.array(PromptArgumentSchema)),
|
| 974 |
+
/**
|
| 975 |
+
* See [MCP specification](https://github.com/modelcontextprotocol/modelcontextprotocol/blob/47339c03c143bb4ec01a26e721a1b8fe66634ebe/docs/specification/draft/basic/index.mdx#general-fields)
|
| 976 |
+
* for notes on _meta usage.
|
| 977 |
+
*/
|
| 978 |
+
_meta: z.optional(z.looseObject({}))
|
| 979 |
+
});
|
| 980 |
+
/**
|
| 981 |
+
* Sent from the client to request a list of prompts and prompt templates the server has.
|
| 982 |
+
*/
|
| 983 |
+
export const ListPromptsRequestSchema = PaginatedRequestSchema.extend({
|
| 984 |
+
method: z.literal('prompts/list')
|
| 985 |
+
});
|
| 986 |
+
/**
|
| 987 |
+
* The server's response to a prompts/list request from the client.
|
| 988 |
+
*/
|
| 989 |
+
export const ListPromptsResultSchema = PaginatedResultSchema.extend({
|
| 990 |
+
prompts: z.array(PromptSchema)
|
| 991 |
+
});
|
| 992 |
+
/**
|
| 993 |
+
* Parameters for a `prompts/get` request.
|
| 994 |
+
*/
|
| 995 |
+
export const GetPromptRequestParamsSchema = BaseRequestParamsSchema.extend({
|
| 996 |
+
/**
|
| 997 |
+
* The name of the prompt or prompt template.
|
| 998 |
+
*/
|
| 999 |
+
name: z.string(),
|
| 1000 |
+
/**
|
| 1001 |
+
* Arguments to use for templating the prompt.
|
| 1002 |
+
*/
|
| 1003 |
+
arguments: z.record(z.string(), z.string()).optional()
|
| 1004 |
+
});
|
| 1005 |
+
/**
|
| 1006 |
+
* Used by the client to get a prompt provided by the server.
|
| 1007 |
+
*/
|
| 1008 |
+
export const GetPromptRequestSchema = RequestSchema.extend({
|
| 1009 |
+
method: z.literal('prompts/get'),
|
| 1010 |
+
params: GetPromptRequestParamsSchema
|
| 1011 |
+
});
|
| 1012 |
+
/**
|
| 1013 |
+
* Text provided to or from an LLM.
|
| 1014 |
+
*/
|
| 1015 |
+
export const TextContentSchema = z.object({
|
| 1016 |
+
type: z.literal('text'),
|
| 1017 |
+
/**
|
| 1018 |
+
* The text content of the message.
|
| 1019 |
+
*/
|
| 1020 |
+
text: z.string(),
|
| 1021 |
+
/**
|
| 1022 |
+
* Optional annotations for the client.
|
| 1023 |
+
*/
|
| 1024 |
+
annotations: AnnotationsSchema.optional(),
|
| 1025 |
+
/**
|
| 1026 |
+
* See [MCP specification](https://github.com/modelcontextprotocol/modelcontextprotocol/blob/47339c03c143bb4ec01a26e721a1b8fe66634ebe/docs/specification/draft/basic/index.mdx#general-fields)
|
| 1027 |
+
* for notes on _meta usage.
|
| 1028 |
+
*/
|
| 1029 |
+
_meta: z.record(z.string(), z.unknown()).optional()
|
| 1030 |
+
});
|
| 1031 |
+
/**
|
| 1032 |
+
* An image provided to or from an LLM.
|
| 1033 |
+
*/
|
| 1034 |
+
export const ImageContentSchema = z.object({
|
| 1035 |
+
type: z.literal('image'),
|
| 1036 |
+
/**
|
| 1037 |
+
* The base64-encoded image data.
|
| 1038 |
+
*/
|
| 1039 |
+
data: Base64Schema,
|
| 1040 |
+
/**
|
| 1041 |
+
* The MIME type of the image. Different providers may support different image types.
|
| 1042 |
+
*/
|
| 1043 |
+
mimeType: z.string(),
|
| 1044 |
+
/**
|
| 1045 |
+
* Optional annotations for the client.
|
| 1046 |
+
*/
|
| 1047 |
+
annotations: AnnotationsSchema.optional(),
|
| 1048 |
+
/**
|
| 1049 |
+
* See [MCP specification](https://github.com/modelcontextprotocol/modelcontextprotocol/blob/47339c03c143bb4ec01a26e721a1b8fe66634ebe/docs/specification/draft/basic/index.mdx#general-fields)
|
| 1050 |
+
* for notes on _meta usage.
|
| 1051 |
+
*/
|
| 1052 |
+
_meta: z.record(z.string(), z.unknown()).optional()
|
| 1053 |
+
});
|
| 1054 |
+
/**
|
| 1055 |
+
* An Audio provided to or from an LLM.
|
| 1056 |
+
*/
|
| 1057 |
+
export const AudioContentSchema = z.object({
|
| 1058 |
+
type: z.literal('audio'),
|
| 1059 |
+
/**
|
| 1060 |
+
* The base64-encoded audio data.
|
| 1061 |
+
*/
|
| 1062 |
+
data: Base64Schema,
|
| 1063 |
+
/**
|
| 1064 |
+
* The MIME type of the audio. Different providers may support different audio types.
|
| 1065 |
+
*/
|
| 1066 |
+
mimeType: z.string(),
|
| 1067 |
+
/**
|
| 1068 |
+
* Optional annotations for the client.
|
| 1069 |
+
*/
|
| 1070 |
+
annotations: AnnotationsSchema.optional(),
|
| 1071 |
+
/**
|
| 1072 |
+
* See [MCP specification](https://github.com/modelcontextprotocol/modelcontextprotocol/blob/47339c03c143bb4ec01a26e721a1b8fe66634ebe/docs/specification/draft/basic/index.mdx#general-fields)
|
| 1073 |
+
* for notes on _meta usage.
|
| 1074 |
+
*/
|
| 1075 |
+
_meta: z.record(z.string(), z.unknown()).optional()
|
| 1076 |
+
});
|
| 1077 |
+
/**
|
| 1078 |
+
* A tool call request from an assistant (LLM).
|
| 1079 |
+
* Represents the assistant's request to use a tool.
|
| 1080 |
+
*/
|
| 1081 |
+
export const ToolUseContentSchema = z.object({
|
| 1082 |
+
type: z.literal('tool_use'),
|
| 1083 |
+
/**
|
| 1084 |
+
* The name of the tool to invoke.
|
| 1085 |
+
* Must match a tool name from the request's tools array.
|
| 1086 |
+
*/
|
| 1087 |
+
name: z.string(),
|
| 1088 |
+
/**
|
| 1089 |
+
* Unique identifier for this tool call.
|
| 1090 |
+
* Used to correlate with ToolResultContent in subsequent messages.
|
| 1091 |
+
*/
|
| 1092 |
+
id: z.string(),
|
| 1093 |
+
/**
|
| 1094 |
+
* Arguments to pass to the tool.
|
| 1095 |
+
* Must conform to the tool's inputSchema.
|
| 1096 |
+
*/
|
| 1097 |
+
input: z.record(z.string(), z.unknown()),
|
| 1098 |
+
/**
|
| 1099 |
+
* See [MCP specification](https://github.com/modelcontextprotocol/modelcontextprotocol/blob/47339c03c143bb4ec01a26e721a1b8fe66634ebe/docs/specification/draft/basic/index.mdx#general-fields)
|
| 1100 |
+
* for notes on _meta usage.
|
| 1101 |
+
*/
|
| 1102 |
+
_meta: z.record(z.string(), z.unknown()).optional()
|
| 1103 |
+
});
|
| 1104 |
+
/**
|
| 1105 |
+
* The contents of a resource, embedded into a prompt or tool call result.
|
| 1106 |
+
*/
|
| 1107 |
+
export const EmbeddedResourceSchema = z.object({
|
| 1108 |
+
type: z.literal('resource'),
|
| 1109 |
+
resource: z.union([TextResourceContentsSchema, BlobResourceContentsSchema]),
|
| 1110 |
+
/**
|
| 1111 |
+
* Optional annotations for the client.
|
| 1112 |
+
*/
|
| 1113 |
+
annotations: AnnotationsSchema.optional(),
|
| 1114 |
+
/**
|
| 1115 |
+
* See [MCP specification](https://github.com/modelcontextprotocol/modelcontextprotocol/blob/47339c03c143bb4ec01a26e721a1b8fe66634ebe/docs/specification/draft/basic/index.mdx#general-fields)
|
| 1116 |
+
* for notes on _meta usage.
|
| 1117 |
+
*/
|
| 1118 |
+
_meta: z.record(z.string(), z.unknown()).optional()
|
| 1119 |
+
});
|
| 1120 |
+
/**
|
| 1121 |
+
* A resource that the server is capable of reading, included in a prompt or tool call result.
|
| 1122 |
+
*
|
| 1123 |
+
* Note: resource links returned by tools are not guaranteed to appear in the results of `resources/list` requests.
|
| 1124 |
+
*/
|
| 1125 |
+
export const ResourceLinkSchema = ResourceSchema.extend({
|
| 1126 |
+
type: z.literal('resource_link')
|
| 1127 |
+
});
|
| 1128 |
+
/**
|
| 1129 |
+
* A content block that can be used in prompts and tool results.
|
| 1130 |
+
*/
|
| 1131 |
+
export const ContentBlockSchema = z.union([
|
| 1132 |
+
TextContentSchema,
|
| 1133 |
+
ImageContentSchema,
|
| 1134 |
+
AudioContentSchema,
|
| 1135 |
+
ResourceLinkSchema,
|
| 1136 |
+
EmbeddedResourceSchema
|
| 1137 |
+
]);
|
| 1138 |
+
/**
|
| 1139 |
+
* Describes a message returned as part of a prompt.
|
| 1140 |
+
*/
|
| 1141 |
+
export const PromptMessageSchema = z.object({
|
| 1142 |
+
role: RoleSchema,
|
| 1143 |
+
content: ContentBlockSchema
|
| 1144 |
+
});
|
| 1145 |
+
/**
|
| 1146 |
+
* The server's response to a prompts/get request from the client.
|
| 1147 |
+
*/
|
| 1148 |
+
export const GetPromptResultSchema = ResultSchema.extend({
|
| 1149 |
+
/**
|
| 1150 |
+
* An optional description for the prompt.
|
| 1151 |
+
*/
|
| 1152 |
+
description: z.string().optional(),
|
| 1153 |
+
messages: z.array(PromptMessageSchema)
|
| 1154 |
+
});
|
| 1155 |
+
/**
|
| 1156 |
+
* An optional notification from the server to the client, informing it that the list of prompts it offers has changed. This may be issued by servers without any previous subscription from the client.
|
| 1157 |
+
*/
|
| 1158 |
+
export const PromptListChangedNotificationSchema = NotificationSchema.extend({
|
| 1159 |
+
method: z.literal('notifications/prompts/list_changed'),
|
| 1160 |
+
params: NotificationsParamsSchema.optional()
|
| 1161 |
+
});
|
| 1162 |
+
/* Tools */
|
| 1163 |
+
/**
|
| 1164 |
+
* Additional properties describing a Tool to clients.
|
| 1165 |
+
*
|
| 1166 |
+
* NOTE: all properties in ToolAnnotations are **hints**.
|
| 1167 |
+
* They are not guaranteed to provide a faithful description of
|
| 1168 |
+
* tool behavior (including descriptive properties like `title`).
|
| 1169 |
+
*
|
| 1170 |
+
* Clients should never make tool use decisions based on ToolAnnotations
|
| 1171 |
+
* received from untrusted servers.
|
| 1172 |
+
*/
|
| 1173 |
+
export const ToolAnnotationsSchema = z.object({
|
| 1174 |
+
/**
|
| 1175 |
+
* A human-readable title for the tool.
|
| 1176 |
+
*/
|
| 1177 |
+
title: z.string().optional(),
|
| 1178 |
+
/**
|
| 1179 |
+
* If true, the tool does not modify its environment.
|
| 1180 |
+
*
|
| 1181 |
+
* Default: false
|
| 1182 |
+
*/
|
| 1183 |
+
readOnlyHint: z.boolean().optional(),
|
| 1184 |
+
/**
|
| 1185 |
+
* If true, the tool may perform destructive updates to its environment.
|
| 1186 |
+
* If false, the tool performs only additive updates.
|
| 1187 |
+
*
|
| 1188 |
+
* (This property is meaningful only when `readOnlyHint == false`)
|
| 1189 |
+
*
|
| 1190 |
+
* Default: true
|
| 1191 |
+
*/
|
| 1192 |
+
destructiveHint: z.boolean().optional(),
|
| 1193 |
+
/**
|
| 1194 |
+
* If true, calling the tool repeatedly with the same arguments
|
| 1195 |
+
* will have no additional effect on the its environment.
|
| 1196 |
+
*
|
| 1197 |
+
* (This property is meaningful only when `readOnlyHint == false`)
|
| 1198 |
+
*
|
| 1199 |
+
* Default: false
|
| 1200 |
+
*/
|
| 1201 |
+
idempotentHint: z.boolean().optional(),
|
| 1202 |
+
/**
|
| 1203 |
+
* If true, this tool may interact with an "open world" of external
|
| 1204 |
+
* entities. If false, the tool's domain of interaction is closed.
|
| 1205 |
+
* For example, the world of a web search tool is open, whereas that
|
| 1206 |
+
* of a memory tool is not.
|
| 1207 |
+
*
|
| 1208 |
+
* Default: true
|
| 1209 |
+
*/
|
| 1210 |
+
openWorldHint: z.boolean().optional()
|
| 1211 |
+
});
|
| 1212 |
+
/**
|
| 1213 |
+
* Execution-related properties for a tool.
|
| 1214 |
+
*/
|
| 1215 |
+
export const ToolExecutionSchema = z.object({
|
| 1216 |
+
/**
|
| 1217 |
+
* Indicates the tool's preference for task-augmented execution.
|
| 1218 |
+
* - "required": Clients MUST invoke the tool as a task
|
| 1219 |
+
* - "optional": Clients MAY invoke the tool as a task or normal request
|
| 1220 |
+
* - "forbidden": Clients MUST NOT attempt to invoke the tool as a task
|
| 1221 |
+
*
|
| 1222 |
+
* If not present, defaults to "forbidden".
|
| 1223 |
+
*/
|
| 1224 |
+
taskSupport: z.enum(['required', 'optional', 'forbidden']).optional()
|
| 1225 |
+
});
|
| 1226 |
+
/**
|
| 1227 |
+
* Definition for a tool the client can call.
|
| 1228 |
+
*/
|
| 1229 |
+
export const ToolSchema = z.object({
|
| 1230 |
+
...BaseMetadataSchema.shape,
|
| 1231 |
+
...IconsSchema.shape,
|
| 1232 |
+
/**
|
| 1233 |
+
* A human-readable description of the tool.
|
| 1234 |
+
*/
|
| 1235 |
+
description: z.string().optional(),
|
| 1236 |
+
/**
|
| 1237 |
+
* A JSON Schema 2020-12 object defining the expected parameters for the tool.
|
| 1238 |
+
* Must have type: 'object' at the root level per MCP spec.
|
| 1239 |
+
*/
|
| 1240 |
+
inputSchema: z
|
| 1241 |
+
.object({
|
| 1242 |
+
type: z.literal('object'),
|
| 1243 |
+
properties: z.record(z.string(), AssertObjectSchema).optional(),
|
| 1244 |
+
required: z.array(z.string()).optional()
|
| 1245 |
+
})
|
| 1246 |
+
.catchall(z.unknown()),
|
| 1247 |
+
/**
|
| 1248 |
+
* An optional JSON Schema 2020-12 object defining the structure of the tool's output
|
| 1249 |
+
* returned in the structuredContent field of a CallToolResult.
|
| 1250 |
+
* Must have type: 'object' at the root level per MCP spec.
|
| 1251 |
+
*/
|
| 1252 |
+
outputSchema: z
|
| 1253 |
+
.object({
|
| 1254 |
+
type: z.literal('object'),
|
| 1255 |
+
properties: z.record(z.string(), AssertObjectSchema).optional(),
|
| 1256 |
+
required: z.array(z.string()).optional()
|
| 1257 |
+
})
|
| 1258 |
+
.catchall(z.unknown())
|
| 1259 |
+
.optional(),
|
| 1260 |
+
/**
|
| 1261 |
+
* Optional additional tool information.
|
| 1262 |
+
*/
|
| 1263 |
+
annotations: ToolAnnotationsSchema.optional(),
|
| 1264 |
+
/**
|
| 1265 |
+
* Execution-related properties for this tool.
|
| 1266 |
+
*/
|
| 1267 |
+
execution: ToolExecutionSchema.optional(),
|
| 1268 |
+
/**
|
| 1269 |
+
* See [MCP specification](https://github.com/modelcontextprotocol/modelcontextprotocol/blob/47339c03c143bb4ec01a26e721a1b8fe66634ebe/docs/specification/draft/basic/index.mdx#general-fields)
|
| 1270 |
+
* for notes on _meta usage.
|
| 1271 |
+
*/
|
| 1272 |
+
_meta: z.record(z.string(), z.unknown()).optional()
|
| 1273 |
+
});
|
| 1274 |
+
/**
|
| 1275 |
+
* Sent from the client to request a list of tools the server has.
|
| 1276 |
+
*/
|
| 1277 |
+
export const ListToolsRequestSchema = PaginatedRequestSchema.extend({
|
| 1278 |
+
method: z.literal('tools/list')
|
| 1279 |
+
});
|
| 1280 |
+
/**
|
| 1281 |
+
* The server's response to a tools/list request from the client.
|
| 1282 |
+
*/
|
| 1283 |
+
export const ListToolsResultSchema = PaginatedResultSchema.extend({
|
| 1284 |
+
tools: z.array(ToolSchema)
|
| 1285 |
+
});
|
| 1286 |
+
/**
|
| 1287 |
+
* The server's response to a tool call.
|
| 1288 |
+
*/
|
| 1289 |
+
export const CallToolResultSchema = ResultSchema.extend({
|
| 1290 |
+
/**
|
| 1291 |
+
* A list of content objects that represent the result of the tool call.
|
| 1292 |
+
*
|
| 1293 |
+
* If the Tool does not define an outputSchema, this field MUST be present in the result.
|
| 1294 |
+
* For backwards compatibility, this field is always present, but it may be empty.
|
| 1295 |
+
*/
|
| 1296 |
+
content: z.array(ContentBlockSchema).default([]),
|
| 1297 |
+
/**
|
| 1298 |
+
* An object containing structured tool output.
|
| 1299 |
+
*
|
| 1300 |
+
* If the Tool defines an outputSchema, this field MUST be present in the result, and contain a JSON object that matches the schema.
|
| 1301 |
+
*/
|
| 1302 |
+
structuredContent: z.record(z.string(), z.unknown()).optional(),
|
| 1303 |
+
/**
|
| 1304 |
+
* Whether the tool call ended in an error.
|
| 1305 |
+
*
|
| 1306 |
+
* If not set, this is assumed to be false (the call was successful).
|
| 1307 |
+
*
|
| 1308 |
+
* Any errors that originate from the tool SHOULD be reported inside the result
|
| 1309 |
+
* object, with `isError` set to true, _not_ as an MCP protocol-level error
|
| 1310 |
+
* response. Otherwise, the LLM would not be able to see that an error occurred
|
| 1311 |
+
* and self-correct.
|
| 1312 |
+
*
|
| 1313 |
+
* However, any errors in _finding_ the tool, an error indicating that the
|
| 1314 |
+
* server does not support tool calls, or any other exceptional conditions,
|
| 1315 |
+
* should be reported as an MCP error response.
|
| 1316 |
+
*/
|
| 1317 |
+
isError: z.boolean().optional()
|
| 1318 |
+
});
|
| 1319 |
+
/**
|
| 1320 |
+
* CallToolResultSchema extended with backwards compatibility to protocol version 2024-10-07.
|
| 1321 |
+
*/
|
| 1322 |
+
export const CompatibilityCallToolResultSchema = CallToolResultSchema.or(ResultSchema.extend({
|
| 1323 |
+
toolResult: z.unknown()
|
| 1324 |
+
}));
|
| 1325 |
+
/**
|
| 1326 |
+
* Parameters for a `tools/call` request.
|
| 1327 |
+
*/
|
| 1328 |
+
export const CallToolRequestParamsSchema = TaskAugmentedRequestParamsSchema.extend({
|
| 1329 |
+
/**
|
| 1330 |
+
* The name of the tool to call.
|
| 1331 |
+
*/
|
| 1332 |
+
name: z.string(),
|
| 1333 |
+
/**
|
| 1334 |
+
* Arguments to pass to the tool.
|
| 1335 |
+
*/
|
| 1336 |
+
arguments: z.record(z.string(), z.unknown()).optional()
|
| 1337 |
+
});
|
| 1338 |
+
/**
|
| 1339 |
+
* Used by the client to invoke a tool provided by the server.
|
| 1340 |
+
*/
|
| 1341 |
+
export const CallToolRequestSchema = RequestSchema.extend({
|
| 1342 |
+
method: z.literal('tools/call'),
|
| 1343 |
+
params: CallToolRequestParamsSchema
|
| 1344 |
+
});
|
| 1345 |
+
/**
|
| 1346 |
+
* An optional notification from the server to the client, informing it that the list of tools it offers has changed. This may be issued by servers without any previous subscription from the client.
|
| 1347 |
+
*/
|
| 1348 |
+
export const ToolListChangedNotificationSchema = NotificationSchema.extend({
|
| 1349 |
+
method: z.literal('notifications/tools/list_changed'),
|
| 1350 |
+
params: NotificationsParamsSchema.optional()
|
| 1351 |
+
});
|
| 1352 |
+
/**
|
| 1353 |
+
* Base schema for list changed subscription options (without callback).
|
| 1354 |
+
* Used internally for Zod validation of autoRefresh and debounceMs.
|
| 1355 |
+
*/
|
| 1356 |
+
export const ListChangedOptionsBaseSchema = z.object({
|
| 1357 |
+
/**
|
| 1358 |
+
* If true, the list will be refreshed automatically when a list changed notification is received.
|
| 1359 |
+
* The callback will be called with the updated list.
|
| 1360 |
+
*
|
| 1361 |
+
* If false, the callback will be called with null items, allowing manual refresh.
|
| 1362 |
+
*
|
| 1363 |
+
* @default true
|
| 1364 |
+
*/
|
| 1365 |
+
autoRefresh: z.boolean().default(true),
|
| 1366 |
+
/**
|
| 1367 |
+
* Debounce time in milliseconds for list changed notification processing.
|
| 1368 |
+
*
|
| 1369 |
+
* Multiple notifications received within this timeframe will only trigger one refresh.
|
| 1370 |
+
* Set to 0 to disable debouncing.
|
| 1371 |
+
*
|
| 1372 |
+
* @default 300
|
| 1373 |
+
*/
|
| 1374 |
+
debounceMs: z.number().int().nonnegative().default(300)
|
| 1375 |
+
});
|
| 1376 |
+
/* Logging */
|
| 1377 |
+
/**
|
| 1378 |
+
* The severity of a log message.
|
| 1379 |
+
*/
|
| 1380 |
+
export const LoggingLevelSchema = z.enum(['debug', 'info', 'notice', 'warning', 'error', 'critical', 'alert', 'emergency']);
|
| 1381 |
+
/**
|
| 1382 |
+
* Parameters for a `logging/setLevel` request.
|
| 1383 |
+
*/
|
| 1384 |
+
export const SetLevelRequestParamsSchema = BaseRequestParamsSchema.extend({
|
| 1385 |
+
/**
|
| 1386 |
+
* The level of logging that the client wants to receive from the server. The server should send all logs at this level and higher (i.e., more severe) to the client as notifications/logging/message.
|
| 1387 |
+
*/
|
| 1388 |
+
level: LoggingLevelSchema
|
| 1389 |
+
});
|
| 1390 |
+
/**
|
| 1391 |
+
* A request from the client to the server, to enable or adjust logging.
|
| 1392 |
+
*/
|
| 1393 |
+
export const SetLevelRequestSchema = RequestSchema.extend({
|
| 1394 |
+
method: z.literal('logging/setLevel'),
|
| 1395 |
+
params: SetLevelRequestParamsSchema
|
| 1396 |
+
});
|
| 1397 |
+
/**
|
| 1398 |
+
* Parameters for a `notifications/message` notification.
|
| 1399 |
+
*/
|
| 1400 |
+
export const LoggingMessageNotificationParamsSchema = NotificationsParamsSchema.extend({
|
| 1401 |
+
/**
|
| 1402 |
+
* The severity of this log message.
|
| 1403 |
+
*/
|
| 1404 |
+
level: LoggingLevelSchema,
|
| 1405 |
+
/**
|
| 1406 |
+
* An optional name of the logger issuing this message.
|
| 1407 |
+
*/
|
| 1408 |
+
logger: z.string().optional(),
|
| 1409 |
+
/**
|
| 1410 |
+
* The data to be logged, such as a string message or an object. Any JSON serializable type is allowed here.
|
| 1411 |
+
*/
|
| 1412 |
+
data: z.unknown()
|
| 1413 |
+
});
|
| 1414 |
+
/**
|
| 1415 |
+
* Notification of a log message passed from server to client. If no logging/setLevel request has been sent from the client, the server MAY decide which messages to send automatically.
|
| 1416 |
+
*/
|
| 1417 |
+
export const LoggingMessageNotificationSchema = NotificationSchema.extend({
|
| 1418 |
+
method: z.literal('notifications/message'),
|
| 1419 |
+
params: LoggingMessageNotificationParamsSchema
|
| 1420 |
+
});
|
| 1421 |
+
/* Sampling */
|
| 1422 |
+
/**
|
| 1423 |
+
* Hints to use for model selection.
|
| 1424 |
+
*/
|
| 1425 |
+
export const ModelHintSchema = z.object({
|
| 1426 |
+
/**
|
| 1427 |
+
* A hint for a model name.
|
| 1428 |
+
*/
|
| 1429 |
+
name: z.string().optional()
|
| 1430 |
+
});
|
| 1431 |
+
/**
|
| 1432 |
+
* The server's preferences for model selection, requested of the client during sampling.
|
| 1433 |
+
*/
|
| 1434 |
+
export const ModelPreferencesSchema = z.object({
|
| 1435 |
+
/**
|
| 1436 |
+
* Optional hints to use for model selection.
|
| 1437 |
+
*/
|
| 1438 |
+
hints: z.array(ModelHintSchema).optional(),
|
| 1439 |
+
/**
|
| 1440 |
+
* How much to prioritize cost when selecting a model.
|
| 1441 |
+
*/
|
| 1442 |
+
costPriority: z.number().min(0).max(1).optional(),
|
| 1443 |
+
/**
|
| 1444 |
+
* How much to prioritize sampling speed (latency) when selecting a model.
|
| 1445 |
+
*/
|
| 1446 |
+
speedPriority: z.number().min(0).max(1).optional(),
|
| 1447 |
+
/**
|
| 1448 |
+
* How much to prioritize intelligence and capabilities when selecting a model.
|
| 1449 |
+
*/
|
| 1450 |
+
intelligencePriority: z.number().min(0).max(1).optional()
|
| 1451 |
+
});
|
| 1452 |
+
/**
|
| 1453 |
+
* Controls tool usage behavior in sampling requests.
|
| 1454 |
+
*/
|
| 1455 |
+
export const ToolChoiceSchema = z.object({
|
| 1456 |
+
/**
|
| 1457 |
+
* Controls when tools are used:
|
| 1458 |
+
* - "auto": Model decides whether to use tools (default)
|
| 1459 |
+
* - "required": Model MUST use at least one tool before completing
|
| 1460 |
+
* - "none": Model MUST NOT use any tools
|
| 1461 |
+
*/
|
| 1462 |
+
mode: z.enum(['auto', 'required', 'none']).optional()
|
| 1463 |
+
});
|
| 1464 |
+
/**
|
| 1465 |
+
* The result of a tool execution, provided by the user (server).
|
| 1466 |
+
* Represents the outcome of invoking a tool requested via ToolUseContent.
|
| 1467 |
+
*/
|
| 1468 |
+
export const ToolResultContentSchema = z.object({
|
| 1469 |
+
type: z.literal('tool_result'),
|
| 1470 |
+
toolUseId: z.string().describe('The unique identifier for the corresponding tool call.'),
|
| 1471 |
+
content: z.array(ContentBlockSchema).default([]),
|
| 1472 |
+
structuredContent: z.object({}).loose().optional(),
|
| 1473 |
+
isError: z.boolean().optional(),
|
| 1474 |
+
/**
|
| 1475 |
+
* See [MCP specification](https://github.com/modelcontextprotocol/modelcontextprotocol/blob/47339c03c143bb4ec01a26e721a1b8fe66634ebe/docs/specification/draft/basic/index.mdx#general-fields)
|
| 1476 |
+
* for notes on _meta usage.
|
| 1477 |
+
*/
|
| 1478 |
+
_meta: z.record(z.string(), z.unknown()).optional()
|
| 1479 |
+
});
|
| 1480 |
+
/**
|
| 1481 |
+
* Basic content types for sampling responses (without tool use).
|
| 1482 |
+
* Used for backwards-compatible CreateMessageResult when tools are not used.
|
| 1483 |
+
*/
|
| 1484 |
+
export const SamplingContentSchema = z.discriminatedUnion('type', [TextContentSchema, ImageContentSchema, AudioContentSchema]);
|
| 1485 |
+
/**
|
| 1486 |
+
* Content block types allowed in sampling messages.
|
| 1487 |
+
* This includes text, image, audio, tool use requests, and tool results.
|
| 1488 |
+
*/
|
| 1489 |
+
export const SamplingMessageContentBlockSchema = z.discriminatedUnion('type', [
|
| 1490 |
+
TextContentSchema,
|
| 1491 |
+
ImageContentSchema,
|
| 1492 |
+
AudioContentSchema,
|
| 1493 |
+
ToolUseContentSchema,
|
| 1494 |
+
ToolResultContentSchema
|
| 1495 |
+
]);
|
| 1496 |
+
/**
|
| 1497 |
+
* Describes a message issued to or received from an LLM API.
|
| 1498 |
+
*/
|
| 1499 |
+
export const SamplingMessageSchema = z.object({
|
| 1500 |
+
role: RoleSchema,
|
| 1501 |
+
content: z.union([SamplingMessageContentBlockSchema, z.array(SamplingMessageContentBlockSchema)]),
|
| 1502 |
+
/**
|
| 1503 |
+
* See [MCP specification](https://github.com/modelcontextprotocol/modelcontextprotocol/blob/47339c03c143bb4ec01a26e721a1b8fe66634ebe/docs/specification/draft/basic/index.mdx#general-fields)
|
| 1504 |
+
* for notes on _meta usage.
|
| 1505 |
+
*/
|
| 1506 |
+
_meta: z.record(z.string(), z.unknown()).optional()
|
| 1507 |
+
});
|
| 1508 |
+
/**
|
| 1509 |
+
* Parameters for a `sampling/createMessage` request.
|
| 1510 |
+
*/
|
| 1511 |
+
export const CreateMessageRequestParamsSchema = TaskAugmentedRequestParamsSchema.extend({
|
| 1512 |
+
messages: z.array(SamplingMessageSchema),
|
| 1513 |
+
/**
|
| 1514 |
+
* The server's preferences for which model to select. The client MAY modify or omit this request.
|
| 1515 |
+
*/
|
| 1516 |
+
modelPreferences: ModelPreferencesSchema.optional(),
|
| 1517 |
+
/**
|
| 1518 |
+
* An optional system prompt the server wants to use for sampling. The client MAY modify or omit this prompt.
|
| 1519 |
+
*/
|
| 1520 |
+
systemPrompt: z.string().optional(),
|
| 1521 |
+
/**
|
| 1522 |
+
* A request to include context from one or more MCP servers (including the caller), to be attached to the prompt.
|
| 1523 |
+
* The client MAY ignore this request.
|
| 1524 |
+
*
|
| 1525 |
+
* Default is "none". Values "thisServer" and "allServers" are soft-deprecated. Servers SHOULD only use these values if the client
|
| 1526 |
+
* declares ClientCapabilities.sampling.context. These values may be removed in future spec releases.
|
| 1527 |
+
*/
|
| 1528 |
+
includeContext: z.enum(['none', 'thisServer', 'allServers']).optional(),
|
| 1529 |
+
temperature: z.number().optional(),
|
| 1530 |
+
/**
|
| 1531 |
+
* The requested maximum number of tokens to sample (to prevent runaway completions).
|
| 1532 |
+
*
|
| 1533 |
+
* The client MAY choose to sample fewer tokens than the requested maximum.
|
| 1534 |
+
*/
|
| 1535 |
+
maxTokens: z.number().int(),
|
| 1536 |
+
stopSequences: z.array(z.string()).optional(),
|
| 1537 |
+
/**
|
| 1538 |
+
* Optional metadata to pass through to the LLM provider. The format of this metadata is provider-specific.
|
| 1539 |
+
*/
|
| 1540 |
+
metadata: AssertObjectSchema.optional(),
|
| 1541 |
+
/**
|
| 1542 |
+
* Tools that the model may use during generation.
|
| 1543 |
+
* The client MUST return an error if this field is provided but ClientCapabilities.sampling.tools is not declared.
|
| 1544 |
+
*/
|
| 1545 |
+
tools: z.array(ToolSchema).optional(),
|
| 1546 |
+
/**
|
| 1547 |
+
* Controls how the model uses tools.
|
| 1548 |
+
* The client MUST return an error if this field is provided but ClientCapabilities.sampling.tools is not declared.
|
| 1549 |
+
* Default is `{ mode: "auto" }`.
|
| 1550 |
+
*/
|
| 1551 |
+
toolChoice: ToolChoiceSchema.optional()
|
| 1552 |
+
});
|
| 1553 |
+
/**
|
| 1554 |
+
* A request from the server to sample an LLM via the client. The client has full discretion over which model to select. The client should also inform the user before beginning sampling, to allow them to inspect the request (human in the loop) and decide whether to approve it.
|
| 1555 |
+
*/
|
| 1556 |
+
export const CreateMessageRequestSchema = RequestSchema.extend({
|
| 1557 |
+
method: z.literal('sampling/createMessage'),
|
| 1558 |
+
params: CreateMessageRequestParamsSchema
|
| 1559 |
+
});
|
| 1560 |
+
/**
|
| 1561 |
+
* The client's response to a sampling/create_message request from the server.
|
| 1562 |
+
* This is the backwards-compatible version that returns single content (no arrays).
|
| 1563 |
+
* Used when the request does not include tools.
|
| 1564 |
+
*/
|
| 1565 |
+
export const CreateMessageResultSchema = ResultSchema.extend({
|
| 1566 |
+
/**
|
| 1567 |
+
* The name of the model that generated the message.
|
| 1568 |
+
*/
|
| 1569 |
+
model: z.string(),
|
| 1570 |
+
/**
|
| 1571 |
+
* The reason why sampling stopped, if known.
|
| 1572 |
+
*
|
| 1573 |
+
* Standard values:
|
| 1574 |
+
* - "endTurn": Natural end of the assistant's turn
|
| 1575 |
+
* - "stopSequence": A stop sequence was encountered
|
| 1576 |
+
* - "maxTokens": Maximum token limit was reached
|
| 1577 |
+
*
|
| 1578 |
+
* This field is an open string to allow for provider-specific stop reasons.
|
| 1579 |
+
*/
|
| 1580 |
+
stopReason: z.optional(z.enum(['endTurn', 'stopSequence', 'maxTokens']).or(z.string())),
|
| 1581 |
+
role: RoleSchema,
|
| 1582 |
+
/**
|
| 1583 |
+
* Response content. Single content block (text, image, or audio).
|
| 1584 |
+
*/
|
| 1585 |
+
content: SamplingContentSchema
|
| 1586 |
+
});
|
| 1587 |
+
/**
|
| 1588 |
+
* The client's response to a sampling/create_message request when tools were provided.
|
| 1589 |
+
* This version supports array content for tool use flows.
|
| 1590 |
+
*/
|
| 1591 |
+
export const CreateMessageResultWithToolsSchema = ResultSchema.extend({
|
| 1592 |
+
/**
|
| 1593 |
+
* The name of the model that generated the message.
|
| 1594 |
+
*/
|
| 1595 |
+
model: z.string(),
|
| 1596 |
+
/**
|
| 1597 |
+
* The reason why sampling stopped, if known.
|
| 1598 |
+
*
|
| 1599 |
+
* Standard values:
|
| 1600 |
+
* - "endTurn": Natural end of the assistant's turn
|
| 1601 |
+
* - "stopSequence": A stop sequence was encountered
|
| 1602 |
+
* - "maxTokens": Maximum token limit was reached
|
| 1603 |
+
* - "toolUse": The model wants to use one or more tools
|
| 1604 |
+
*
|
| 1605 |
+
* This field is an open string to allow for provider-specific stop reasons.
|
| 1606 |
+
*/
|
| 1607 |
+
stopReason: z.optional(z.enum(['endTurn', 'stopSequence', 'maxTokens', 'toolUse']).or(z.string())),
|
| 1608 |
+
role: RoleSchema,
|
| 1609 |
+
/**
|
| 1610 |
+
* Response content. May be a single block or array. May include ToolUseContent if stopReason is "toolUse".
|
| 1611 |
+
*/
|
| 1612 |
+
content: z.union([SamplingMessageContentBlockSchema, z.array(SamplingMessageContentBlockSchema)])
|
| 1613 |
+
});
|
| 1614 |
+
/* Elicitation */
|
| 1615 |
+
/**
|
| 1616 |
+
* Primitive schema definition for boolean fields.
|
| 1617 |
+
*/
|
| 1618 |
+
export const BooleanSchemaSchema = z.object({
|
| 1619 |
+
type: z.literal('boolean'),
|
| 1620 |
+
title: z.string().optional(),
|
| 1621 |
+
description: z.string().optional(),
|
| 1622 |
+
default: z.boolean().optional()
|
| 1623 |
+
});
|
| 1624 |
+
/**
|
| 1625 |
+
* Primitive schema definition for string fields.
|
| 1626 |
+
*/
|
| 1627 |
+
export const StringSchemaSchema = z.object({
|
| 1628 |
+
type: z.literal('string'),
|
| 1629 |
+
title: z.string().optional(),
|
| 1630 |
+
description: z.string().optional(),
|
| 1631 |
+
minLength: z.number().optional(),
|
| 1632 |
+
maxLength: z.number().optional(),
|
| 1633 |
+
format: z.enum(['email', 'uri', 'date', 'date-time']).optional(),
|
| 1634 |
+
default: z.string().optional()
|
| 1635 |
+
});
|
| 1636 |
+
/**
|
| 1637 |
+
* Primitive schema definition for number fields.
|
| 1638 |
+
*/
|
| 1639 |
+
export const NumberSchemaSchema = z.object({
|
| 1640 |
+
type: z.enum(['number', 'integer']),
|
| 1641 |
+
title: z.string().optional(),
|
| 1642 |
+
description: z.string().optional(),
|
| 1643 |
+
minimum: z.number().optional(),
|
| 1644 |
+
maximum: z.number().optional(),
|
| 1645 |
+
default: z.number().optional()
|
| 1646 |
+
});
|
| 1647 |
+
/**
|
| 1648 |
+
* Schema for single-selection enumeration without display titles for options.
|
| 1649 |
+
*/
|
| 1650 |
+
export const UntitledSingleSelectEnumSchemaSchema = z.object({
|
| 1651 |
+
type: z.literal('string'),
|
| 1652 |
+
title: z.string().optional(),
|
| 1653 |
+
description: z.string().optional(),
|
| 1654 |
+
enum: z.array(z.string()),
|
| 1655 |
+
default: z.string().optional()
|
| 1656 |
+
});
|
| 1657 |
+
/**
|
| 1658 |
+
* Schema for single-selection enumeration with display titles for each option.
|
| 1659 |
+
*/
|
| 1660 |
+
export const TitledSingleSelectEnumSchemaSchema = z.object({
|
| 1661 |
+
type: z.literal('string'),
|
| 1662 |
+
title: z.string().optional(),
|
| 1663 |
+
description: z.string().optional(),
|
| 1664 |
+
oneOf: z.array(z.object({
|
| 1665 |
+
const: z.string(),
|
| 1666 |
+
title: z.string()
|
| 1667 |
+
})),
|
| 1668 |
+
default: z.string().optional()
|
| 1669 |
+
});
|
| 1670 |
+
/**
|
| 1671 |
+
* Use TitledSingleSelectEnumSchema instead.
|
| 1672 |
+
* This interface will be removed in a future version.
|
| 1673 |
+
*/
|
| 1674 |
+
export const LegacyTitledEnumSchemaSchema = z.object({
|
| 1675 |
+
type: z.literal('string'),
|
| 1676 |
+
title: z.string().optional(),
|
| 1677 |
+
description: z.string().optional(),
|
| 1678 |
+
enum: z.array(z.string()),
|
| 1679 |
+
enumNames: z.array(z.string()).optional(),
|
| 1680 |
+
default: z.string().optional()
|
| 1681 |
+
});
|
| 1682 |
+
// Combined single selection enumeration
|
| 1683 |
+
export const SingleSelectEnumSchemaSchema = z.union([UntitledSingleSelectEnumSchemaSchema, TitledSingleSelectEnumSchemaSchema]);
|
| 1684 |
+
/**
|
| 1685 |
+
* Schema for multiple-selection enumeration without display titles for options.
|
| 1686 |
+
*/
|
| 1687 |
+
export const UntitledMultiSelectEnumSchemaSchema = z.object({
|
| 1688 |
+
type: z.literal('array'),
|
| 1689 |
+
title: z.string().optional(),
|
| 1690 |
+
description: z.string().optional(),
|
| 1691 |
+
minItems: z.number().optional(),
|
| 1692 |
+
maxItems: z.number().optional(),
|
| 1693 |
+
items: z.object({
|
| 1694 |
+
type: z.literal('string'),
|
| 1695 |
+
enum: z.array(z.string())
|
| 1696 |
+
}),
|
| 1697 |
+
default: z.array(z.string()).optional()
|
| 1698 |
+
});
|
| 1699 |
+
/**
|
| 1700 |
+
* Schema for multiple-selection enumeration with display titles for each option.
|
| 1701 |
+
*/
|
| 1702 |
+
export const TitledMultiSelectEnumSchemaSchema = z.object({
|
| 1703 |
+
type: z.literal('array'),
|
| 1704 |
+
title: z.string().optional(),
|
| 1705 |
+
description: z.string().optional(),
|
| 1706 |
+
minItems: z.number().optional(),
|
| 1707 |
+
maxItems: z.number().optional(),
|
| 1708 |
+
items: z.object({
|
| 1709 |
+
anyOf: z.array(z.object({
|
| 1710 |
+
const: z.string(),
|
| 1711 |
+
title: z.string()
|
| 1712 |
+
}))
|
| 1713 |
+
}),
|
| 1714 |
+
default: z.array(z.string()).optional()
|
| 1715 |
+
});
|
| 1716 |
+
/**
|
| 1717 |
+
* Combined schema for multiple-selection enumeration
|
| 1718 |
+
*/
|
| 1719 |
+
export const MultiSelectEnumSchemaSchema = z.union([UntitledMultiSelectEnumSchemaSchema, TitledMultiSelectEnumSchemaSchema]);
|
| 1720 |
+
/**
|
| 1721 |
+
* Primitive schema definition for enum fields.
|
| 1722 |
+
*/
|
| 1723 |
+
export const EnumSchemaSchema = z.union([LegacyTitledEnumSchemaSchema, SingleSelectEnumSchemaSchema, MultiSelectEnumSchemaSchema]);
|
| 1724 |
+
/**
|
| 1725 |
+
* Union of all primitive schema definitions.
|
| 1726 |
+
*/
|
| 1727 |
+
export const PrimitiveSchemaDefinitionSchema = z.union([EnumSchemaSchema, BooleanSchemaSchema, StringSchemaSchema, NumberSchemaSchema]);
|
| 1728 |
+
/**
|
| 1729 |
+
* Parameters for an `elicitation/create` request for form-based elicitation.
|
| 1730 |
+
*/
|
| 1731 |
+
export const ElicitRequestFormParamsSchema = TaskAugmentedRequestParamsSchema.extend({
|
| 1732 |
+
/**
|
| 1733 |
+
* The elicitation mode.
|
| 1734 |
+
*
|
| 1735 |
+
* Optional for backward compatibility. Clients MUST treat missing mode as "form".
|
| 1736 |
+
*/
|
| 1737 |
+
mode: z.literal('form').optional(),
|
| 1738 |
+
/**
|
| 1739 |
+
* The message to present to the user describing what information is being requested.
|
| 1740 |
+
*/
|
| 1741 |
+
message: z.string(),
|
| 1742 |
+
/**
|
| 1743 |
+
* A restricted subset of JSON Schema.
|
| 1744 |
+
* Only top-level properties are allowed, without nesting.
|
| 1745 |
+
*/
|
| 1746 |
+
requestedSchema: z.object({
|
| 1747 |
+
type: z.literal('object'),
|
| 1748 |
+
properties: z.record(z.string(), PrimitiveSchemaDefinitionSchema),
|
| 1749 |
+
required: z.array(z.string()).optional()
|
| 1750 |
+
})
|
| 1751 |
+
});
|
| 1752 |
+
/**
|
| 1753 |
+
* Parameters for an `elicitation/create` request for URL-based elicitation.
|
| 1754 |
+
*/
|
| 1755 |
+
export const ElicitRequestURLParamsSchema = TaskAugmentedRequestParamsSchema.extend({
|
| 1756 |
+
/**
|
| 1757 |
+
* The elicitation mode.
|
| 1758 |
+
*/
|
| 1759 |
+
mode: z.literal('url'),
|
| 1760 |
+
/**
|
| 1761 |
+
* The message to present to the user explaining why the interaction is needed.
|
| 1762 |
+
*/
|
| 1763 |
+
message: z.string(),
|
| 1764 |
+
/**
|
| 1765 |
+
* The ID of the elicitation, which must be unique within the context of the server.
|
| 1766 |
+
* The client MUST treat this ID as an opaque value.
|
| 1767 |
+
*/
|
| 1768 |
+
elicitationId: z.string(),
|
| 1769 |
+
/**
|
| 1770 |
+
* The URL that the user should navigate to.
|
| 1771 |
+
*/
|
| 1772 |
+
url: z.string().url()
|
| 1773 |
+
});
|
| 1774 |
+
/**
|
| 1775 |
+
* The parameters for a request to elicit additional information from the user via the client.
|
| 1776 |
+
*/
|
| 1777 |
+
export const ElicitRequestParamsSchema = z.union([ElicitRequestFormParamsSchema, ElicitRequestURLParamsSchema]);
|
| 1778 |
+
/**
|
| 1779 |
+
* A request from the server to elicit user input via the client.
|
| 1780 |
+
* The client should present the message and form fields to the user (form mode)
|
| 1781 |
+
* or navigate to a URL (URL mode).
|
| 1782 |
+
*/
|
| 1783 |
+
export const ElicitRequestSchema = RequestSchema.extend({
|
| 1784 |
+
method: z.literal('elicitation/create'),
|
| 1785 |
+
params: ElicitRequestParamsSchema
|
| 1786 |
+
});
|
| 1787 |
+
/**
|
| 1788 |
+
* Parameters for a `notifications/elicitation/complete` notification.
|
| 1789 |
+
*
|
| 1790 |
+
* @category notifications/elicitation/complete
|
| 1791 |
+
*/
|
| 1792 |
+
export const ElicitationCompleteNotificationParamsSchema = NotificationsParamsSchema.extend({
|
| 1793 |
+
/**
|
| 1794 |
+
* The ID of the elicitation that completed.
|
| 1795 |
+
*/
|
| 1796 |
+
elicitationId: z.string()
|
| 1797 |
+
});
|
| 1798 |
+
/**
|
| 1799 |
+
* A notification from the server to the client, informing it of a completion of an out-of-band elicitation request.
|
| 1800 |
+
*
|
| 1801 |
+
* @category notifications/elicitation/complete
|
| 1802 |
+
*/
|
| 1803 |
+
export const ElicitationCompleteNotificationSchema = NotificationSchema.extend({
|
| 1804 |
+
method: z.literal('notifications/elicitation/complete'),
|
| 1805 |
+
params: ElicitationCompleteNotificationParamsSchema
|
| 1806 |
+
});
|
| 1807 |
+
/**
|
| 1808 |
+
* The client's response to an elicitation/create request from the server.
|
| 1809 |
+
*/
|
| 1810 |
+
export const ElicitResultSchema = ResultSchema.extend({
|
| 1811 |
+
/**
|
| 1812 |
+
* The user action in response to the elicitation.
|
| 1813 |
+
* - "accept": User submitted the form/confirmed the action
|
| 1814 |
+
* - "decline": User explicitly decline the action
|
| 1815 |
+
* - "cancel": User dismissed without making an explicit choice
|
| 1816 |
+
*/
|
| 1817 |
+
action: z.enum(['accept', 'decline', 'cancel']),
|
| 1818 |
+
/**
|
| 1819 |
+
* The submitted form data, only present when action is "accept".
|
| 1820 |
+
* Contains values matching the requested schema.
|
| 1821 |
+
* Per MCP spec, content is "typically omitted" for decline/cancel actions.
|
| 1822 |
+
* We normalize null to undefined for leniency while maintaining type compatibility.
|
| 1823 |
+
*/
|
| 1824 |
+
content: z.preprocess(val => (val === null ? undefined : val), z.record(z.string(), z.union([z.string(), z.number(), z.boolean(), z.array(z.string())])).optional())
|
| 1825 |
+
});
|
| 1826 |
+
/* Autocomplete */
|
| 1827 |
+
/**
|
| 1828 |
+
* A reference to a resource or resource template definition.
|
| 1829 |
+
*/
|
| 1830 |
+
export const ResourceTemplateReferenceSchema = z.object({
|
| 1831 |
+
type: z.literal('ref/resource'),
|
| 1832 |
+
/**
|
| 1833 |
+
* The URI or URI template of the resource.
|
| 1834 |
+
*/
|
| 1835 |
+
uri: z.string()
|
| 1836 |
+
});
|
| 1837 |
+
/**
|
| 1838 |
+
* @deprecated Use ResourceTemplateReferenceSchema instead
|
| 1839 |
+
*/
|
| 1840 |
+
export const ResourceReferenceSchema = ResourceTemplateReferenceSchema;
|
| 1841 |
+
/**
|
| 1842 |
+
* Identifies a prompt.
|
| 1843 |
+
*/
|
| 1844 |
+
export const PromptReferenceSchema = z.object({
|
| 1845 |
+
type: z.literal('ref/prompt'),
|
| 1846 |
+
/**
|
| 1847 |
+
* The name of the prompt or prompt template
|
| 1848 |
+
*/
|
| 1849 |
+
name: z.string()
|
| 1850 |
+
});
|
| 1851 |
+
/**
|
| 1852 |
+
* Parameters for a `completion/complete` request.
|
| 1853 |
+
*/
|
| 1854 |
+
export const CompleteRequestParamsSchema = BaseRequestParamsSchema.extend({
|
| 1855 |
+
ref: z.union([PromptReferenceSchema, ResourceTemplateReferenceSchema]),
|
| 1856 |
+
/**
|
| 1857 |
+
* The argument's information
|
| 1858 |
+
*/
|
| 1859 |
+
argument: z.object({
|
| 1860 |
+
/**
|
| 1861 |
+
* The name of the argument
|
| 1862 |
+
*/
|
| 1863 |
+
name: z.string(),
|
| 1864 |
+
/**
|
| 1865 |
+
* The value of the argument to use for completion matching.
|
| 1866 |
+
*/
|
| 1867 |
+
value: z.string()
|
| 1868 |
+
}),
|
| 1869 |
+
context: z
|
| 1870 |
+
.object({
|
| 1871 |
+
/**
|
| 1872 |
+
* Previously-resolved variables in a URI template or prompt.
|
| 1873 |
+
*/
|
| 1874 |
+
arguments: z.record(z.string(), z.string()).optional()
|
| 1875 |
+
})
|
| 1876 |
+
.optional()
|
| 1877 |
+
});
|
| 1878 |
+
/**
|
| 1879 |
+
* A request from the client to the server, to ask for completion options.
|
| 1880 |
+
*/
|
| 1881 |
+
export const CompleteRequestSchema = RequestSchema.extend({
|
| 1882 |
+
method: z.literal('completion/complete'),
|
| 1883 |
+
params: CompleteRequestParamsSchema
|
| 1884 |
+
});
|
| 1885 |
+
export function assertCompleteRequestPrompt(request) {
|
| 1886 |
+
if (request.params.ref.type !== 'ref/prompt') {
|
| 1887 |
+
throw new TypeError(`Expected CompleteRequestPrompt, but got ${request.params.ref.type}`);
|
| 1888 |
+
}
|
| 1889 |
+
void request;
|
| 1890 |
+
}
|
| 1891 |
+
export function assertCompleteRequestResourceTemplate(request) {
|
| 1892 |
+
if (request.params.ref.type !== 'ref/resource') {
|
| 1893 |
+
throw new TypeError(`Expected CompleteRequestResourceTemplate, but got ${request.params.ref.type}`);
|
| 1894 |
+
}
|
| 1895 |
+
void request;
|
| 1896 |
+
}
|
| 1897 |
+
/**
|
| 1898 |
+
* The server's response to a completion/complete request
|
| 1899 |
+
*/
|
| 1900 |
+
export const CompleteResultSchema = ResultSchema.extend({
|
| 1901 |
+
completion: z.looseObject({
|
| 1902 |
+
/**
|
| 1903 |
+
* An array of completion values. Must not exceed 100 items.
|
| 1904 |
+
*/
|
| 1905 |
+
values: z.array(z.string()).max(100),
|
| 1906 |
+
/**
|
| 1907 |
+
* The total number of completion options available. This can exceed the number of values actually sent in the response.
|
| 1908 |
+
*/
|
| 1909 |
+
total: z.optional(z.number().int()),
|
| 1910 |
+
/**
|
| 1911 |
+
* Indicates whether there are additional completion options beyond those provided in the current response, even if the exact total is unknown.
|
| 1912 |
+
*/
|
| 1913 |
+
hasMore: z.optional(z.boolean())
|
| 1914 |
+
})
|
| 1915 |
+
});
|
| 1916 |
+
/* Roots */
|
| 1917 |
+
/**
|
| 1918 |
+
* Represents a root directory or file that the server can operate on.
|
| 1919 |
+
*/
|
| 1920 |
+
export const RootSchema = z.object({
|
| 1921 |
+
/**
|
| 1922 |
+
* The URI identifying the root. This *must* start with file:// for now.
|
| 1923 |
+
*/
|
| 1924 |
+
uri: z.string().startsWith('file://'),
|
| 1925 |
+
/**
|
| 1926 |
+
* An optional name for the root.
|
| 1927 |
+
*/
|
| 1928 |
+
name: z.string().optional(),
|
| 1929 |
+
/**
|
| 1930 |
+
* See [MCP specification](https://github.com/modelcontextprotocol/modelcontextprotocol/blob/47339c03c143bb4ec01a26e721a1b8fe66634ebe/docs/specification/draft/basic/index.mdx#general-fields)
|
| 1931 |
+
* for notes on _meta usage.
|
| 1932 |
+
*/
|
| 1933 |
+
_meta: z.record(z.string(), z.unknown()).optional()
|
| 1934 |
+
});
|
| 1935 |
+
/**
|
| 1936 |
+
* Sent from the server to request a list of root URIs from the client.
|
| 1937 |
+
*/
|
| 1938 |
+
export const ListRootsRequestSchema = RequestSchema.extend({
|
| 1939 |
+
method: z.literal('roots/list'),
|
| 1940 |
+
params: BaseRequestParamsSchema.optional()
|
| 1941 |
+
});
|
| 1942 |
+
/**
|
| 1943 |
+
* The client's response to a roots/list request from the server.
|
| 1944 |
+
*/
|
| 1945 |
+
export const ListRootsResultSchema = ResultSchema.extend({
|
| 1946 |
+
roots: z.array(RootSchema)
|
| 1947 |
+
});
|
| 1948 |
+
/**
|
| 1949 |
+
* A notification from the client to the server, informing it that the list of roots has changed.
|
| 1950 |
+
*/
|
| 1951 |
+
export const RootsListChangedNotificationSchema = NotificationSchema.extend({
|
| 1952 |
+
method: z.literal('notifications/roots/list_changed'),
|
| 1953 |
+
params: NotificationsParamsSchema.optional()
|
| 1954 |
+
});
|
| 1955 |
+
/* Client messages */
|
| 1956 |
+
export const ClientRequestSchema = z.union([
|
| 1957 |
+
PingRequestSchema,
|
| 1958 |
+
InitializeRequestSchema,
|
| 1959 |
+
CompleteRequestSchema,
|
| 1960 |
+
SetLevelRequestSchema,
|
| 1961 |
+
GetPromptRequestSchema,
|
| 1962 |
+
ListPromptsRequestSchema,
|
| 1963 |
+
ListResourcesRequestSchema,
|
| 1964 |
+
ListResourceTemplatesRequestSchema,
|
| 1965 |
+
ReadResourceRequestSchema,
|
| 1966 |
+
SubscribeRequestSchema,
|
| 1967 |
+
UnsubscribeRequestSchema,
|
| 1968 |
+
CallToolRequestSchema,
|
| 1969 |
+
ListToolsRequestSchema,
|
| 1970 |
+
GetTaskRequestSchema,
|
| 1971 |
+
GetTaskPayloadRequestSchema,
|
| 1972 |
+
ListTasksRequestSchema,
|
| 1973 |
+
CancelTaskRequestSchema
|
| 1974 |
+
]);
|
| 1975 |
+
export const ClientNotificationSchema = z.union([
|
| 1976 |
+
CancelledNotificationSchema,
|
| 1977 |
+
ProgressNotificationSchema,
|
| 1978 |
+
InitializedNotificationSchema,
|
| 1979 |
+
RootsListChangedNotificationSchema,
|
| 1980 |
+
TaskStatusNotificationSchema
|
| 1981 |
+
]);
|
| 1982 |
+
export const ClientResultSchema = z.union([
|
| 1983 |
+
EmptyResultSchema,
|
| 1984 |
+
CreateMessageResultSchema,
|
| 1985 |
+
CreateMessageResultWithToolsSchema,
|
| 1986 |
+
ElicitResultSchema,
|
| 1987 |
+
ListRootsResultSchema,
|
| 1988 |
+
GetTaskResultSchema,
|
| 1989 |
+
ListTasksResultSchema,
|
| 1990 |
+
CreateTaskResultSchema
|
| 1991 |
+
]);
|
| 1992 |
+
/* Server messages */
|
| 1993 |
+
export const ServerRequestSchema = z.union([
|
| 1994 |
+
PingRequestSchema,
|
| 1995 |
+
CreateMessageRequestSchema,
|
| 1996 |
+
ElicitRequestSchema,
|
| 1997 |
+
ListRootsRequestSchema,
|
| 1998 |
+
GetTaskRequestSchema,
|
| 1999 |
+
GetTaskPayloadRequestSchema,
|
| 2000 |
+
ListTasksRequestSchema,
|
| 2001 |
+
CancelTaskRequestSchema
|
| 2002 |
+
]);
|
| 2003 |
+
export const ServerNotificationSchema = z.union([
|
| 2004 |
+
CancelledNotificationSchema,
|
| 2005 |
+
ProgressNotificationSchema,
|
| 2006 |
+
LoggingMessageNotificationSchema,
|
| 2007 |
+
ResourceUpdatedNotificationSchema,
|
| 2008 |
+
ResourceListChangedNotificationSchema,
|
| 2009 |
+
ToolListChangedNotificationSchema,
|
| 2010 |
+
PromptListChangedNotificationSchema,
|
| 2011 |
+
TaskStatusNotificationSchema,
|
| 2012 |
+
ElicitationCompleteNotificationSchema
|
| 2013 |
+
]);
|
| 2014 |
+
export const ServerResultSchema = z.union([
|
| 2015 |
+
EmptyResultSchema,
|
| 2016 |
+
InitializeResultSchema,
|
| 2017 |
+
CompleteResultSchema,
|
| 2018 |
+
GetPromptResultSchema,
|
| 2019 |
+
ListPromptsResultSchema,
|
| 2020 |
+
ListResourcesResultSchema,
|
| 2021 |
+
ListResourceTemplatesResultSchema,
|
| 2022 |
+
ReadResourceResultSchema,
|
| 2023 |
+
CallToolResultSchema,
|
| 2024 |
+
ListToolsResultSchema,
|
| 2025 |
+
GetTaskResultSchema,
|
| 2026 |
+
ListTasksResultSchema,
|
| 2027 |
+
CreateTaskResultSchema
|
| 2028 |
+
]);
|
| 2029 |
+
export class McpError extends Error {
|
| 2030 |
+
constructor(code, message, data) {
|
| 2031 |
+
super(`MCP error ${code}: ${message}`);
|
| 2032 |
+
this.code = code;
|
| 2033 |
+
this.data = data;
|
| 2034 |
+
this.name = 'McpError';
|
| 2035 |
+
}
|
| 2036 |
+
/**
|
| 2037 |
+
* Factory method to create the appropriate error type based on the error code and data
|
| 2038 |
+
*/
|
| 2039 |
+
static fromError(code, message, data) {
|
| 2040 |
+
// Check for specific error types
|
| 2041 |
+
if (code === ErrorCode.UrlElicitationRequired && data) {
|
| 2042 |
+
const errorData = data;
|
| 2043 |
+
if (errorData.elicitations) {
|
| 2044 |
+
return new UrlElicitationRequiredError(errorData.elicitations, message);
|
| 2045 |
+
}
|
| 2046 |
+
}
|
| 2047 |
+
// Default to generic McpError
|
| 2048 |
+
return new McpError(code, message, data);
|
| 2049 |
+
}
|
| 2050 |
+
}
|
| 2051 |
+
/**
|
| 2052 |
+
* Specialized error type when a tool requires a URL mode elicitation.
|
| 2053 |
+
* This makes it nicer for the client to handle since there is specific data to work with instead of just a code to check against.
|
| 2054 |
+
*/
|
| 2055 |
+
export class UrlElicitationRequiredError extends McpError {
|
| 2056 |
+
constructor(elicitations, message = `URL elicitation${elicitations.length > 1 ? 's' : ''} required`) {
|
| 2057 |
+
super(ErrorCode.UrlElicitationRequired, message, {
|
| 2058 |
+
elicitations: elicitations
|
| 2059 |
+
});
|
| 2060 |
+
}
|
| 2061 |
+
get elicitations() {
|
| 2062 |
+
return this.data?.elicitations ?? [];
|
| 2063 |
+
}
|
| 2064 |
+
}
|
| 2065 |
+
//# sourceMappingURL=types.js.map
|
loan-advisor-chatgpt-app/node_modules/@modelcontextprotocol/sdk/dist/esm/types.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../src/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAG5B,MAAM,CAAC,MAAM,uBAAuB,GAAG,YAAY,CAAC;AACpD,MAAM,CA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
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
/**
|
| 2 |
+
* AJV-based JSON Schema validator provider
|
| 3 |
+
*/
|
| 4 |
+
import Ajv from 'ajv';
|
| 5 |
+
import type { JsonSchemaType, JsonSchemaValidator, jsonSchemaValidator } from './types.js';
|
| 6 |
+
/**
|
| 7 |
+
* @example
|
| 8 |
+
* ```typescript
|
| 9 |
+
* // Use with default AJV instance (recommended)
|
| 10 |
+
* import { AjvJsonSchemaValidator } from '@modelcontextprotocol/sdk/validation/ajv';
|
| 11 |
+
* const validator = new AjvJsonSchemaValidator();
|
| 12 |
+
*
|
| 13 |
+
* // Use with custom AJV instance
|
| 14 |
+
* import { Ajv } from 'ajv';
|
| 15 |
+
* const ajv = new Ajv({ strict: true, allErrors: true });
|
| 16 |
+
* const validator = new AjvJsonSchemaValidator(ajv);
|
| 17 |
+
* ```
|
| 18 |
+
*/
|
| 19 |
+
export declare class AjvJsonSchemaValidator implements jsonSchemaValidator {
|
| 20 |
+
private _ajv;
|
| 21 |
+
/**
|
| 22 |
+
* Create an AJV validator
|
| 23 |
+
*
|
| 24 |
+
* @param ajv - Optional pre-configured AJV instance. If not provided, a default instance will be created.
|
| 25 |
+
*
|
| 26 |
+
* @example
|
| 27 |
+
* ```typescript
|
| 28 |
+
* // Use default configuration (recommended for most cases)
|
| 29 |
+
* import { AjvJsonSchemaValidator } from '@modelcontextprotocol/sdk/validation/ajv';
|
| 30 |
+
* const validator = new AjvJsonSchemaValidator();
|
| 31 |
+
*
|
| 32 |
+
* // Or provide custom AJV instance for advanced configuration
|
| 33 |
+
* import { Ajv } from 'ajv';
|
| 34 |
+
* import addFormats from 'ajv-formats';
|
| 35 |
+
*
|
| 36 |
+
* const ajv = new Ajv({ validateFormats: true });
|
| 37 |
+
* addFormats(ajv);
|
| 38 |
+
* const validator = new AjvJsonSchemaValidator(ajv);
|
| 39 |
+
* ```
|
| 40 |
+
*/
|
| 41 |
+
constructor(ajv?: Ajv);
|
| 42 |
+
/**
|
| 43 |
+
* Create a validator for the given JSON Schema
|
| 44 |
+
*
|
| 45 |
+
* The validator is compiled once and can be reused multiple times.
|
| 46 |
+
* If the schema has an $id, it will be cached by AJV automatically.
|
| 47 |
+
*
|
| 48 |
+
* @param schema - Standard JSON Schema object
|
| 49 |
+
* @returns A validator function that validates input data
|
| 50 |
+
*/
|
| 51 |
+
getValidator<T>(schema: JsonSchemaType): JsonSchemaValidator<T>;
|
| 52 |
+
}
|
| 53 |
+
//# sourceMappingURL=ajv-provider.d.ts.map
|
loan-advisor-chatgpt-app/node_modules/@modelcontextprotocol/sdk/dist/esm/validation/ajv-provider.d.ts.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
{"version":3,"file":"ajv-provider.d.ts","sourceRoot":"","sources":["../../../src/validation/ajv-provider.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,GAAG,MAAM,KAAK,CAAC;AAEtB,OAAO,KAAK,EAAE,cAAc,EAAE,mBAAmB,EAA6B,mBAAmB,EAAE,MAAM,YAAY,CAAC;AAgBtH;;;;;;;;;;;;GAYG;AACH,qBAAa,sBAAuB,YAAW,mBAAmB;IAC9D,OAAO,CAAC,IAAI,CAAM;IAElB;;;;;;;;;;;;;;;;;;;OAmBG;gBACS,GAAG,CAAC,EAAE,GAAG;IAIrB;;;;;;;;OAQG;IACH,YAAY,CAAC,CAAC,EAAE,MAAM,EAAE,cAAc,GAAG,mBAAmB,CAAC,CAAC,CAAC;CAyBlE"}
|
loan-advisor-chatgpt-app/node_modules/@modelcontextprotocol/sdk/dist/esm/validation/ajv-provider.js
ADDED
|
@@ -0,0 +1,87 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
/**
|
| 2 |
+
* AJV-based JSON Schema validator provider
|
| 3 |
+
*/
|
| 4 |
+
import Ajv from 'ajv';
|
| 5 |
+
import _addFormats from 'ajv-formats';
|
| 6 |
+
function createDefaultAjvInstance() {
|
| 7 |
+
const ajv = new Ajv({
|
| 8 |
+
strict: false,
|
| 9 |
+
validateFormats: true,
|
| 10 |
+
validateSchema: false,
|
| 11 |
+
allErrors: true
|
| 12 |
+
});
|
| 13 |
+
const addFormats = _addFormats;
|
| 14 |
+
addFormats(ajv);
|
| 15 |
+
return ajv;
|
| 16 |
+
}
|
| 17 |
+
/**
|
| 18 |
+
* @example
|
| 19 |
+
* ```typescript
|
| 20 |
+
* // Use with default AJV instance (recommended)
|
| 21 |
+
* import { AjvJsonSchemaValidator } from '@modelcontextprotocol/sdk/validation/ajv';
|
| 22 |
+
* const validator = new AjvJsonSchemaValidator();
|
| 23 |
+
*
|
| 24 |
+
* // Use with custom AJV instance
|
| 25 |
+
* import { Ajv } from 'ajv';
|
| 26 |
+
* const ajv = new Ajv({ strict: true, allErrors: true });
|
| 27 |
+
* const validator = new AjvJsonSchemaValidator(ajv);
|
| 28 |
+
* ```
|
| 29 |
+
*/
|
| 30 |
+
export class AjvJsonSchemaValidator {
|
| 31 |
+
/**
|
| 32 |
+
* Create an AJV validator
|
| 33 |
+
*
|
| 34 |
+
* @param ajv - Optional pre-configured AJV instance. If not provided, a default instance will be created.
|
| 35 |
+
*
|
| 36 |
+
* @example
|
| 37 |
+
* ```typescript
|
| 38 |
+
* // Use default configuration (recommended for most cases)
|
| 39 |
+
* import { AjvJsonSchemaValidator } from '@modelcontextprotocol/sdk/validation/ajv';
|
| 40 |
+
* const validator = new AjvJsonSchemaValidator();
|
| 41 |
+
*
|
| 42 |
+
* // Or provide custom AJV instance for advanced configuration
|
| 43 |
+
* import { Ajv } from 'ajv';
|
| 44 |
+
* import addFormats from 'ajv-formats';
|
| 45 |
+
*
|
| 46 |
+
* const ajv = new Ajv({ validateFormats: true });
|
| 47 |
+
* addFormats(ajv);
|
| 48 |
+
* const validator = new AjvJsonSchemaValidator(ajv);
|
| 49 |
+
* ```
|
| 50 |
+
*/
|
| 51 |
+
constructor(ajv) {
|
| 52 |
+
this._ajv = ajv ?? createDefaultAjvInstance();
|
| 53 |
+
}
|
| 54 |
+
/**
|
| 55 |
+
* Create a validator for the given JSON Schema
|
| 56 |
+
*
|
| 57 |
+
* The validator is compiled once and can be reused multiple times.
|
| 58 |
+
* If the schema has an $id, it will be cached by AJV automatically.
|
| 59 |
+
*
|
| 60 |
+
* @param schema - Standard JSON Schema object
|
| 61 |
+
* @returns A validator function that validates input data
|
| 62 |
+
*/
|
| 63 |
+
getValidator(schema) {
|
| 64 |
+
// Check if schema has $id and is already compiled/cached
|
| 65 |
+
const ajvValidator = '$id' in schema && typeof schema.$id === 'string'
|
| 66 |
+
? (this._ajv.getSchema(schema.$id) ?? this._ajv.compile(schema))
|
| 67 |
+
: this._ajv.compile(schema);
|
| 68 |
+
return (input) => {
|
| 69 |
+
const valid = ajvValidator(input);
|
| 70 |
+
if (valid) {
|
| 71 |
+
return {
|
| 72 |
+
valid: true,
|
| 73 |
+
data: input,
|
| 74 |
+
errorMessage: undefined
|
| 75 |
+
};
|
| 76 |
+
}
|
| 77 |
+
else {
|
| 78 |
+
return {
|
| 79 |
+
valid: false,
|
| 80 |
+
data: undefined,
|
| 81 |
+
errorMessage: this._ajv.errorsText(ajvValidator.errors)
|
| 82 |
+
};
|
| 83 |
+
}
|
| 84 |
+
};
|
| 85 |
+
}
|
| 86 |
+
}
|
| 87 |
+
//# sourceMappingURL=ajv-provider.js.map
|
loan-advisor-chatgpt-app/node_modules/@modelcontextprotocol/sdk/dist/esm/validation/ajv-provider.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
{"version":3,"file":"ajv-provider.js","sourceRoot":"","sources":["../../../src/validation/ajv-provider.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,GAAG,MAAM,KAAK,CAAC;AACtB,OAAO,WAAW,MAAM,aAAa,CAAC;AAGtC,SAAS,wBAAwB;IAC7B,MAAM,GAAG,GAAG,IAAI,GAAG,CAAC;QAChB,MAAM,EAAE,KAAK;QACb,eAAe,EAAE,IAAI;QACrB,cAAc,EAAE,KAAK;QACrB,SAAS,EAAE,IAAI;KAClB,CAAC,CAAC;IAEH,MAAM,UAAU,GAAG,WAAoD,CAAC;IACxE,UAAU,CAAC,GAAG,CAAC,CAAC;IAEhB,OAAO,GAAG,CAAC;AACf,CAAC;AAED;;;;;;;;;;;;GAYG;AACH,MAAM,OAAO,sBAAsB;IAG/B;;;;;;;;;;;;;;;;;;;OAmBG;IACH,YAAY,GAAS;QACjB,IAAI,CAAC,IAAI,GAAG,GAAG,IAAI,wBAAwB,EAAE,CAAC;IAClD,CAAC;IAED;;;;;;;;OAQG;IACH,YAAY,CAAI,MAAsB;QAClC,yDAAyD;QACzD,MAAM,YAAY,GACd,KAAK,IAAI,MAAM,IAAI,OAAO,MAAM,CAAC,GAAG,KAAK,QAAQ;YAC7C,CAAC,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,SAAS,CAAC,MAAM,CAAC,GAAG,CAAC,IAAI,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,CAAC;YAChE,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,CAAC;QAEpC,OAAO,CAAC,KAAc,EAAgC,EAAE;YACpD,MAAM,KAAK,GAAG,YAAY,CAAC,KAAK,CAAC,CAAC;YAElC,IAAI,KAAK,EAAE,CAAC;gBACR,OAAO;oBACH,KAAK,EAAE,IAAI;oBACX,IAAI,EAAE,KAAU;oBAChB,YAAY,EAAE,SAAS;iBAC1B,CAAC;YACN,CAAC;iBAAM,CAAC;gBACJ,OAAO;oBACH,KAAK,EAAE,KAAK;oBACZ,IAAI,EAAE,SAAS;oBACf,YAAY,EAAE,IAAI,CAAC,IAAI,CAAC,UAAU,CAAC,YAAY,CAAC,MAAM,CAAC;iBAC1D,CAAC;YACN,CAAC;QACL,CAAC,CAAC;IACN,CAAC;CACJ"}
|
loan-advisor-chatgpt-app/node_modules/@modelcontextprotocol/sdk/dist/esm/validation/cfworker-provider.d.ts
ADDED
|
@@ -0,0 +1,51 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
/**
|
| 2 |
+
* Cloudflare Worker-compatible JSON Schema validator provider
|
| 3 |
+
*
|
| 4 |
+
* This provider uses @cfworker/json-schema for validation without code generation,
|
| 5 |
+
* making it compatible with edge runtimes like Cloudflare Workers that restrict
|
| 6 |
+
* eval and new Function.
|
| 7 |
+
*/
|
| 8 |
+
import type { JsonSchemaType, JsonSchemaValidator, jsonSchemaValidator } from './types.js';
|
| 9 |
+
/**
|
| 10 |
+
* JSON Schema draft version supported by @cfworker/json-schema
|
| 11 |
+
*/
|
| 12 |
+
export type CfWorkerSchemaDraft = '4' | '7' | '2019-09' | '2020-12';
|
| 13 |
+
/**
|
| 14 |
+
*
|
| 15 |
+
* @example
|
| 16 |
+
* ```typescript
|
| 17 |
+
* // Use with default configuration (2020-12, shortcircuit)
|
| 18 |
+
* const validator = new CfWorkerJsonSchemaValidator();
|
| 19 |
+
*
|
| 20 |
+
* // Use with custom configuration
|
| 21 |
+
* const validator = new CfWorkerJsonSchemaValidator({
|
| 22 |
+
* draft: '2020-12',
|
| 23 |
+
* shortcircuit: false // Report all errors
|
| 24 |
+
* });
|
| 25 |
+
* ```
|
| 26 |
+
*/
|
| 27 |
+
export declare class CfWorkerJsonSchemaValidator implements jsonSchemaValidator {
|
| 28 |
+
private shortcircuit;
|
| 29 |
+
private draft;
|
| 30 |
+
/**
|
| 31 |
+
* Create a validator
|
| 32 |
+
*
|
| 33 |
+
* @param options - Configuration options
|
| 34 |
+
* @param options.shortcircuit - If true, stop validation after first error (default: true)
|
| 35 |
+
* @param options.draft - JSON Schema draft version to use (default: '2020-12')
|
| 36 |
+
*/
|
| 37 |
+
constructor(options?: {
|
| 38 |
+
shortcircuit?: boolean;
|
| 39 |
+
draft?: CfWorkerSchemaDraft;
|
| 40 |
+
});
|
| 41 |
+
/**
|
| 42 |
+
* Create a validator for the given JSON Schema
|
| 43 |
+
*
|
| 44 |
+
* Unlike AJV, this validator is not cached internally
|
| 45 |
+
*
|
| 46 |
+
* @param schema - Standard JSON Schema object
|
| 47 |
+
* @returns A validator function that validates input data
|
| 48 |
+
*/
|
| 49 |
+
getValidator<T>(schema: JsonSchemaType): JsonSchemaValidator<T>;
|
| 50 |
+
}
|
| 51 |
+
//# sourceMappingURL=cfworker-provider.d.ts.map
|
loan-advisor-chatgpt-app/node_modules/@modelcontextprotocol/sdk/dist/esm/validation/cfworker-provider.d.ts.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
{"version":3,"file":"cfworker-provider.d.ts","sourceRoot":"","sources":["../../../src/validation/cfworker-provider.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAGH,OAAO,KAAK,EAAE,cAAc,EAAE,mBAAmB,EAA6B,mBAAmB,EAAE,MAAM,YAAY,CAAC;AAEtH;;GAEG;AACH,MAAM,MAAM,mBAAmB,GAAG,GAAG,GAAG,GAAG,GAAG,SAAS,GAAG,SAAS,CAAC;AAEpE;;;;;;;;;;;;;GAaG;AACH,qBAAa,2BAA4B,YAAW,mBAAmB;IACnE,OAAO,CAAC,YAAY,CAAU;IAC9B,OAAO,CAAC,KAAK,CAAsB;IAEnC;;;;;;OAMG;gBACS,OAAO,CAAC,EAAE;QAAE,YAAY,CAAC,EAAE,OAAO,CAAC;QAAC,KAAK,CAAC,EAAE,mBAAmB,CAAA;KAAE;IAK7E;;;;;;;OAOG;IACH,YAAY,CAAC,CAAC,EAAE,MAAM,EAAE,cAAc,GAAG,mBAAmB,CAAC,CAAC,CAAC;CAsBlE"}
|
loan-advisor-chatgpt-app/node_modules/@modelcontextprotocol/sdk/dist/esm/validation/cfworker-provider.js
ADDED
|
@@ -0,0 +1,65 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
/**
|
| 2 |
+
* Cloudflare Worker-compatible JSON Schema validator provider
|
| 3 |
+
*
|
| 4 |
+
* This provider uses @cfworker/json-schema for validation without code generation,
|
| 5 |
+
* making it compatible with edge runtimes like Cloudflare Workers that restrict
|
| 6 |
+
* eval and new Function.
|
| 7 |
+
*/
|
| 8 |
+
import { Validator } from '@cfworker/json-schema';
|
| 9 |
+
/**
|
| 10 |
+
*
|
| 11 |
+
* @example
|
| 12 |
+
* ```typescript
|
| 13 |
+
* // Use with default configuration (2020-12, shortcircuit)
|
| 14 |
+
* const validator = new CfWorkerJsonSchemaValidator();
|
| 15 |
+
*
|
| 16 |
+
* // Use with custom configuration
|
| 17 |
+
* const validator = new CfWorkerJsonSchemaValidator({
|
| 18 |
+
* draft: '2020-12',
|
| 19 |
+
* shortcircuit: false // Report all errors
|
| 20 |
+
* });
|
| 21 |
+
* ```
|
| 22 |
+
*/
|
| 23 |
+
export class CfWorkerJsonSchemaValidator {
|
| 24 |
+
/**
|
| 25 |
+
* Create a validator
|
| 26 |
+
*
|
| 27 |
+
* @param options - Configuration options
|
| 28 |
+
* @param options.shortcircuit - If true, stop validation after first error (default: true)
|
| 29 |
+
* @param options.draft - JSON Schema draft version to use (default: '2020-12')
|
| 30 |
+
*/
|
| 31 |
+
constructor(options) {
|
| 32 |
+
this.shortcircuit = options?.shortcircuit ?? true;
|
| 33 |
+
this.draft = options?.draft ?? '2020-12';
|
| 34 |
+
}
|
| 35 |
+
/**
|
| 36 |
+
* Create a validator for the given JSON Schema
|
| 37 |
+
*
|
| 38 |
+
* Unlike AJV, this validator is not cached internally
|
| 39 |
+
*
|
| 40 |
+
* @param schema - Standard JSON Schema object
|
| 41 |
+
* @returns A validator function that validates input data
|
| 42 |
+
*/
|
| 43 |
+
getValidator(schema) {
|
| 44 |
+
// Cast to the cfworker Schema type - our JsonSchemaType is structurally compatible
|
| 45 |
+
const validator = new Validator(schema, this.draft, this.shortcircuit);
|
| 46 |
+
return (input) => {
|
| 47 |
+
const result = validator.validate(input);
|
| 48 |
+
if (result.valid) {
|
| 49 |
+
return {
|
| 50 |
+
valid: true,
|
| 51 |
+
data: input,
|
| 52 |
+
errorMessage: undefined
|
| 53 |
+
};
|
| 54 |
+
}
|
| 55 |
+
else {
|
| 56 |
+
return {
|
| 57 |
+
valid: false,
|
| 58 |
+
data: undefined,
|
| 59 |
+
errorMessage: result.errors.map(err => `${err.instanceLocation}: ${err.error}`).join('; ')
|
| 60 |
+
};
|
| 61 |
+
}
|
| 62 |
+
};
|
| 63 |
+
}
|
| 64 |
+
}
|
| 65 |
+
//# sourceMappingURL=cfworker-provider.js.map
|
loan-advisor-chatgpt-app/node_modules/@modelcontextprotocol/sdk/dist/esm/validation/cfworker-provider.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
{"version":3,"file":"cfworker-provider.js","sourceRoot":"","sources":["../../../src/validation/cfworker-provider.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAC;AAQlD;;;;;;;;;;;;;GAaG;AACH,MAAM,OAAO,2BAA2B;IAIpC;;;;;;OAMG;IACH,YAAY,OAAiE;QACzE,IAAI,CAAC,YAAY,GAAG,OAAO,EAAE,YAAY,IAAI,IAAI,CAAC;QAClD,IAAI,CAAC,KAAK,GAAG,OAAO,EAAE,KAAK,IAAI,SAAS,CAAC;IAC7C,CAAC;IAED;;;;;;;OAOG;IACH,YAAY,CAAI,MAAsB;QAClC,mFAAmF;QACnF,MAAM,SAAS,GAAG,IAAI,SAAS,CAAC,MAAoD,EAAE,IAAI,CAAC,KAAK,EAAE,IAAI,CAAC,YAAY,CAAC,CAAC;QAErH,OAAO,CAAC,KAAc,EAAgC,EAAE;YACpD,MAAM,MAAM,GAAG,SAAS,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC;YAEzC,IAAI,MAAM,CAAC,KAAK,EAAE,CAAC;gBACf,OAAO;oBACH,KAAK,EAAE,IAAI;oBACX,IAAI,EAAE,KAAU;oBAChB,YAAY,EAAE,SAAS;iBAC1B,CAAC;YACN,CAAC;iBAAM,CAAC;gBACJ,OAAO;oBACH,KAAK,EAAE,KAAK;oBACZ,IAAI,EAAE,SAAS;oBACf,YAAY,EAAE,MAAM,CAAC,MAAM,CAAC,GAAG,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,GAAG,CAAC,gBAAgB,KAAK,GAAG,CAAC,KAAK,EAAE,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC;iBAC7F,CAAC;YACN,CAAC;QACL,CAAC,CAAC;IACN,CAAC;CACJ"}
|
loan-advisor-chatgpt-app/node_modules/@modelcontextprotocol/sdk/dist/esm/validation/index.d.ts
ADDED
|
@@ -0,0 +1,29 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
/**
|
| 2 |
+
* JSON Schema validation
|
| 3 |
+
*
|
| 4 |
+
* This module provides configurable JSON Schema validation for the MCP SDK.
|
| 5 |
+
* Choose a validator based on your runtime environment:
|
| 6 |
+
*
|
| 7 |
+
* - AjvJsonSchemaValidator: Best for Node.js (default, fastest)
|
| 8 |
+
* Import from: @modelcontextprotocol/sdk/validation/ajv
|
| 9 |
+
* Requires peer dependencies: ajv, ajv-formats
|
| 10 |
+
*
|
| 11 |
+
* - CfWorkerJsonSchemaValidator: Best for edge runtimes
|
| 12 |
+
* Import from: @modelcontextprotocol/sdk/validation/cfworker
|
| 13 |
+
* Requires peer dependency: @cfworker/json-schema
|
| 14 |
+
*
|
| 15 |
+
* @example
|
| 16 |
+
* ```typescript
|
| 17 |
+
* // For Node.js with AJV
|
| 18 |
+
* import { AjvJsonSchemaValidator } from '@modelcontextprotocol/sdk/validation/ajv';
|
| 19 |
+
* const validator = new AjvJsonSchemaValidator();
|
| 20 |
+
*
|
| 21 |
+
* // For Cloudflare Workers
|
| 22 |
+
* import { CfWorkerJsonSchemaValidator } from '@modelcontextprotocol/sdk/validation/cfworker';
|
| 23 |
+
* const validator = new CfWorkerJsonSchemaValidator();
|
| 24 |
+
* ```
|
| 25 |
+
*
|
| 26 |
+
* @module validation
|
| 27 |
+
*/
|
| 28 |
+
export type { JsonSchemaType, JsonSchemaValidator, JsonSchemaValidatorResult, jsonSchemaValidator } from './types.js';
|
| 29 |
+
//# sourceMappingURL=index.d.ts.map
|
loan-advisor-chatgpt-app/node_modules/@modelcontextprotocol/sdk/dist/esm/validation/index.d.ts.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/validation/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;AAGH,YAAY,EAAE,cAAc,EAAE,mBAAmB,EAAE,yBAAyB,EAAE,mBAAmB,EAAE,MAAM,YAAY,CAAC"}
|
loan-advisor-chatgpt-app/node_modules/@modelcontextprotocol/sdk/dist/esm/validation/index.js
ADDED
|
@@ -0,0 +1,29 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
/**
|
| 2 |
+
* JSON Schema validation
|
| 3 |
+
*
|
| 4 |
+
* This module provides configurable JSON Schema validation for the MCP SDK.
|
| 5 |
+
* Choose a validator based on your runtime environment:
|
| 6 |
+
*
|
| 7 |
+
* - AjvJsonSchemaValidator: Best for Node.js (default, fastest)
|
| 8 |
+
* Import from: @modelcontextprotocol/sdk/validation/ajv
|
| 9 |
+
* Requires peer dependencies: ajv, ajv-formats
|
| 10 |
+
*
|
| 11 |
+
* - CfWorkerJsonSchemaValidator: Best for edge runtimes
|
| 12 |
+
* Import from: @modelcontextprotocol/sdk/validation/cfworker
|
| 13 |
+
* Requires peer dependency: @cfworker/json-schema
|
| 14 |
+
*
|
| 15 |
+
* @example
|
| 16 |
+
* ```typescript
|
| 17 |
+
* // For Node.js with AJV
|
| 18 |
+
* import { AjvJsonSchemaValidator } from '@modelcontextprotocol/sdk/validation/ajv';
|
| 19 |
+
* const validator = new AjvJsonSchemaValidator();
|
| 20 |
+
*
|
| 21 |
+
* // For Cloudflare Workers
|
| 22 |
+
* import { CfWorkerJsonSchemaValidator } from '@modelcontextprotocol/sdk/validation/cfworker';
|
| 23 |
+
* const validator = new CfWorkerJsonSchemaValidator();
|
| 24 |
+
* ```
|
| 25 |
+
*
|
| 26 |
+
* @module validation
|
| 27 |
+
*/
|
| 28 |
+
export {};
|
| 29 |
+
//# sourceMappingURL=index.js.map
|
loan-advisor-chatgpt-app/node_modules/@modelcontextprotocol/sdk/dist/esm/validation/index.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/validation/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG"}
|
loan-advisor-chatgpt-app/node_modules/@modelcontextprotocol/sdk/dist/esm/validation/types.d.ts
ADDED
|
@@ -0,0 +1,65 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import type { JSONSchema } from 'json-schema-typed';
|
| 2 |
+
/**
|
| 3 |
+
* JSON Schema type definition (JSON Schema Draft 2020-12)
|
| 4 |
+
*
|
| 5 |
+
* This uses the object form of JSON Schema (excluding boolean schemas).
|
| 6 |
+
* While `true` and `false` are valid JSON Schemas, this SDK uses the
|
| 7 |
+
* object form for practical type safety.
|
| 8 |
+
*
|
| 9 |
+
* Re-exported from json-schema-typed for convenience.
|
| 10 |
+
* @see https://json-schema.org/draft/2020-12/json-schema-core.html
|
| 11 |
+
*/
|
| 12 |
+
export type JsonSchemaType = JSONSchema.Interface;
|
| 13 |
+
/**
|
| 14 |
+
* Result of a JSON Schema validation operation
|
| 15 |
+
*/
|
| 16 |
+
export type JsonSchemaValidatorResult<T> = {
|
| 17 |
+
valid: true;
|
| 18 |
+
data: T;
|
| 19 |
+
errorMessage: undefined;
|
| 20 |
+
} | {
|
| 21 |
+
valid: false;
|
| 22 |
+
data: undefined;
|
| 23 |
+
errorMessage: string;
|
| 24 |
+
};
|
| 25 |
+
/**
|
| 26 |
+
* A validator function that validates data against a JSON Schema
|
| 27 |
+
*/
|
| 28 |
+
export type JsonSchemaValidator<T> = (input: unknown) => JsonSchemaValidatorResult<T>;
|
| 29 |
+
/**
|
| 30 |
+
* Provider interface for creating validators from JSON Schemas
|
| 31 |
+
*
|
| 32 |
+
* This is the main extension point for custom validator implementations.
|
| 33 |
+
* Implementations should:
|
| 34 |
+
* - Support JSON Schema Draft 2020-12 (or be compatible with it)
|
| 35 |
+
* - Return validator functions that can be called multiple times
|
| 36 |
+
* - Handle schema compilation/caching internally
|
| 37 |
+
* - Provide clear error messages on validation failure
|
| 38 |
+
*
|
| 39 |
+
* @example
|
| 40 |
+
* ```typescript
|
| 41 |
+
* class MyValidatorProvider implements jsonSchemaValidator {
|
| 42 |
+
* getValidator<T>(schema: JsonSchemaType<T>): JsonSchemaValidator<T> {
|
| 43 |
+
* // Compile/cache validator from schema
|
| 44 |
+
* return (input: unknown) => {
|
| 45 |
+
* // Validate input against schema
|
| 46 |
+
* if (valid) {
|
| 47 |
+
* return { valid: true, data: input as T, errorMessage: undefined };
|
| 48 |
+
* } else {
|
| 49 |
+
* return { valid: false, data: undefined, errorMessage: 'Error details' };
|
| 50 |
+
* }
|
| 51 |
+
* };
|
| 52 |
+
* }
|
| 53 |
+
* }
|
| 54 |
+
* ```
|
| 55 |
+
*/
|
| 56 |
+
export interface jsonSchemaValidator {
|
| 57 |
+
/**
|
| 58 |
+
* Create a validator for the given JSON Schema
|
| 59 |
+
*
|
| 60 |
+
* @param schema - Standard JSON Schema object
|
| 61 |
+
* @returns A validator function that can be called multiple times
|
| 62 |
+
*/
|
| 63 |
+
getValidator<T>(schema: JsonSchemaType): JsonSchemaValidator<T>;
|
| 64 |
+
}
|
| 65 |
+
//# sourceMappingURL=types.d.ts.map
|
loan-advisor-chatgpt-app/node_modules/@modelcontextprotocol/sdk/dist/esm/validation/types.d.ts.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/validation/types.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAEpD;;;;;;;;;GASG;AACH,MAAM,MAAM,cAAc,GAAG,UAAU,CAAC,SAAS,CAAC;AAElD;;GAEG;AACH,MAAM,MAAM,yBAAyB,CAAC,CAAC,IACjC;IAAE,KAAK,EAAE,IAAI,CAAC;IAAC,IAAI,EAAE,CAAC,CAAC;IAAC,YAAY,EAAE,SAAS,CAAA;CAAE,GACjD;IAAE,KAAK,EAAE,KAAK,CAAC;IAAC,IAAI,EAAE,SAAS,CAAC;IAAC,YAAY,EAAE,MAAM,CAAA;CAAE,CAAC;AAE9D;;GAEG;AACH,MAAM,MAAM,mBAAmB,CAAC,CAAC,IAAI,CAAC,KAAK,EAAE,OAAO,KAAK,yBAAyB,CAAC,CAAC,CAAC,CAAC;AAEtF;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;AACH,MAAM,WAAW,mBAAmB;IAChC;;;;;OAKG;IACH,YAAY,CAAC,CAAC,EAAE,MAAM,EAAE,cAAc,GAAG,mBAAmB,CAAC,CAAC,CAAC,CAAC;CACnE"}
|
loan-advisor-chatgpt-app/node_modules/@modelcontextprotocol/sdk/dist/esm/validation/types.js
ADDED
|
@@ -0,0 +1,2 @@
|
|
|
|
|
|
|
|
|
|
| 1 |
+
export {};
|
| 2 |
+
//# sourceMappingURL=types.js.map
|
loan-advisor-chatgpt-app/node_modules/@modelcontextprotocol/sdk/dist/esm/validation/types.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../../src/validation/types.ts"],"names":[],"mappings":""}
|
loan-advisor-chatgpt-app/node_modules/@modelcontextprotocol/sdk/package.json
ADDED
|
@@ -0,0 +1,164 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"name": "@modelcontextprotocol/sdk",
|
| 3 |
+
"version": "1.29.0",
|
| 4 |
+
"description": "Model Context Protocol implementation for TypeScript",
|
| 5 |
+
"license": "MIT",
|
| 6 |
+
"author": "Anthropic, PBC (https://anthropic.com)",
|
| 7 |
+
"homepage": "https://modelcontextprotocol.io",
|
| 8 |
+
"bugs": "https://github.com/modelcontextprotocol/typescript-sdk/issues",
|
| 9 |
+
"type": "module",
|
| 10 |
+
"repository": {
|
| 11 |
+
"type": "git",
|
| 12 |
+
"url": "git+https://github.com/modelcontextprotocol/typescript-sdk.git"
|
| 13 |
+
},
|
| 14 |
+
"engines": {
|
| 15 |
+
"node": ">=18"
|
| 16 |
+
},
|
| 17 |
+
"keywords": [
|
| 18 |
+
"modelcontextprotocol",
|
| 19 |
+
"mcp"
|
| 20 |
+
],
|
| 21 |
+
"exports": {
|
| 22 |
+
".": {
|
| 23 |
+
"types": "./dist/esm/index.d.ts",
|
| 24 |
+
"import": "./dist/esm/index.js",
|
| 25 |
+
"require": "./dist/cjs/index.js"
|
| 26 |
+
},
|
| 27 |
+
"./client": {
|
| 28 |
+
"types": "./dist/esm/client/index.d.ts",
|
| 29 |
+
"import": "./dist/esm/client/index.js",
|
| 30 |
+
"require": "./dist/cjs/client/index.js"
|
| 31 |
+
},
|
| 32 |
+
"./server": {
|
| 33 |
+
"types": "./dist/esm/server/index.d.ts",
|
| 34 |
+
"import": "./dist/esm/server/index.js",
|
| 35 |
+
"require": "./dist/cjs/server/index.js"
|
| 36 |
+
},
|
| 37 |
+
"./validation": {
|
| 38 |
+
"types": "./dist/esm/validation/index.d.ts",
|
| 39 |
+
"import": "./dist/esm/validation/index.js",
|
| 40 |
+
"require": "./dist/cjs/validation/index.js"
|
| 41 |
+
},
|
| 42 |
+
"./validation/ajv": {
|
| 43 |
+
"types": "./dist/esm/validation/ajv-provider.d.ts",
|
| 44 |
+
"import": "./dist/esm/validation/ajv-provider.js",
|
| 45 |
+
"require": "./dist/cjs/validation/ajv-provider.js"
|
| 46 |
+
},
|
| 47 |
+
"./validation/cfworker": {
|
| 48 |
+
"types": "./dist/esm/validation/cfworker-provider.d.ts",
|
| 49 |
+
"import": "./dist/esm/validation/cfworker-provider.js",
|
| 50 |
+
"require": "./dist/cjs/validation/cfworker-provider.js"
|
| 51 |
+
},
|
| 52 |
+
"./experimental": {
|
| 53 |
+
"types": "./dist/esm/experimental/index.d.ts",
|
| 54 |
+
"import": "./dist/esm/experimental/index.js",
|
| 55 |
+
"require": "./dist/cjs/experimental/index.js"
|
| 56 |
+
},
|
| 57 |
+
"./experimental/tasks": {
|
| 58 |
+
"types": "./dist/esm/experimental/tasks/index.d.ts",
|
| 59 |
+
"import": "./dist/esm/experimental/tasks/index.js",
|
| 60 |
+
"require": "./dist/cjs/experimental/tasks/index.js"
|
| 61 |
+
},
|
| 62 |
+
"./*": {
|
| 63 |
+
"types": "./dist/esm/*.d.ts",
|
| 64 |
+
"import": "./dist/esm/*",
|
| 65 |
+
"require": "./dist/cjs/*"
|
| 66 |
+
}
|
| 67 |
+
},
|
| 68 |
+
"typesVersions": {
|
| 69 |
+
"*": {
|
| 70 |
+
"*": [
|
| 71 |
+
"./dist/esm/*"
|
| 72 |
+
]
|
| 73 |
+
}
|
| 74 |
+
},
|
| 75 |
+
"files": [
|
| 76 |
+
"dist"
|
| 77 |
+
],
|
| 78 |
+
"scripts": {
|
| 79 |
+
"fetch:spec-types": "tsx scripts/fetch-spec-types.ts",
|
| 80 |
+
"typecheck": "tsgo --noEmit",
|
| 81 |
+
"build": "npm run build:esm && npm run build:cjs",
|
| 82 |
+
"build:esm": "mkdir -p dist/esm && echo '{\"type\": \"module\"}' > dist/esm/package.json && tsc -p tsconfig.prod.json",
|
| 83 |
+
"build:esm:w": "npm run build:esm -- -w",
|
| 84 |
+
"build:cjs": "mkdir -p dist/cjs && echo '{\"type\": \"commonjs\"}' > dist/cjs/package.json && tsc -p tsconfig.cjs.json",
|
| 85 |
+
"build:cjs:w": "npm run build:cjs -- -w",
|
| 86 |
+
"examples:simple-server:w": "tsx --watch src/examples/server/simpleStreamableHttp.ts --oauth",
|
| 87 |
+
"prepack": "npm run build:esm && npm run build:cjs",
|
| 88 |
+
"lint": "eslint src/ && prettier --check .",
|
| 89 |
+
"lint:fix": "eslint src/ --fix && prettier --write .",
|
| 90 |
+
"check": "npm run typecheck && npm run lint",
|
| 91 |
+
"test": "vitest run",
|
| 92 |
+
"test:watch": "vitest",
|
| 93 |
+
"start": "npm run server",
|
| 94 |
+
"server": "tsx watch --clear-screen=false scripts/cli.ts server",
|
| 95 |
+
"client": "tsx scripts/cli.ts client",
|
| 96 |
+
"test:conformance:server": "test/conformance/scripts/run-server-conformance.sh --expected-failures test/conformance/conformance-baseline.yml",
|
| 97 |
+
"test:conformance:server:all": "test/conformance/scripts/run-server-conformance.sh --suite all --expected-failures test/conformance/conformance-baseline.yml",
|
| 98 |
+
"test:conformance:server:run": "npx tsx test/conformance/src/everythingServer.ts",
|
| 99 |
+
"test:conformance:client": "npx @modelcontextprotocol/conformance client --command 'npx tsx test/conformance/src/everythingClient.ts' --expected-failures test/conformance/conformance-baseline.yml",
|
| 100 |
+
"test:conformance:client:all": "npx @modelcontextprotocol/conformance client --command 'npx tsx test/conformance/src/everythingClient.ts' --suite all --expected-failures test/conformance/conformance-baseline.yml"
|
| 101 |
+
},
|
| 102 |
+
"dependencies": {
|
| 103 |
+
"@hono/node-server": "^1.19.9",
|
| 104 |
+
"ajv": "^8.17.1",
|
| 105 |
+
"ajv-formats": "^3.0.1",
|
| 106 |
+
"content-type": "^1.0.5",
|
| 107 |
+
"cors": "^2.8.5",
|
| 108 |
+
"cross-spawn": "^7.0.5",
|
| 109 |
+
"eventsource": "^3.0.2",
|
| 110 |
+
"eventsource-parser": "^3.0.0",
|
| 111 |
+
"express": "^5.2.1",
|
| 112 |
+
"express-rate-limit": "^8.2.1",
|
| 113 |
+
"hono": "^4.11.4",
|
| 114 |
+
"jose": "^6.1.3",
|
| 115 |
+
"json-schema-typed": "^8.0.2",
|
| 116 |
+
"pkce-challenge": "^5.0.0",
|
| 117 |
+
"raw-body": "^3.0.0",
|
| 118 |
+
"zod": "^3.25 || ^4.0",
|
| 119 |
+
"zod-to-json-schema": "^3.25.1"
|
| 120 |
+
},
|
| 121 |
+
"peerDependencies": {
|
| 122 |
+
"@cfworker/json-schema": "^4.1.1",
|
| 123 |
+
"zod": "^3.25 || ^4.0"
|
| 124 |
+
},
|
| 125 |
+
"peerDependenciesMeta": {
|
| 126 |
+
"@cfworker/json-schema": {
|
| 127 |
+
"optional": true
|
| 128 |
+
},
|
| 129 |
+
"zod": {
|
| 130 |
+
"optional": false
|
| 131 |
+
}
|
| 132 |
+
},
|
| 133 |
+
"devDependencies": {
|
| 134 |
+
"@cfworker/json-schema": "^4.1.1",
|
| 135 |
+
"@eslint/js": "^9.39.1",
|
| 136 |
+
"@modelcontextprotocol/conformance": "^0.1.14",
|
| 137 |
+
"@types/content-type": "^1.1.8",
|
| 138 |
+
"@types/cors": "^2.8.17",
|
| 139 |
+
"@types/cross-spawn": "^6.0.6",
|
| 140 |
+
"@types/eventsource": "^1.1.15",
|
| 141 |
+
"@types/express": "^5.0.0",
|
| 142 |
+
"@types/express-serve-static-core": "^5.1.0",
|
| 143 |
+
"@types/node": "^22.12.0",
|
| 144 |
+
"@types/supertest": "^6.0.2",
|
| 145 |
+
"@types/ws": "^8.5.12",
|
| 146 |
+
"@typescript/native-preview": "^7.0.0-dev.20251103.1",
|
| 147 |
+
"eslint": "^9.8.0",
|
| 148 |
+
"eslint-config-prettier": "^10.1.8",
|
| 149 |
+
"eslint-plugin-n": "^17.23.1",
|
| 150 |
+
"prettier": "3.6.2",
|
| 151 |
+
"supertest": "^7.0.0",
|
| 152 |
+
"tsx": "^4.16.5",
|
| 153 |
+
"typescript": "^5.5.4",
|
| 154 |
+
"typescript-eslint": "^8.48.1",
|
| 155 |
+
"vitest": "^4.0.8",
|
| 156 |
+
"ws": "^8.18.0"
|
| 157 |
+
},
|
| 158 |
+
"resolutions": {
|
| 159 |
+
"strip-ansi": "6.0.1"
|
| 160 |
+
},
|
| 161 |
+
"overrides": {
|
| 162 |
+
"qs": "6.14.1"
|
| 163 |
+
}
|
| 164 |
+
}
|
loan-advisor-chatgpt-app/node_modules/@openai/apps-sdk-ui/dist/es/components/Alert/Alert.js
ADDED
|
@@ -0,0 +1,39 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
"use client";
|
| 2 |
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
| 3 |
+
import clsx from "clsx";
|
| 4 |
+
import { useEffect, useRef, useState } from "react";
|
| 5 |
+
import { mergeRefs } from "react-merge-refs";
|
| 6 |
+
import { useResizeObserver } from "usehooks-ts";
|
| 7 |
+
import {} from "../../types";
|
| 8 |
+
import { CheckCircle, Info, Warning } from "../Icon";
|
| 9 |
+
import s from "./Alert.module.css";
|
| 10 |
+
export const Alert = ({ color = "primary", variant = "outline", title, description, actions, actionsPlacement, indicator, className, actionsClassName, ref, ...restProps }) => {
|
| 11 |
+
const containerRef = useRef(null);
|
| 12 |
+
const actionsRef = useRef(null);
|
| 13 |
+
const [actionsAutoPlacement, setActionsAutoPlacement] = useState("end");
|
| 14 |
+
// @ts-expect-error -- Type issue in usehooks-ts
|
| 15 |
+
const { width: containerWidth } = useResizeObserver({ ref: containerRef });
|
| 16 |
+
useEffect(() => {
|
| 17 |
+
const actionsWidth = actionsRef.current?.clientWidth ?? 0;
|
| 18 |
+
if (actionsWidth && containerWidth) {
|
| 19 |
+
// If actions are larger than a third of the container width, wrap them.
|
| 20 |
+
const placement = actionsWidth > containerWidth / 3 ? "bottom" : "end";
|
| 21 |
+
setActionsAutoPlacement(placement);
|
| 22 |
+
}
|
| 23 |
+
}, [containerWidth]);
|
| 24 |
+
return (_jsxs("div", { ref: mergeRefs([ref, containerRef]), className: clsx(s.Alert, className), "data-variant": variant, "data-color": color, role: color === "danger" ? "alert" : undefined, "data-actions-placement": actionsPlacement ?? actionsAutoPlacement, ...restProps, children: [indicator === false ? null : (_jsx("div", { className: s.Indicator, children: indicator ?? _jsx(Indicator, { color: color }) })), _jsxs("div", { className: s.Content, children: [_jsxs("div", { className: s.Message, children: [title && _jsx("div", { className: s.Title, children: title }), description && _jsx("div", { className: s.Description, children: description })] }), actions && (_jsx("div", { className: clsx(s.Actions, actionsClassName), ref: actionsRef, children: actions }))] })] }));
|
| 25 |
+
};
|
| 26 |
+
export const Indicator = ({ color }) => {
|
| 27 |
+
// Choose a default icon based on the color (which signals intention)
|
| 28 |
+
switch (color) {
|
| 29 |
+
case "warning":
|
| 30 |
+
case "caution":
|
| 31 |
+
case "danger":
|
| 32 |
+
return _jsx(Warning, {});
|
| 33 |
+
case "success":
|
| 34 |
+
return _jsx(CheckCircle, {});
|
| 35 |
+
default:
|
| 36 |
+
return _jsx(Info, {});
|
| 37 |
+
}
|
| 38 |
+
};
|
| 39 |
+
//# sourceMappingURL=Alert.js.map
|
loan-advisor-chatgpt-app/node_modules/@openai/apps-sdk-ui/dist/es/components/Alert/Alert.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
{"version":3,"file":"Alert.js","sourceRoot":"","sources":["../../../../src/components/Alert/Alert.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAA;;AAEZ,OAAO,IAAI,MAAM,MAAM,CAAA;AACvB,OAAO,EAA4B,SAAS,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAA;AAC7E,OAAO,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAA;AAC5C,OAAO,EAAE,iBAAiB,EAAE,MAAM,aAAa,CAAA;AAC/C,OAAO,EAAsC,MAAM,aAAa,CAAA;AAChE,OAAO,EAAE,WAAW,EAAE,IAAI,EAAE,OAAO,EAAE,MAAM,SAAS,CAAA;AACpD,OAAO,CAAC,MAAM,oBAAoB,CAAA;AAiClC,MAAM,CAAC,MAAM,KAAK,GAAG,CAAC,EACpB,KAAK,GAAG,SAAS,EACjB,OAAO,GAAG,SAAS,EACnB,KAAK,EACL,WAAW,EACX,OAAO,EACP,gBAAgB,EAChB,SAAS,EACT,SAAS,EACT,gBAAgB,EAChB,GAAG,EACH,GAAG,SAAS,E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eAAK,SAAS,EAAE,CAAC,CAAC,OAAO,aACtB,KAAK,IAAI,cAAK,SAAS,EAAE,CAAC,CAAC,KAAK,YAAG,KAAK,GAAO,EAC/C,WAAW,IAAI,cAAK,SAAS,EAAE,CAAC,CAAC,WAAW,YAAG,WAAW,GAAO,IAC9D,EACL,OAAO,IAAI,CACV,cAAK,SAAS,EAAE,IAAI,CAAC,CAAC,CAAC,OAAO,EAAE,gBAAgB,CAAC,EAAE,GAAG,EAAE,UAAU,YAC/D,OAAO,GACJ,CACP,IACG,IACF,CACP,CAAA;AACH,CAAC,CAAA;AAED,MAAM,CAAC,MAAM,SAAS,GAAG,CAAC,EAAE,KAAK,EAAkC,EAAE,EAAE;IACrE,qEAAqE;IACrE,QAAQ,KAAK,EAAE,CAAC;QACd,KAAK,SAAS,CAAC;QACf,KAAK,SAAS,CAAC;QACf,KAAK,QAAQ;YACX,OAAO,KAAC,OAAO,KAAG,CAAA;QACpB,KAAK,SAAS;YACZ,OAAO,KAAC,WAAW,KAAG,CAAA;QACxB;YACE,OAAO,KAAC,IAAI,KAAG,CAAA;IACnB,CAAC;AACH,CAAC,CAAA","sourcesContent":["\"use client\"\n\nimport clsx from \"clsx\"\nimport { type ReactNode, type Ref, useEffect, useRef, useState } from \"react\"\nimport { mergeRefs } from \"react-merge-refs\"\nimport { useResizeObserver } from \"usehooks-ts\"\nimport { type SemanticColors, type Variants } from \"../../types\"\nimport { CheckCircle, Info, Warning } from \"../Icon\"\nimport s from \"./Alert.module.css\"\n\nexport type AlertProps = {\n /**\n * Color for the button\n * @default primary\n */\n color?: SemanticColors<\n \"primary\" | \"danger\" | \"success\" | \"info\" | \"discovery\" | \"caution\" | \"warning\"\n >\n /**\n * Style variant for the Button\n * @default fill\n */\n variant?: Variants<\"solid\" | \"soft\" | \"outline\">\n /** Title displayed in the alert. */\n title?: ReactNode\n /** Description text displayed in the alert */\n description?: ReactNode\n /** Actions associated with the Alert. */\n actions?: ReactNode\n /** Sets the placement of `actions` always on the end or the bottom. Default behavior is automatic placement based on sizing. */\n actionsPlacement?: \"end\" | \"bottom\"\n /** Optional override for the default indicator of the alert. When `false`, no indicator is shown. */\n indicator?: ReactNode | false\n /** Class applied to the alert container */\n className?: string\n /** Class applied to the actions container */\n actionsClassName?: string\n /** Ref applied to the alert container */\n ref?: Ref<HTMLDivElement>\n}\n\nexport const Alert = ({\n color = \"primary\",\n variant = \"outline\",\n title,\n description,\n actions,\n actionsPlacement,\n indicator,\n className,\n actionsClassName,\n ref,\n ...restProps\n}: AlertProps) => {\n const containerRef = useRef<HTMLDivElement>(null)\n const actionsRef = useRef<HTMLDivElement>(null)\n const [actionsAutoPlacement, setActionsAutoPlacement] = useState<\"end\" | \"bottom\">(\"end\")\n // @ts-expect-error -- Type issue in usehooks-ts\n const { width: containerWidth } = useResizeObserver({ ref: containerRef })\n\n useEffect(() => {\n const actionsWidth = actionsRef.current?.clientWidth ?? 0\n\n if (actionsWidth && containerWidth) {\n // If actions are larger than a third of the container width, wrap them.\n const placement = actionsWidth > containerWidth / 3 ? \"bottom\" : \"end\"\n setActionsAutoPlacement(placement)\n }\n }, [containerWidth])\n\n return (\n <div\n ref={mergeRefs([ref, containerRef])}\n className={clsx(s.Alert, className)}\n data-variant={variant}\n data-color={color}\n role={color === \"danger\" ? \"alert\" : undefined}\n data-actions-placement={actionsPlacement ?? actionsAutoPlacement}\n {...restProps}\n >\n {indicator === false ? null : (\n <div className={s.Indicator}>{indicator ?? <Indicator color={color} />}</div>\n )}\n <div className={s.Content}>\n <div className={s.Message}>\n {title && <div className={s.Title}>{title}</div>}\n {description && <div className={s.Description}>{description}</div>}\n </div>\n {actions && (\n <div className={clsx(s.Actions, actionsClassName)} ref={actionsRef}>\n {actions}\n </div>\n )}\n </div>\n </div>\n )\n}\n\nexport const Indicator = ({ color }: { color: AlertProps[\"color\"] }) => {\n // Choose a default icon based on the color (which signals intention)\n switch (color) {\n case \"warning\":\n case \"caution\":\n case \"danger\":\n return <Warning />\n case \"success\":\n return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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
@layer components {.Alert {
|
| 2 |
+
display: flex;
|
| 3 |
+
align-items: center;
|
| 4 |
+
gap: var(--alert-gap);
|
| 5 |
+
width: 100%;
|
| 6 |
+
padding: var(--alert-gutter);
|
| 7 |
+
border-radius: var(--alert-border-radius);
|
| 8 |
+
font-size: var(--alert-font-size);
|
| 9 |
+
line-height: var(--alert-line-height);
|
| 10 |
+
}
|
| 11 |
+
|
| 12 |
+
.Alert:where([data-actions-placement="bottom"]) {
|
| 13 |
+
align-items: flex-start;
|
| 14 |
+
}
|
| 15 |
+
|
| 16 |
+
/* =============================================
|
| 17 |
+
Variants
|
| 18 |
+
============================================= */
|
| 19 |
+
.Alert[data-variant="soft"] {
|
| 20 |
+
background-color: var(--alert-background-color);
|
| 21 |
+
box-shadow: 0 0 0 1px var(--alert-border-color) inset;
|
| 22 |
+
color: var(--alert-text-color);
|
| 23 |
+
}
|
| 24 |
+
|
| 25 |
+
.Alert[data-variant="soft"]:where([data-color="primary"]) {
|
| 26 |
+
--alert-background-color: var(--color-background-primary-surface);
|
| 27 |
+
--alert-border-color: var(--color-border-primary-surface);
|
| 28 |
+
--alert-text-color: var(--color-text);
|
| 29 |
+
}
|
| 30 |
+
|
| 31 |
+
.Alert[data-variant="soft"]:where([data-color="success"]) {
|
| 32 |
+
--alert-background-color: var(--color-background-success-surface);
|
| 33 |
+
--alert-border-color: var(--color-border-success-surface);
|
| 34 |
+
--alert-text-color: var(--color-text-success-surface);
|
| 35 |
+
}
|
| 36 |
+
|
| 37 |
+
.Alert[data-variant="soft"]:where([data-color="warning"]) {
|
| 38 |
+
--alert-background-color: var(--color-background-warning-surface);
|
| 39 |
+
--alert-border-color: var(--color-border-warning-surface);
|
| 40 |
+
--alert-text-color: var(--color-text-warning-surface);
|
| 41 |
+
}
|
| 42 |
+
|
| 43 |
+
.Alert[data-variant="soft"]:where([data-color="caution"]) {
|
| 44 |
+
--alert-background-color: var(--color-background-caution-surface);
|
| 45 |
+
--alert-border-color: var(--color-border-caution-surface);
|
| 46 |
+
--alert-text-color: var(--color-text-caution-surface);
|
| 47 |
+
}
|
| 48 |
+
|
| 49 |
+
.Alert[data-variant="soft"]:where([data-color="danger"]) {
|
| 50 |
+
--alert-background-color: var(--color-background-danger-surface);
|
| 51 |
+
--alert-border-color: var(--color-border-danger-surface);
|
| 52 |
+
--alert-text-color: var(--color-text-danger-surface);
|
| 53 |
+
}
|
| 54 |
+
|
| 55 |
+
.Alert[data-variant="soft"]:where([data-color="info"]) {
|
| 56 |
+
--alert-background-color: var(--color-background-info-surface);
|
| 57 |
+
--alert-border-color: var(--color-border-info-surface);
|
| 58 |
+
--alert-text-color: var(--color-text-info-surface);
|
| 59 |
+
}
|
| 60 |
+
|
| 61 |
+
.Alert[data-variant="soft"]:where([data-color="discovery"]) {
|
| 62 |
+
--alert-background-color: var(--color-background-discovery-surface);
|
| 63 |
+
--alert-border-color: var(--color-border-discovery-surface);
|
| 64 |
+
--alert-text-color: var(--color-text-discovery-surface);
|
| 65 |
+
}
|
| 66 |
+
|
| 67 |
+
.Alert[data-variant="solid"] {
|
| 68 |
+
background-color: var(--alert-background-color);
|
| 69 |
+
color: var(--alert-text-color);
|
| 70 |
+
}
|
| 71 |
+
|
| 72 |
+
.Alert[data-variant="solid"]:where([data-color="primary"]) {
|
| 73 |
+
--alert-background-color: var(--color-background-primary-solid);
|
| 74 |
+
--alert-text-color: var(--color-text-primary-solid);
|
| 75 |
+
}
|
| 76 |
+
|
| 77 |
+
.Alert[data-variant="solid"]:where([data-color="success"]) {
|
| 78 |
+
--alert-background-color: var(--color-background-success-solid);
|
| 79 |
+
--alert-text-color: var(--color-text-success-solid);
|
| 80 |
+
}
|
| 81 |
+
|
| 82 |
+
.Alert[data-variant="solid"]:where([data-color="warning"]) {
|
| 83 |
+
--alert-background-color: var(--color-background-warning-solid);
|
| 84 |
+
--alert-text-color: var(--color-text-warning-solid);
|
| 85 |
+
}
|
| 86 |
+
|
| 87 |
+
.Alert[data-variant="solid"]:where([data-color="caution"]) {
|
| 88 |
+
--alert-background-color: var(--color-background-caution-solid);
|
| 89 |
+
--alert-text-color: var(--color-text-caution-solid);
|
| 90 |
+
}
|
| 91 |
+
|
| 92 |
+
.Alert[data-variant="solid"]:where([data-color="danger"]) {
|
| 93 |
+
--alert-background-color: var(--color-background-danger-solid);
|
| 94 |
+
--alert-text-color: var(--color-text-danger-solid);
|
| 95 |
+
}
|
| 96 |
+
|
| 97 |
+
.Alert[data-variant="solid"]:where([data-color="info"]) {
|
| 98 |
+
--alert-background-color: var(--color-background-info-solid);
|
| 99 |
+
--alert-text-color: var(--color-text-info-solid);
|
| 100 |
+
}
|
| 101 |
+
|
| 102 |
+
.Alert[data-variant="solid"]:where([data-color="discovery"]) {
|
| 103 |
+
--alert-background-color: var(--color-background-discovery-solid);
|
| 104 |
+
--alert-text-color: var(--color-text-discovery-solid);
|
| 105 |
+
}
|
| 106 |
+
|
| 107 |
+
.Alert[data-variant="outline"] {
|
| 108 |
+
box-shadow: 0 0 0 1px var(--alert-border-color) inset;
|
| 109 |
+
color: var(--alert-text-color);
|
| 110 |
+
}
|
| 111 |
+
|
| 112 |
+
.Alert[data-variant="outline"]:where([data-color="primary"]) {
|
| 113 |
+
--alert-border-color: var(--color-border);
|
| 114 |
+
--alert-text-color: var(--color-text);
|
| 115 |
+
}
|
| 116 |
+
|
| 117 |
+
.Alert[data-variant="outline"]:where([data-color="success"]) {
|
| 118 |
+
--alert-border-color: var(--color-border-success-outline);
|
| 119 |
+
--alert-text-color: var(--color-text-success-outline);
|
| 120 |
+
}
|
| 121 |
+
|
| 122 |
+
.Alert[data-variant="outline"]:where([data-color="warning"]) {
|
| 123 |
+
--alert-border-color: var(--color-border-warning-outline);
|
| 124 |
+
--alert-text-color: var(--color-text-warning-outline);
|
| 125 |
+
}
|
| 126 |
+
|
| 127 |
+
.Alert[data-variant="outline"]:where([data-color="caution"]) {
|
| 128 |
+
--alert-border-color: var(--color-border-caution-outline);
|
| 129 |
+
--alert-text-color: var(--color-text-caution-outline);
|
| 130 |
+
}
|
| 131 |
+
|
| 132 |
+
.Alert[data-variant="outline"]:where([data-color="danger"]) {
|
| 133 |
+
--alert-border-color: var(--color-border-danger-outline);
|
| 134 |
+
--alert-text-color: var(--color-text-danger-outline);
|
| 135 |
+
}
|
| 136 |
+
|
| 137 |
+
.Alert[data-variant="outline"]:where([data-color="info"]) {
|
| 138 |
+
--alert-border-color: var(--color-border-info-outline);
|
| 139 |
+
--alert-text-color: var(--color-text-info-outline);
|
| 140 |
+
}
|
| 141 |
+
|
| 142 |
+
.Alert[data-variant="outline"]:where([data-color="discovery"]) {
|
| 143 |
+
--alert-border-color: var(--color-border-discovery-outline);
|
| 144 |
+
--alert-text-color: var(--color-text-discovery-outline);
|
| 145 |
+
}.Content {
|
| 146 |
+
display: flex;
|
| 147 |
+
align-items: center;
|
| 148 |
+
justify-content: space-between;
|
| 149 |
+
flex: 1;
|
| 150 |
+
min-width: 0;
|
| 151 |
+
}
|
| 152 |
+
|
| 153 |
+
:where(.Alert[data-actions-placement="bottom"]) .Content {
|
| 154 |
+
display: block;
|
| 155 |
+
}
|
| 156 |
+
.Indicator svg {
|
| 157 |
+
width: var(--alert-indicator-size, 20px);
|
| 158 |
+
height: var(--alert-indicator-size, 20px);
|
| 159 |
+
}.Message {
|
| 160 |
+
flex: 1;
|
| 161 |
+
min-width: 0;
|
| 162 |
+
}.Title {
|
| 163 |
+
font-weight: var(--alert-title-font-weight);
|
| 164 |
+
text-wrap: pretty;
|
| 165 |
+
}
|
| 166 |
+
|
| 167 |
+
/* Slight spacing when paired with a description */
|
| 168 |
+
.Title ~ .Description {
|
| 169 |
+
margin-top: 2px;
|
| 170 |
+
}.Description {
|
| 171 |
+
opacity: 1;
|
| 172 |
+
text-wrap: pretty;
|
| 173 |
+
}.Actions {
|
| 174 |
+
display: flex;
|
| 175 |
+
gap: calc(var(--spacing) * 2);
|
| 176 |
+
}
|
| 177 |
+
|
| 178 |
+
:where(.Alert[data-actions-placement="end"]) .Actions {
|
| 179 |
+
align-self: center;
|
| 180 |
+
/* Additional padding between right side or actions */
|
| 181 |
+
margin-left: var(--alert-gutter);
|
| 182 |
+
}
|
| 183 |
+
|
| 184 |
+
:where(.Alert[data-actions-placement="bottom"]) .Actions {
|
| 185 |
+
margin-top: var(--alert-gutter);
|
| 186 |
+
}
|
| 187 |
+
}
|
loan-advisor-chatgpt-app/node_modules/@openai/apps-sdk-ui/dist/es/components/Alert/index.js
ADDED
|
@@ -0,0 +1,2 @@
|
|
|
|
|
|
|
|
|
|
| 1 |
+
export { Alert } from "./Alert";
|
| 2 |
+
//# sourceMappingURL=index.js.map
|
loan-advisor-chatgpt-app/node_modules/@openai/apps-sdk-ui/dist/es/components/Alert/index.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/components/Alert/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAmB,MAAM,SAAS,CAAA","sourcesContent":["export { Alert, type AlertProps } from \"./Alert\"\n"]}
|
loan-advisor-chatgpt-app/node_modules/@openai/apps-sdk-ui/dist/es/components/AppsSDKUIProvider/AppsSDKUIContext.js
ADDED
|
@@ -0,0 +1,4 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
"use client";
|
| 2 |
+
import { createContext } from "react";
|
| 3 |
+
export const AppsSDKUIContext = createContext(null);
|
| 4 |
+
//# sourceMappingURL=AppsSDKUIContext.js.map
|
loan-advisor-chatgpt-app/node_modules/@openai/apps-sdk-ui/dist/es/components/AppsSDKUIProvider/AppsSDKUIContext.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
{"version":3,"file":"AppsSDKUIContext.js","sourceRoot":"","sources":["../../../../src/components/AppsSDKUIProvider/AppsSDKUIContext.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAA;AAEZ,OAAO,EAAsB,aAAa,EAAkC,MAAM,OAAO,CAAA;AAOzF,MAAM,CAAC,MAAM,gBAAgB,GAAG,aAAa,CAA+B,IAAI,CAAC,CAAA","sourcesContent":["\"use client\"\n\nimport { type ComponentType, createContext, type ForwardRefExoticComponent } from \"react\"\n\ntype AppsSDKUIContextValue = {\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n linkComponent: ComponentType<any> | ForwardRefExoticComponent<any> | \"a\"\n}\n\nexport const AppsSDKUIContext = createContext<AppsSDKUIContextValue | null>(null)\n"]}
|
loan-advisor-chatgpt-app/node_modules/@openai/apps-sdk-ui/dist/es/components/AppsSDKUIProvider/AppsSDKUIProvider.js
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
"use client";
|
| 2 |
+
import { jsx as _jsx } from "react/jsx-runtime";
|
| 3 |
+
import {} from "react";
|
| 4 |
+
import { AppsSDKUIContext } from "./AppsSDKUIContext";
|
| 5 |
+
/**
|
| 6 |
+
* Shared context for all Apps SDK UI components - wrap your app in this
|
| 7 |
+
* provider to use Apps SDK UI components.
|
| 8 |
+
*
|
| 9 |
+
* It's pretty thin right now, we only use it to hold onto the component you
|
| 10 |
+
* use for rendering Links, but it could be expanded in the future.
|
| 11 |
+
*/
|
| 12 |
+
export function AppsSDKUIProvider({ children, linkComponent, }) {
|
| 13 |
+
return _jsx(AppsSDKUIContext.Provider, { value: { linkComponent }, children: children });
|
| 14 |
+
}
|
| 15 |
+
//# sourceMappingURL=AppsSDKUIProvider.js.map
|
loan-advisor-chatgpt-app/node_modules/@openai/apps-sdk-ui/dist/es/components/AppsSDKUIProvider/AppsSDKUIProvider.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
{"version":3,"file":"AppsSDKUIProvider.js","sourceRoot":"","sources":["../../../../src/components/AppsSDKUIProvider/AppsSDKUIProvider.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAA;;AAEZ,OAAO,EAAsE,MAAM,OAAO,CAAA;AAC1F,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAA;AAoBrD;;;;;;GAMG;AACH,MAAM,UAAU,iBAAiB,CAAC,EAChC,QAAQ,EACR,aAAa,GAKd;IACC,OAAO,KAAC,gBAAgB,CAAC,QAAQ,IAAC,KAAK,EAAE,EAAE,aAAa,EAAE,YAAG,QAAQ,GAA6B,CAAA;AACpG,CAAC","sourcesContent":["\"use client\"\n\nimport { type ComponentType, type ForwardRefExoticComponent, type ReactNode } from \"react\"\nimport { AppsSDKUIContext } from \"./AppsSDKUIContext\"\n\n/// <reference path=\"../../global.d.ts\" />\n\ninterface DefaultConfig {\n LinkComponent: \"a\"\n}\n\ndeclare global {\n // eslint-disable-next-line @typescript-eslint/no-empty-object-type\n interface AppsSDKUIConfig {}\n}\n\n// Utility type to merge defaults with overrides. The override keys take precedence.\ntype MergeOverrides<Defaults, Overrides> = Omit<Defaults, keyof Overrides> & Overrides\n\nexport type Config = MergeOverrides<DefaultConfig, AppsSDKUIConfig>\n\nexport type LinkComponent = Config[\"LinkComponent\"]\n\n/**\n * Shared context for all Apps SDK UI components - wrap your app in this\n * provider to use Apps SDK UI components.\n *\n * It's pretty thin right now, we only use it to hold onto the component you\n * use for rendering Links, but it could be expanded in the future.\n */\nexport function AppsSDKUIProvider({\n children,\n linkComponent,\n}: {\n children: ReactNode\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n linkComponent: ComponentType<any> | ForwardRefExoticComponent<any> | \"a\"\n}) {\n return <AppsSDKUIContext.Provider value={{ linkComponent }}>{children}</AppsSDKUIContext.Provider>\n}\n"]}
|
loan-advisor-chatgpt-app/node_modules/@openai/apps-sdk-ui/dist/es/components/AppsSDKUIProvider/index.js
ADDED
|
@@ -0,0 +1,2 @@
|
|
|
|
|
|
|
|
|
|
| 1 |
+
export { AppsSDKUIProvider } from "./AppsSDKUIProvider";
|
| 2 |
+
//# sourceMappingURL=index.js.map
|
loan-advisor-chatgpt-app/node_modules/@openai/apps-sdk-ui/dist/es/components/AppsSDKUIProvider/index.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/components/AppsSDKUIProvider/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAA","sourcesContent":["export { AppsSDKUIProvider } from \"./AppsSDKUIProvider\"\n"]}
|
loan-advisor-chatgpt-app/node_modules/@openai/apps-sdk-ui/dist/es/components/AppsSDKUIProvider/internal.js
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
"use client";
|
| 2 |
+
import { useContext } from "react";
|
| 3 |
+
import { AppsSDKUIContext } from "./AppsSDKUIContext";
|
| 4 |
+
export function useLinkComponent() {
|
| 5 |
+
const context = useContext(AppsSDKUIContext);
|
| 6 |
+
return context?.linkComponent ?? "a";
|
| 7 |
+
}
|
| 8 |
+
//# sourceMappingURL=internal.js.map
|
loan-advisor-chatgpt-app/node_modules/@openai/apps-sdk-ui/dist/es/components/AppsSDKUIProvider/internal.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
{"version":3,"file":"internal.js","sourceRoot":"","sources":["../../../../src/components/AppsSDKUIProvider/internal.ts"],"names":[],"mappings":"AAAA,YAAY,CAAA;AAEZ,OAAO,EAAE,UAAU,EAAE,MAAM,OAAO,CAAA;AAClC,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAA;AAErD,MAAM,UAAU,gBAAgB;IAC9B,MAAM,OAAO,GAAG,UAAU,CAAC,gBAAgB,CAAC,CAAA;IAC5C,OAAO,OAAO,EAAE,aAAa,IAAI,GAAG,CAAA;AACtC,CAAC","sourcesContent":["\"use client\"\n\nimport { useContext } from \"react\"\nimport { AppsSDKUIContext } from \"./AppsSDKUIContext\"\n\nexport function useLinkComponent() {\n const context = useContext(AppsSDKUIContext)\n return context?.linkComponent ?? \"a\"\n}\n"]}
|
loan-advisor-chatgpt-app/node_modules/@openai/apps-sdk-ui/dist/es/components/Avatar/Avatar.js
ADDED
|
@@ -0,0 +1,63 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
"use client";
|
| 2 |
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
| 3 |
+
import { createElement as _createElement } from "react";
|
| 4 |
+
import clsx from "clsx";
|
| 5 |
+
import { useMemo, useState } from "react";
|
| 6 |
+
import { toCssVariables } from "../../lib/helpers";
|
| 7 |
+
import {} from "../../types";
|
| 8 |
+
import s from "./Avatar.module.css";
|
| 9 |
+
export const Avatar = (props) => {
|
| 10 |
+
// Validate the image url before sending to the component
|
| 11 |
+
const validImageUrl = validateImageUrl(props.imageUrl);
|
| 12 |
+
// Keying off of imageUrl allows us to refresh imageStatus automatically through React rendering
|
| 13 |
+
return _createElement(AvatarInner, { ...props, imageUrl: validImageUrl, key: validImageUrl });
|
| 14 |
+
};
|
| 15 |
+
export const AvatarInner = (props) => {
|
| 16 |
+
const { className, size, overflowCount, name, color = "secondary", variant = "soft", imageUrl, Icon,
|
| 17 |
+
// asChild support
|
| 18 |
+
...restProps } = props;
|
| 19 |
+
const [imageStatus, setImageStatus] = useState();
|
| 20 |
+
const isInteractive = !!(restProps.onPointerDown || restProps.onClick);
|
| 21 |
+
const TagName = isInteractive ? "button" : "span";
|
| 22 |
+
return (_jsx(TagName, { className: clsx(s.Avatar, className), style: toCssVariables({
|
| 23 |
+
"avatar-size": size,
|
| 24 |
+
}), role: isInteractive ? undefined : "presentation", "data-color": color, "data-variant": variant, type: isInteractive ? "button" : undefined, ...restProps, children: (() => {
|
| 25 |
+
if (imageUrl && imageStatus !== "error") {
|
| 26 |
+
return (_jsx(AvatarImage, { status: imageStatus, url: imageUrl, onError: () => setImageStatus("error"), onLoad: () => setImageStatus("loaded") }));
|
| 27 |
+
}
|
| 28 |
+
if (Icon) {
|
| 29 |
+
return _jsx(Icon, { className: s.AvatarIcon });
|
| 30 |
+
}
|
| 31 |
+
return overflowCount ? (_jsx(AvatarOverflowCount, { count: overflowCount })) : (_jsx(AvatarInitial, { name: name }));
|
| 32 |
+
})() }));
|
| 33 |
+
};
|
| 34 |
+
const validateImageUrl = (imageUrl) => {
|
| 35 |
+
if (!imageUrl) {
|
| 36 |
+
return;
|
| 37 |
+
}
|
| 38 |
+
// Avoid specific pattern of images from gravatar.com, which use a pair of initials, instead of a single initial.
|
| 39 |
+
if (imageUrl.includes("gravatar.com") && imageUrl.includes("cdn.auth0.com")) {
|
| 40 |
+
return;
|
| 41 |
+
}
|
| 42 |
+
return imageUrl;
|
| 43 |
+
};
|
| 44 |
+
const AvatarImage = ({ url, status, onLoad, onError, }) => {
|
| 45 |
+
return (_jsx("span", { className: s.AvatarImageContainer, children: _jsx("img", { src: url, className: s.AvatarImage, "data-loaded": status === "loaded" ? "" : undefined, onLoad: onLoad, onError: onError, alt: "", role: "presentation" }) }));
|
| 46 |
+
};
|
| 47 |
+
const AvatarInitial = ({ name = "" }) => {
|
| 48 |
+
const firstInitial = useMemo(() => name.charAt(0).toUpperCase(), [name]);
|
| 49 |
+
return _jsx("span", { className: s.AvatarInitial, children: firstInitial });
|
| 50 |
+
};
|
| 51 |
+
const AvatarOverflowCount = ({ count }) => {
|
| 52 |
+
const formattedCount = useMemo(() => {
|
| 53 |
+
return new Intl.NumberFormat("en", {
|
| 54 |
+
notation: "compact",
|
| 55 |
+
compactDisplay: "short",
|
| 56 |
+
maximumFractionDigits: 0,
|
| 57 |
+
})
|
| 58 |
+
.format(count)
|
| 59 |
+
.toLocaleLowerCase();
|
| 60 |
+
}, [count]);
|
| 61 |
+
return (_jsxs("span", { className: s.AvatarOverflowCount, "data-letter-count": formattedCount.length, children: [_jsx("span", { className: s.AvatarOverflowCountSymbol, children: "+" }), formattedCount] }));
|
| 62 |
+
};
|
| 63 |
+
//# sourceMappingURL=Avatar.js.map
|
loan-advisor-chatgpt-app/node_modules/@openai/apps-sdk-ui/dist/es/components/Avatar/Avatar.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
{"version":3,"file":"Avatar.js","sourceRoot":"","sources":["../../../../src/components/Avatar/Avatar.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAA;;;AAEZ,OAAO,IAAI,MAAM,MAAM,CAAA;AACvB,OAAO,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAA;AACzC,OAAO,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAA;AAClD,OAAO,EAAsC,MAAM,aAAa,CAAA;AAChE,OAAO,CAAC,MAAM,qBAAqB,CAAA;AAiCnC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AAA;AAED,MAAM,aAAa,GAAG,CAAC,EAAE,IAAI,GAAG,EAAE,EAAqB,EAAE,EAAE;IACzD,MAAM,YAAY,GAAG,OAAO,CAAC,GAAG,EAAE,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,WAAW,EAAE,EAAE,CAAC,IAAI,CAAC,CAAC,CAAA;IAExE,OAAO,eAAM,SAAS,EAAE,CAAC,CAAC,aAAa,YAAG,YAAY,GAAQ,CAAA;AAChE,CAAC,CAAA;AAED,MAAM,mBAAmB,GAAG,CAAC,EAAE,KAAK,EAAqB,EAAE,EAAE;IAC3D,MAAM,cAAc,GAAG,OAAO,CAAS,GAAG,EAAE;QAC1C,OAAO,IAAI,IAAI,CAAC,YAAY,CAAC,IAAI,EAAE;YACjC,QAAQ,EAAE,SAAS;YACnB,cAAc,EAAE,OAAO;YACvB,qBAAqB,EAAE,CAAC;SACzB,CAAC;aACC,MAAM,CAAC,KAAK,CAAC;aACb,iBAAiB,EAAE,CAAA;IACxB,CAAC,EAAE,CAAC,KAAK,CAAC,CAAC,CAAA;IAEX,OAAO,CACL,gBAAM,SAAS,EAAE,CAAC,CAAC,mBAAmB,uBAAqB,cAAc,CAAC,MAAM,aAC9E,eAAM,SAAS,EAAE,CAAC,CAAC,yBAAyB,kBAAU,EACrD,cAAc,IACV,CACR,CAAA;AACH,CAAC,CAAA","sourcesContent":["\"use client\"\n\nimport clsx from \"clsx\"\nimport { useMemo, useState } from \"react\"\nimport { toCssVariables } from \"../../lib/helpers\"\nimport { type SemanticColors, type Variants } from \"../../types\"\nimport s from \"./Avatar.module.css\"\n\ntype ImageStatus = undefined | \"error\" | \"loaded\"\n\nexport type AvatarProps = {\n /** Class name applied to the avatar */\n className?: string\n /** Size of the avatar's width & height, in pixels. */\n size?: number\n /** Display a formatted count of overflow objects. */\n overflowCount?: number\n /** Name used to display initials from */\n name?: string\n /**\n * Color used for the avatar\n * @default secondary\n */\n color?: SemanticColors<\"primary\" | \"secondary\" | \"success\" | \"info\" | \"discovery\" | \"danger\">\n /**\n * Style variant of the avatar\n * @default soft\n */\n variant?: Variants<\"soft\" | \"solid\">\n /** URL of the image to display as the avatar */\n imageUrl?: string\n /** Icon to render in the avatar circle */\n Icon?: React.ComponentType<React.SVGProps<SVGSVGElement>>\n /** Optional click handler, which also enables semantic interactions */\n onClick?: () => void\n /** Optional pointer handler, which also enables semantic interactions */\n onPointerDown?: () => void\n}\n\nexport const Avatar = (props: AvatarProps) => {\n // Validate the image url before sending to the component\n const validImageUrl = validateImageUrl(props.imageUrl)\n\n // Keying off of imageUrl allows us to refresh imageStatus automatically through React rendering\n return <AvatarInner {...props} imageUrl={validImageUrl} key={validImageUrl} />\n}\n\nexport const AvatarInner = (props: AvatarProps) => {\n const {\n className,\n size,\n overflowCount,\n name,\n color = \"secondary\",\n variant = \"soft\",\n imageUrl,\n Icon,\n // asChild support\n ...restProps\n } = props\n const [imageStatus, setImageStatus] = useState<ImageStatus>()\n const isInteractive = !!(restProps.onPointerDown || restProps.onClick)\n const TagName = isInteractive ? \"button\" : \"span\"\n\n return (\n <TagName\n className={clsx(s.Avatar, className)}\n style={toCssVariables({\n \"avatar-size\": size,\n })}\n role={isInteractive ? undefined : \"presentation\"}\n data-color={color}\n data-variant={variant}\n type={isInteractive ? \"button\" : undefined}\n {...restProps}\n >\n {(() => {\n if (imageUrl && imageStatus !== \"error\") {\n return (\n <AvatarImage\n status={imageStatus}\n url={imageUrl}\n onError={() => setImageStatus(\"error\")}\n onLoad={() => setImageStatus(\"loaded\")}\n />\n )\n }\n if (Icon) {\n return <Icon className={s.AvatarIcon} />\n }\n return overflowCount ? (\n <AvatarOverflowCount count={overflowCount} />\n ) : (\n <AvatarInitial name={name} />\n )\n })()}\n </TagName>\n )\n}\n\nconst validateImageUrl = (imageUrl?: string): string | undefined => {\n if (!imageUrl) {\n return\n }\n\n // Avoid specific pattern of images from gravatar.com, which use a pair of initials, instead of a single initial.\n if (imageUrl.includes(\"gravatar.com\") && imageUrl.includes(\"cdn.auth0.com\")) {\n return\n }\n\n return imageUrl\n}\n\nconst AvatarImage = ({\n url,\n status,\n onLoad,\n onError,\n}: {\n url: string\n status: ImageStatus\n onLoad: () => void\n onError: () => void\n}) => {\n return (\n <span className={s.AvatarImageContainer}>\n <img\n src={url}\n className={s.AvatarImage}\n data-loaded={status === \"loaded\" ? \"\" : undefined}\n onLoad={onLoad}\n onError={onError}\n alt=\"\"\n role=\"presentation\"\n />\n </span>\n )\n}\n\nconst AvatarInitial = ({ name = \"\" }: { name?: string }) => {\n const firstInitial = useMemo(() => name.charAt(0).toUpperCase(), [name])\n\n return <span className={s.AvatarInitial}>{firstInitial}</span>\n}\n\nconst AvatarOverflowCount = ({ count }: { count: number }) => {\n const formattedCount = useMemo<string>(() => {\n return new Intl.NumberFormat(\"en\", {\n notation: \"compact\",\n compactDisplay: \"short\",\n maximumFractionDigits: 0,\n })\n .format(count)\n .toLocaleLowerCase()\n }, [count])\n\n return (\n <span className={s.AvatarOverflowCount} data-letter-count={formattedCount.length}>\n <span className={s.AvatarOverflowCountSymbol}>+</span>\n {formattedCount}\n </span>\n )\n}\n"]}
|
loan-advisor-chatgpt-app/node_modules/@openai/apps-sdk-ui/dist/es/components/Avatar/Avatar.module.css
ADDED
|
@@ -0,0 +1,168 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
@layer components {.Avatar {
|
| 2 |
+
position: relative;
|
| 3 |
+
overflow: hidden;
|
| 4 |
+
display: inline-flex;
|
| 5 |
+
align-items: center;
|
| 6 |
+
justify-content: center;
|
| 7 |
+
flex-grow: 0;
|
| 8 |
+
flex-shrink: 0;
|
| 9 |
+
width: var(--avatar-size);
|
| 10 |
+
height: var(--avatar-size);
|
| 11 |
+
border-radius: var(--avatar-radius);
|
| 12 |
+
transition: background-color 0.3s var(--cubic-enter);
|
| 13 |
+
-webkit-user-select: none;
|
| 14 |
+
-moz-user-select: none;
|
| 15 |
+
user-select: none;
|
| 16 |
+
}
|
| 17 |
+
|
| 18 |
+
/* Interactive */
|
| 19 |
+
.Avatar[type="button"] {
|
| 20 |
+
cursor: pointer;
|
| 21 |
+
}
|
| 22 |
+
|
| 23 |
+
.Avatar[type="button"]:focus-visible {
|
| 24 |
+
outline: 2px solid var(--avatar-ring-color);
|
| 25 |
+
outline-offset: 2px;
|
| 26 |
+
}
|
| 27 |
+
|
| 28 |
+
.Avatar[data-variant="soft"] {
|
| 29 |
+
background-color: var(--avatar-background-color);
|
| 30 |
+
color: var(--avatar-text-color);
|
| 31 |
+
}
|
| 32 |
+
|
| 33 |
+
.Avatar[data-variant="soft"]:where([data-color="primary"]) {
|
| 34 |
+
--avatar-background-color: var(--color-background-primary-soft);
|
| 35 |
+
--avatar-text-color: var(--color-text-primary-soft);
|
| 36 |
+
--avatar-ring-color: var(--color-ring-primary-soft);
|
| 37 |
+
}
|
| 38 |
+
|
| 39 |
+
.Avatar[data-variant="soft"]:where([data-color="secondary"]) {
|
| 40 |
+
--avatar-background-color: var(--color-background-secondary-soft);
|
| 41 |
+
--avatar-text-color: var(--color-text-secondary-soft);
|
| 42 |
+
--avatar-ring-color: var(--color-ring-secondary-soft);
|
| 43 |
+
}
|
| 44 |
+
|
| 45 |
+
.Avatar[data-variant="soft"]:where([data-color="discovery"]) {
|
| 46 |
+
--avatar-background-color: var(--color-background-discovery-soft);
|
| 47 |
+
--avatar-text-color: var(--color-text-discovery-soft);
|
| 48 |
+
--avatar-ring-color: var(--color-ring-discovery-soft);
|
| 49 |
+
}
|
| 50 |
+
|
| 51 |
+
.Avatar[data-variant="soft"]:where([data-color="info"]) {
|
| 52 |
+
--avatar-background-color: var(--color-background-info-soft);
|
| 53 |
+
--avatar-text-color: var(--color-text-info-soft);
|
| 54 |
+
--avatar-ring-color: var(--color-ring-info-soft);
|
| 55 |
+
}
|
| 56 |
+
|
| 57 |
+
.Avatar[data-variant="soft"]:where([data-color="success"]) {
|
| 58 |
+
--avatar-background-color: var(--color-background-success-soft);
|
| 59 |
+
--avatar-text-color: var(--color-text-success-soft);
|
| 60 |
+
--avatar-ring-color: var(--color-ring-success-soft);
|
| 61 |
+
}
|
| 62 |
+
|
| 63 |
+
.Avatar[data-variant="soft"]:where([data-color="danger"]) {
|
| 64 |
+
--avatar-background-color: var(--color-background-danger-soft);
|
| 65 |
+
--avatar-text-color: var(--color-text-danger-soft);
|
| 66 |
+
--avatar-ring-color: var(--color-ring-danger-soft);
|
| 67 |
+
}
|
| 68 |
+
|
| 69 |
+
.Avatar[data-variant="solid"] {
|
| 70 |
+
background-color: var(--avatar-background-color);
|
| 71 |
+
color: var(--avatar-text-color);
|
| 72 |
+
}
|
| 73 |
+
|
| 74 |
+
.Avatar[data-variant="solid"]:where([data-color="primary"]) {
|
| 75 |
+
--avatar-background-color: var(--color-background-primary-solid);
|
| 76 |
+
--avatar-text-color: var(--color-text-primary-solid);
|
| 77 |
+
--avatar-ring-color: var(--color-ring-primary-solid);
|
| 78 |
+
}
|
| 79 |
+
|
| 80 |
+
.Avatar[data-variant="solid"]:where([data-color="secondary"]) {
|
| 81 |
+
--avatar-background-color: var(--color-background-secondary-solid);
|
| 82 |
+
--avatar-text-color: var(--color-text-secondary-solid);
|
| 83 |
+
--avatar-ring-color: var(--color-ring-secondary-solid);
|
| 84 |
+
}
|
| 85 |
+
|
| 86 |
+
.Avatar[data-variant="solid"]:where([data-color="discovery"]) {
|
| 87 |
+
--avatar-background-color: var(--color-background-discovery-solid);
|
| 88 |
+
--avatar-text-color: var(--color-text-discovery-solid);
|
| 89 |
+
--avatar-ring-color: var(--color-ring-discovery-solid);
|
| 90 |
+
}
|
| 91 |
+
|
| 92 |
+
.Avatar[data-variant="solid"]:where([data-color="info"]) {
|
| 93 |
+
--avatar-background-color: var(--color-background-info-solid);
|
| 94 |
+
--avatar-text-color: var(--color-text-info-solid);
|
| 95 |
+
--avatar-ring-color: var(--color-ring-info-solid);
|
| 96 |
+
}
|
| 97 |
+
|
| 98 |
+
.Avatar[data-variant="solid"]:where([data-color="success"]) {
|
| 99 |
+
--avatar-background-color: var(--color-background-success-solid);
|
| 100 |
+
--avatar-text-color: var(--color-text-success-solid);
|
| 101 |
+
--avatar-ring-color: var(--color-ring-success-solid);
|
| 102 |
+
}
|
| 103 |
+
|
| 104 |
+
.Avatar[data-variant="solid"]:where([data-color="danger"]) {
|
| 105 |
+
--avatar-background-color: var(--color-background-danger-solid);
|
| 106 |
+
--avatar-text-color: var(--color-text-danger-solid);
|
| 107 |
+
--avatar-ring-color: var(--color-ring-danger-solid);
|
| 108 |
+
}/*
|
| 109 |
+
* Images with low contrast backgrounds should have clear edges,
|
| 110 |
+
* but this border should not impact the size of the image, or
|
| 111 |
+
* create fringed edges on various background colors. Using a transparency
|
| 112 |
+
* on top of the image ensures crisp edges while also solving the issue of low contrast backgrounds.
|
| 113 |
+
*/.AvatarImageContainer {
|
| 114 |
+
border-radius: inherit;
|
| 115 |
+
}
|
| 116 |
+
|
| 117 |
+
.AvatarImageContainer::after {
|
| 118 |
+
position: absolute;
|
| 119 |
+
inset: 0;
|
| 120 |
+
display: block;
|
| 121 |
+
border: 1px solid var(--avatar-image-border-color);
|
| 122 |
+
border-radius: inherit;
|
| 123 |
+
content: "";
|
| 124 |
+
pointer-events: none;
|
| 125 |
+
}.AvatarImage {
|
| 126 |
+
position: absolute;
|
| 127 |
+
top: 0;
|
| 128 |
+
left: 0;
|
| 129 |
+
width: 100%;
|
| 130 |
+
height: 100%;
|
| 131 |
+
border-radius: inherit;
|
| 132 |
+
-o-object-fit: cover;
|
| 133 |
+
object-fit: cover;
|
| 134 |
+
opacity: 0;
|
| 135 |
+
/* Prevent awkward dragging of the image */
|
| 136 |
+
pointer-events: none;
|
| 137 |
+
transition: 0.15s ease;
|
| 138 |
+
}
|
| 139 |
+
|
| 140 |
+
.AvatarImage[data-loaded] {
|
| 141 |
+
opacity: 1;
|
| 142 |
+
}.AvatarInitial {
|
| 143 |
+
font-size: calc(var(--avatar-size) * var(--avatar-font-size-scaling));
|
| 144 |
+
font-weight: var(--font-weight-semibold);
|
| 145 |
+
}.AvatarOverflowCount {
|
| 146 |
+
font-size: calc(var(--avatar-size) * var(--avatar-overflow-font-size-scaling-three));
|
| 147 |
+
font-weight: var(--font-weight-semibold);
|
| 148 |
+
}
|
| 149 |
+
|
| 150 |
+
.AvatarOverflowCount[data-letter-count="2"] {
|
| 151 |
+
font-size: calc(var(--avatar-size) * var(--avatar-overflow-font-size-scaling-two));
|
| 152 |
+
}
|
| 153 |
+
|
| 154 |
+
.AvatarOverflowCount[data-letter-count="1"] {
|
| 155 |
+
font-size: calc(var(--avatar-size) * var(--avatar-overflow-font-size-scaling-one));
|
| 156 |
+
}/*
|
| 157 |
+
* The "+" sits very low in the baseline - this lifts it up 1px per 24px of size
|
| 158 |
+
*/.AvatarOverflowCountSymbol {
|
| 159 |
+
position: relative;
|
| 160 |
+
top: calc(-1 * var(--avatar-size) / 24);
|
| 161 |
+
margin-left: -1px;
|
| 162 |
+
}.AvatarIcon {
|
| 163 |
+
display: block;
|
| 164 |
+
flex-grow: 0;
|
| 165 |
+
flex-shrink: 0;
|
| 166 |
+
font-size: calc(var(--avatar-size) * 0.7);
|
| 167 |
+
}
|
| 168 |
+
}
|
loan-advisor-chatgpt-app/node_modules/@openai/apps-sdk-ui/dist/es/components/Avatar/AvatarGroup.js
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import { jsx as _jsx } from "react/jsx-runtime";
|
| 2 |
+
import clsx from "clsx";
|
| 3 |
+
import { Children, cloneElement, isValidElement } from "react";
|
| 4 |
+
import { toCssVariables } from "../../lib/helpers";
|
| 5 |
+
import s from "./AvatarGroup.module.css";
|
| 6 |
+
export const AvatarGroup = ({ className, stack = "start", size, children }) => {
|
| 7 |
+
const childrenArray = Children.toArray(children);
|
| 8 |
+
// Conditionally reverse the array depending on desired stacking priority
|
| 9 |
+
const maybeReversedChildren = stack === "start" ? childrenArray.slice().reverse() : childrenArray;
|
| 10 |
+
return (_jsx("div", { className: clsx(s.Group, className), "data-stack": stack, style: toCssVariables({
|
| 11 |
+
"avatar-size": size,
|
| 12 |
+
}), children: maybeReversedChildren.map((child) => (isValidElement(child) ? cloneElement(child) : child)) }));
|
| 13 |
+
};
|
| 14 |
+
//# sourceMappingURL=AvatarGroup.js.map
|
loan-advisor-chatgpt-app/node_modules/@openai/apps-sdk-ui/dist/es/components/Avatar/AvatarGroup.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
{"version":3,"file":"AvatarGroup.js","sourceRoot":"","sources":["../../../../src/components/Avatar/AvatarGroup.tsx"],"names":[],"mappings":";AAAA,OAAO,IAAI,MAAM,MAAM,CAAA;AACvB,OAAO,EAAE,QAAQ,EAAE,YAAY,EAAE,cAAc,EAAkB,MAAM,OAAO,CAAA;AAC9E,OAAO,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAA;AAClD,OAAO,CAAC,MAAM,0BAA0B,CAAA;AAexC,MAAM,CAAC,MAAM,WAAW,GAAG,CAAC,EAAE,SAAS,EAAE,KAAK,GAAG,OAAO,EAAE,IAAI,EAAE,QAAQ,EAAoB,EAAE,EAAE;IAC9F,MAAM,aAAa,GAAG,QAAQ,CAAC,OAAO,CAAC,QAAQ,CAAC,CAAA;IAChD,yEAAyE;IACzE,MAAM,qBAAqB,GAAG,KAAK,KAAK,OAAO,CAAC,CAAC,CAAC,aAAa,CAAC,KAAK,EAAE,CAAC,OAAO,EAAE,CAAC,CAAC,CAAC,aAAa,CAAA;IAEjG,OAAO,CACL,cACE,SAAS,EAAE,IAAI,CAAC,CAAC,CAAC,KAAK,EAAE,SAAS,CAAC,gBACvB,KAAK,EACjB,KAAK,EAAE,cAAc,CAAC;YACpB,aAAa,EAAE,IAAI;SACpB,CAAC,YAED,qBAAqB,CAAC,GAAG,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,CAAC,cAAc,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,YAAY,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,GACxF,CACP,CAAA;AACH,CAAC,CAAA","sourcesContent":["import clsx from \"clsx\"\nimport { Children, cloneElement, isValidElement, type ReactNode } from \"react\"\nimport { toCssVariables } from \"../../lib/helpers\"\nimport s from \"./AvatarGroup.module.css\"\n\nexport type AvatarGroupProps = {\n /** Class name passed to the group container */\n className?: string\n /**\n * Determines stacking layer order\n * @default start\n */\n stack?: \"start\" | \"end\"\n /** Size all avatars in the group, in pixels. */\n size?: number\n children: ReactNode\n}\n\nexport const AvatarGroup = ({ className, stack = \"start\", size, children }: AvatarGroupProps) => {\n const childrenArray = Children.toArray(children)\n // Conditionally reverse the array depending on desired stacking priority\n const maybeReversedChildren = stack === \"start\" ? childrenArray.slice().reverse() : childrenArray\n\n return (\n <div\n className={clsx(s.Group, className)}\n data-stack={stack}\n style={toCssVariables({\n \"avatar-size\": size,\n })}\n >\n {maybeReversedChildren.map((child) => (isValidElement(child) ? cloneElement(child) : child))}\n </div>\n )\n}\n"]}
|
loan-advisor-chatgpt-app/node_modules/@openai/apps-sdk-ui/dist/es/components/Avatar/AvatarGroup.module.css
ADDED
|
@@ -0,0 +1,26 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
@layer components {.Group {
|
| 2 |
+
display: flex;
|
| 3 |
+
}
|
| 4 |
+
|
| 5 |
+
.Group > * ~ * {
|
| 6 |
+
box-shadow: 0 0 0 var(--avatar-group-cutout-width) var(--avatar-group-cutout-color);
|
| 7 |
+
|
| 8 |
+
/*
|
| 9 |
+
* Mask approach avoids the need to apply a specific color, however:
|
| 10 |
+
* -radial masks currently have very harsh anti-aliasing
|
| 11 |
+
* - sizing must be set statically, and cannot use % sizing. You trade one imperative value for another.
|
| 12 |
+
* mask-image: radial-gradient(circle 22px at -15px, transparent 99%, #fff 100%);
|
| 13 |
+
*/
|
| 14 |
+
}
|
| 15 |
+
|
| 16 |
+
.Group[data-stack="start"] {
|
| 17 |
+
flex-direction: row-reverse;
|
| 18 |
+
}
|
| 19 |
+
|
| 20 |
+
.Group[data-stack="start"] > * ~ * {
|
| 21 |
+
margin-inline-end: var(--avatar-group-spacing);
|
| 22 |
+
}
|
| 23 |
+
.Group[data-stack="end"] > * ~ * {
|
| 24 |
+
margin-inline-start: var(--avatar-group-spacing);
|
| 25 |
+
}
|
| 26 |
+
}
|
loan-advisor-chatgpt-app/node_modules/@openai/apps-sdk-ui/dist/es/components/Avatar/index.js
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
export { Avatar } from "./Avatar";
|
| 2 |
+
export { AvatarGroup } from "./AvatarGroup";
|
| 3 |
+
//# sourceMappingURL=index.js.map
|
loan-advisor-chatgpt-app/node_modules/@openai/apps-sdk-ui/dist/es/components/Avatar/index.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/components/Avatar/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAoB,MAAM,UAAU,CAAA;AACnD,OAAO,EAAE,WAAW,EAAyB,MAAM,eAAe,CAAA","sourcesContent":["export { Avatar, type AvatarProps } from \"./Avatar\"\nexport { AvatarGroup, type AvatarGroupProps } from \"./AvatarGroup\"\n"]}
|