eve 0.71.2 → 0.72.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +47 -0
- package/README.md +22 -6
- package/dist/src/acp/adapter.js +1 -1
- package/dist/src/ai/decide.d.ts +7 -0
- package/dist/src/ai/decide.js +1 -0
- package/dist/src/channel/conversation-context.d.ts +4 -1
- package/dist/src/channel/invoke-tool.d.ts +41 -0
- package/dist/src/channel/invoke-tool.js +1 -0
- package/dist/src/channel/routes.d.ts +3 -0
- package/dist/src/chunks/{use-eve-agent-CFCaYnrI.js → use-eve-agent-C1GYGCtb.js} +698 -388
- package/dist/src/chunks/{use-eve-agent-DcDhXNv1.js → use-eve-agent-hZJ7CB8t.js} +698 -388
- package/dist/src/cli/commands/integration-setup.js +1 -1
- package/dist/src/cli/commands/registry.js +1 -1
- package/dist/src/cli/commands/trace-detail.d.ts +1 -1
- package/dist/src/cli/commands/trace-detail.js +1 -1
- package/dist/src/cli/dev/tui/runner.js +1 -1
- package/dist/src/cli/dev/tui/setup-flow.d.ts +1 -0
- package/dist/src/cli/dev/tui/setup-panel.d.ts +1 -0
- package/dist/src/cli/dev/tui/setup-panel.js +2 -1
- package/dist/src/cli/dev/tui/traces/trace-conversation.d.ts +2 -2
- package/dist/src/cli/dev/tui/traces/trace-conversation.js +2 -2
- package/dist/src/cli/dev/tui/transcript-parts.d.ts +2 -1
- package/dist/src/cli/dev/tui/transcript-parts.js +1 -1
- package/dist/src/cli/dev/tui/transcript.js +1 -1
- package/dist/src/cli/dev/tui/tui-prompter.js +1 -1
- package/dist/src/client/conversation-projection.d.ts +4 -0
- package/dist/src/client/conversation-projection.js +1 -0
- package/dist/src/client/conversation-reducer.js +1 -1
- package/dist/src/client/conversation-state.d.ts +5 -26
- package/dist/src/client/conversation-state.js +1 -1
- package/dist/src/client/index.d.ts +1 -0
- package/dist/src/client/index.js +1 -1
- package/dist/src/client/message-action-parts.d.ts +1 -11
- package/dist/src/client/message-action-parts.js +1 -1
- package/dist/src/client/message-reducer.d.ts +3 -1
- package/dist/src/client/message-reducer.js +1 -1
- package/dist/src/client/session-utils.js +1 -1
- package/dist/src/client/session.js +1 -1
- package/dist/src/client/tool-call-state.d.ts +23 -0
- package/dist/src/client/tool-call-state.js +1 -0
- package/dist/src/client/tool-part-state.d.ts +7 -0
- package/dist/src/client/tool-part-state.js +1 -0
- package/dist/src/compiled/.vendor-stamp.json +10 -10
- package/dist/src/compiled/@ai-sdk/anthropic/index.d.ts +1453 -1358
- package/dist/src/compiled/@ai-sdk/anthropic/index.js +1 -2
- package/dist/src/compiled/@ai-sdk/code-mode/index.d.ts +172 -163
- package/dist/src/compiled/@ai-sdk/code-mode/index.js +15 -20
- package/dist/src/compiled/@ai-sdk/google/index.d.ts +772 -733
- package/dist/src/compiled/@ai-sdk/google/index.js +6 -8
- package/dist/src/compiled/@ai-sdk/mcp/index.d.ts +887 -790
- package/dist/src/compiled/@ai-sdk/mcp/index.js +1 -1
- package/dist/src/compiled/@ai-sdk/openai/index.d.ts +1722 -1691
- package/dist/src/compiled/@ai-sdk/openai/index.js +3 -14
- package/dist/src/compiled/@ai-sdk/otel/index.d.ts +216 -159
- package/dist/src/compiled/@ai-sdk/otel/index.js +3 -3
- package/dist/src/compiled/@ai-sdk/provider/index.d.ts +7542 -7271
- package/dist/src/compiled/@ai-sdk/provider/index.js +1 -3
- package/dist/src/compiled/@ai-sdk/provider-utils/index.d.ts +1799 -1600
- package/dist/src/compiled/@eve/catalog/index.js +1 -1
- package/dist/src/compiled/_chunks/workflow/dist-DXLdlucM.js +15 -0
- package/dist/src/compiled/_chunks/workflow/experimental-decision-BrfWf6-n.js +3 -0
- package/dist/src/compiler/extension-compatibility.d.ts +36 -20
- package/dist/src/compiler/extension-compatibility.js +1 -1
- package/dist/src/compiler/manifest.js +1 -1
- package/dist/src/context/build-dynamic-tools.js +1 -1
- package/dist/src/context/caller-scope.d.ts +7 -0
- package/dist/src/context/caller-scope.js +1 -0
- package/dist/src/context/dynamic-tool-lifecycle.js +1 -1
- package/dist/src/context/dynamic-tool-metadata.d.ts +1 -0
- package/dist/src/context/providers/session.js +1 -1
- package/dist/src/evals/define-eval.d.ts +1 -1
- package/dist/src/evals/judge.d.ts +1 -1
- package/dist/src/evals/judge.js +2 -2
- package/dist/src/evals/types.d.ts +8 -8
- package/dist/src/execution/cancel-descendant-turns-step.d.ts +1 -0
- package/dist/src/execution/cancel-descendant-turns-step.js +1 -1
- package/dist/src/execution/cancelled-model-call-batch.js +1 -1
- package/dist/src/execution/coordination-dispatch-shared.d.ts +2 -1
- package/dist/src/execution/coordination-dispatch-shared.js +1 -1
- package/dist/src/execution/coordination-dispatch-step.js +1 -1
- package/dist/src/execution/durable-session-read.d.ts +5 -0
- package/dist/src/execution/durable-session-read.js +1 -0
- package/dist/src/execution/durable-session-store.d.ts +4 -10
- package/dist/src/execution/durable-session-store.js +1 -1
- package/dist/src/execution/dynamic-connections.d.ts +3 -3
- package/dist/src/execution/dynamic-connections.js +1 -1
- package/dist/src/execution/dynamic-workflow/tool.js +1 -1
- package/dist/src/execution/invoke-tool.d.ts +35 -0
- package/dist/src/execution/invoke-tool.js +1 -0
- package/dist/src/execution/legacy-session/interrupt-step.js +1 -1
- package/dist/src/execution/legacy-session/snapshot.d.ts +3 -0
- package/dist/src/execution/legacy-session/snapshot.js +1 -1
- package/dist/src/execution/model-call-batching.js +1 -1
- package/dist/src/execution/node-step.d.ts +2 -0
- package/dist/src/execution/node-step.js +1 -1
- package/dist/src/execution/proxied-deliver-step.js +1 -1
- package/dist/src/execution/publish-session-events.d.ts +8 -0
- package/dist/src/execution/publish-session-events.js +1 -1
- package/dist/src/execution/sandbox/active-handles.d.ts +6 -0
- package/dist/src/execution/sandbox/active-handles.js +1 -1
- package/dist/src/execution/sandbox/ensure.js +1 -1
- package/dist/src/execution/session/active-turn.js +1 -1
- package/dist/src/execution/session/answer-caller.d.ts +15 -0
- package/dist/src/execution/session/answer-caller.js +1 -0
- package/dist/src/execution/session/checkpoint-migrations.js +1 -1
- package/dist/src/execution/session/finalization.js +1 -1
- package/dist/src/execution/session/handoff-steps.d.ts +3 -1
- package/dist/src/execution/session/handoff-steps.js +1 -1
- package/dist/src/execution/session/handoff.d.ts +1 -1
- package/dist/src/execution/session/handoff.js +1 -1
- package/dist/src/execution/session/pending-turn-state.d.ts +8 -3
- package/dist/src/execution/session/pending-turn-state.js +1 -1
- package/dist/src/execution/session/task-tool-tracing-step.d.ts +5 -0
- package/dist/src/execution/session/task-tool-tracing-step.js +1 -0
- package/dist/src/execution/session/turn-step-result.js +1 -1
- package/dist/src/execution/session/turn-step.js +1 -1
- package/dist/src/execution/session/turn-waiting-step.js +1 -1
- package/dist/src/execution/session/turn.d.ts +1 -0
- package/dist/src/execution/session/turn.js +1 -1
- package/dist/src/execution/settle-cancelled-turn-step.d.ts +4 -6
- package/dist/src/execution/settle-cancelled-turn-step.js +1 -1
- package/dist/src/execution/tasks/start.d.ts +3 -3
- package/dist/src/execution/tasks/start.js +1 -1
- package/dist/src/execution/tasks/steps.d.ts +1 -1
- package/dist/src/execution/tasks/steps.js +1 -1
- package/dist/src/execution/terminal-session-completion-step.d.ts +7 -0
- package/dist/src/execution/terminal-session-completion-step.js +1 -1
- package/dist/src/execution/terminal-session-failure-step.js +1 -1
- package/dist/src/execution/tools/agent-router-workflow.js +1 -1
- package/dist/src/execution/tools/connection-tools.js +1 -1
- package/dist/src/execution/tools/workflow/authorization-completion.js +1 -1
- package/dist/src/execution/tools/workflow/harness-definition.js +1 -1
- package/dist/src/execution/tools/workflow/step-execution.js +1 -1
- package/dist/src/execution/tools/workflow/step.js +1 -1
- package/dist/src/execution/tools/workflow/withdraw-step.d.ts +7 -9
- package/dist/src/execution/tools/workflow/withdraw-step.js +1 -1
- package/dist/src/execution/workflow-runtime.js +1 -1
- package/dist/src/execution/workflow-trace-context.d.ts +2 -2
- package/dist/src/harness/authorization.d.ts +4 -2
- package/dist/src/harness/authorization.js +1 -1
- package/dist/src/harness/{compaction.js → compaction/engine.js} +1 -1
- package/dist/src/harness/compaction/step.d.ts +46 -0
- package/dist/src/harness/compaction/step.js +1 -0
- package/dist/src/harness/coordination.d.ts +32 -64
- package/dist/src/harness/coordination.js +1 -1
- package/dist/src/harness/current-messages.d.ts +1 -3
- package/dist/src/harness/current-messages.js +1 -1
- package/dist/src/harness/emission.d.ts +4 -52
- package/dist/src/harness/emission.js +1 -1
- package/dist/src/harness/execute-tool.d.ts +1 -0
- package/dist/src/harness/final-output.d.ts +5 -0
- package/dist/src/harness/final-output.js +1 -1
- package/dist/src/harness/hitl/approvals.d.ts +115 -0
- package/dist/src/harness/hitl/approvals.js +1 -0
- package/dist/src/harness/hitl/approved-call-callers.d.ts +14 -0
- package/dist/src/harness/hitl/approved-call-callers.js +1 -0
- package/dist/src/harness/hitl/approved-calls.d.ts +37 -0
- package/dist/src/harness/hitl/approved-calls.js +1 -0
- package/dist/src/harness/{session-limit-continuation.d.ts → hitl/budget-request.d.ts} +3 -1
- package/dist/src/harness/hitl/budget-request.js +1 -0
- package/dist/src/harness/hitl/budget.d.ts +21 -0
- package/dist/src/harness/hitl/budget.js +1 -0
- package/dist/src/harness/{approval-candidates.d.ts → hitl/candidates.d.ts} +13 -18
- package/dist/src/harness/hitl/candidates.js +1 -0
- package/dist/src/harness/hitl/coordinator.js +1 -0
- package/dist/src/harness/hitl/delivery.d.ts +37 -0
- package/dist/src/harness/hitl/delivery.js +1 -0
- package/dist/src/harness/hitl/index.d.ts +49 -0
- package/dist/src/harness/hitl/index.js +1 -0
- package/dist/src/harness/hitl/intake.d.ts +67 -0
- package/dist/src/harness/hitl/intake.js +1 -0
- package/dist/src/harness/{stale-input-responses.d.ts → hitl/stale-responses.d.ts} +5 -3
- package/dist/src/harness/hitl/stale-responses.js +3 -0
- package/dist/src/harness/inline-tool-authorization.d.ts +4 -0
- package/dist/src/harness/inline-tool-authorization.js +1 -1
- package/dist/src/harness/input-extraction.d.ts +1 -10
- package/dist/src/harness/input-extraction.js +1 -1
- package/dist/src/harness/input-request-resolution.d.ts +1 -5
- package/dist/src/harness/input-request-resolution.js +1 -1
- package/dist/src/harness/messages.js +1 -1
- package/dist/src/harness/model-call/call.d.ts +78 -0
- package/dist/src/harness/model-call/call.js +1 -0
- package/dist/src/harness/{model-call-error.d.ts → model-call/errors.d.ts} +1 -1
- package/dist/src/harness/model-call/failure.d.ts +52 -0
- package/dist/src/harness/model-call/failure.js +1 -0
- package/dist/src/harness/model-call/model.d.ts +18 -0
- package/dist/src/harness/model-call/model.js +1 -0
- package/dist/src/harness/model-call/recovery.d.ts +52 -0
- package/dist/src/harness/model-call/recovery.js +1 -0
- package/dist/src/harness/model-call/request.d.ts +30 -0
- package/dist/src/harness/model-call/request.js +3 -0
- package/dist/src/harness/model-call/response.d.ts +39 -0
- package/dist/src/harness/model-call/response.js +1 -0
- package/dist/src/harness/model-call/retry.d.ts +11 -0
- package/dist/src/harness/model-call/retry.js +1 -0
- package/dist/src/harness/model-call/run.d.ts +38 -0
- package/dist/src/harness/model-call/run.js +1 -0
- package/dist/src/harness/model-call/tools.d.ts +48 -0
- package/dist/src/harness/model-call/tools.js +1 -0
- package/dist/src/harness/model-call/usage.d.ts +23 -0
- package/dist/src/harness/model-call/usage.js +1 -0
- package/dist/src/harness/nested-actions.d.ts +2 -2
- package/dist/src/harness/provider-tools.d.ts +7 -3
- package/dist/src/harness/provider-tools.js +1 -1
- package/dist/src/harness/proxy-input-requests.d.ts +4 -12
- package/dist/src/harness/proxy-input-requests.js +1 -1
- package/dist/src/harness/session-machine/commit.d.ts +28 -0
- package/dist/src/harness/session-machine/commit.js +1 -0
- package/dist/src/harness/session-machine/current.d.ts +29 -0
- package/dist/src/harness/session-machine/current.js +1 -0
- package/dist/src/harness/session-machine/events.d.ts +6 -0
- package/dist/src/harness/session-machine/events.js +1 -0
- package/dist/src/harness/session-machine/resolver-events.d.ts +12 -0
- package/dist/src/harness/session-machine/resolver-events.js +1 -0
- package/dist/src/harness/session-machine/state.d.ts +47 -0
- package/dist/src/harness/session-machine/state.js +1 -0
- package/dist/src/harness/session-machine/transitions.d.ts +188 -0
- package/dist/src/harness/session-machine/transitions.js +1 -0
- package/dist/src/harness/session-machine/view.d.ts +58 -0
- package/dist/src/harness/session-machine/view.js +1 -0
- package/dist/src/harness/step/after-model.d.ts +7 -0
- package/dist/src/harness/step/after-model.js +1 -0
- package/dist/src/harness/step/context.d.ts +59 -0
- package/dist/src/harness/step/context.js +1 -0
- package/dist/src/harness/step/intake.d.ts +34 -0
- package/dist/src/harness/step/intake.js +1 -0
- package/dist/src/harness/step/prompt.d.ts +37 -0
- package/dist/src/harness/step/prompt.js +1 -0
- package/dist/src/harness/step-hooks.d.ts +8 -13
- package/dist/src/harness/step-hooks.js +1 -1
- package/dist/src/harness/tool-call-io.d.ts +25 -0
- package/dist/src/harness/tool-call-io.js +1 -0
- package/dist/src/harness/tool-loop.d.ts +7 -22
- package/dist/src/harness/tool-loop.js +1 -3
- package/dist/src/harness/tool-model-output.d.ts +1 -2
- package/dist/src/harness/tools.d.ts +14 -0
- package/dist/src/harness/tools.js +1 -1
- package/dist/src/harness/turn-tag-state.d.ts +1 -1
- package/dist/src/harness/types.d.ts +6 -0
- package/dist/src/instrumentation/ai-sdk-hook-bridge.d.ts +1 -1
- package/dist/src/instrumentation/ai-sdk-hook-bridge.js +1 -1
- package/dist/src/instrumentation/content.js +1 -1
- package/dist/src/instrumentation/dispatch.js +1 -1
- package/dist/src/instrumentation/lifecycle.d.ts +28 -52
- package/dist/src/instrumentation/native-events.d.ts +2 -1
- package/dist/src/instrumentation/native-events.js +1 -1
- package/dist/src/instrumentation/provider.d.ts +1 -1
- package/dist/src/instrumentation/runtime-context.d.ts +2 -3
- package/dist/src/instrumentation/runtime-context.js +1 -1
- package/dist/src/instrumentation/runtime.d.ts +11 -1
- package/dist/src/instrumentation/runtime.js +1 -1
- package/dist/src/instrumentation/state.d.ts +6 -1
- package/dist/src/instrumentation/state.js +1 -1
- package/dist/src/internal/application/package.js +1 -1
- package/dist/src/internal/attachments/limited-read.d.ts +16 -0
- package/dist/src/internal/attachments/limited-read.js +1 -0
- package/dist/src/internal/authored-definition/schema-backed.d.ts +2 -1
- package/dist/src/internal/authored-definition/schema-backed.js +1 -1
- package/dist/src/internal/gateway.d.ts +2 -0
- package/dist/src/internal/gateway.js +1 -1
- package/dist/src/internal/mcp/published-tools.d.ts +13 -0
- package/dist/src/internal/mcp/published-tools.js +1 -0
- package/dist/src/internal/mcp/request-trace-context.d.ts +12 -0
- package/dist/src/internal/mcp/request-trace-context.js +1 -0
- package/dist/src/internal/mcp/streamable-http-server.d.ts +7 -3
- package/dist/src/internal/mcp/streamable-http-server.js +1 -1
- package/dist/src/internal/model-auth/transport.d.ts +3 -3
- package/dist/src/internal/model-auth/transport.js +1 -1
- package/dist/src/internal/nitro/host/instrumentation-entry.js +2 -2
- package/dist/src/internal/nitro/routes/channel-dispatch.js +1 -1
- package/dist/src/internal/nitro/routes/channel-request-instrumentation.js +1 -1
- package/dist/src/internal/nitro/routes/route-invoke-tool.d.ts +24 -0
- package/dist/src/internal/nitro/routes/route-invoke-tool.js +1 -0
- package/dist/src/models/auto.d.ts +5 -5
- package/dist/src/models/auto.js +2 -2
- package/dist/src/protocol/message.d.ts +7 -0
- package/dist/src/protocol/message.js +1 -1
- package/dist/src/protocol/session-projection.d.ts +159 -0
- package/dist/src/protocol/session-projection.js +1 -0
- package/dist/src/public/ai/index.d.ts +1 -1
- package/dist/src/public/ai/index.js +1 -1
- package/dist/src/public/channels/chat-sdk/attachment-refs.d.ts +15 -0
- package/dist/src/public/channels/chat-sdk/attachment-refs.js +1 -0
- package/dist/src/public/channels/chat-sdk/chatSdkChannel.js +2 -2
- package/dist/src/public/channels/chat-sdk/messageToUserContent.d.ts +11 -5
- package/dist/src/public/channels/chat-sdk/messageToUserContent.js +1 -1
- package/dist/src/public/channels/discord/attachments.d.ts +15 -0
- package/dist/src/public/channels/discord/attachments.js +1 -0
- package/dist/src/public/channels/discord/discordChannel.js +1 -1
- package/dist/src/public/channels/discord/inbound.d.ts +13 -0
- package/dist/src/public/channels/discord/inbound.js +1 -1
- package/dist/src/public/channels/index.d.ts +1 -1
- package/dist/src/public/channels/linear/inbound-uploads.d.ts +21 -0
- package/dist/src/public/channels/linear/inbound-uploads.js +1 -0
- package/dist/src/public/channels/linear/linearChannel.js +1 -1
- package/dist/src/public/channels/linq/inboundContent.d.ts +7 -1
- package/dist/src/public/channels/linq/inboundContent.js +1 -1
- package/dist/src/public/channels/linq/linqChannel.js +1 -1
- package/dist/src/public/channels/mcp.d.ts +17 -2
- package/dist/src/public/channels/mcp.js +1 -1
- package/dist/src/public/channels/photon/attachments.d.ts +21 -0
- package/dist/src/public/channels/photon/attachments.js +1 -0
- package/dist/src/public/channels/photon/photonIMessageChannel.js +1 -1
- package/dist/src/public/channels/slack/attachments.d.ts +3 -1
- package/dist/src/public/channels/slack/attachments.js +1 -1
- package/dist/src/public/channels/slack/slackChannel.js +1 -1
- package/dist/src/public/channels/teams/attachments.d.ts +4 -4
- package/dist/src/public/channels/teams/attachments.js +1 -1
- package/dist/src/public/channels/telegram/attachments.js +1 -1
- package/dist/src/public/channels/twilio/api.d.ts +7 -0
- package/dist/src/public/channels/twilio/api.js +1 -1
- package/dist/src/public/channels/twilio/inbound.d.ts +7 -0
- package/dist/src/public/channels/twilio/inbound.js +2 -2
- package/dist/src/public/channels/twilio/twilioChannel.js +1 -1
- package/dist/src/public/definitions/channel.d.ts +1 -0
- package/dist/src/public/definitions/connections/mcp.d.ts +1 -1
- package/dist/src/public/definitions/connections/openapi.d.ts +1 -1
- package/dist/src/public/models/openai/chatgpt/model.js +1 -1
- package/dist/src/react/index.d.ts +1 -0
- package/dist/src/react/index.js +1 -1
- package/dist/src/runtime/agent/mock-model-adapter.js +2 -2
- package/dist/src/runtime/connections/mcp-client.js +1 -1
- package/dist/src/runtime/connections/scoped-authorization.js +1 -1
- package/dist/src/runtime/resolve-tool.js +1 -1
- package/dist/src/setup/boxes/resolve-provisioning.d.ts +2 -0
- package/dist/src/setup/boxes/resolve-provisioning.js +1 -1
- package/dist/src/setup/cli/prompt-ui.d.ts +3 -0
- package/dist/src/setup/cli/prompt-ui.js +3 -1
- package/dist/src/setup/cli/select-component.d.ts +1 -0
- package/dist/src/setup/cli/select-component.js +1 -1
- package/dist/src/setup/flows/ensure-vercel-project.d.ts +2 -0
- package/dist/src/setup/flows/ensure-vercel-project.js +1 -1
- package/dist/src/setup/integrations/discord/api.js +1 -1
- package/dist/src/setup/integrations/web/auth-options.d.ts +4 -0
- package/dist/src/setup/integrations/web/auth-options.js +1 -0
- package/dist/src/setup/integrations/web/auth-scaffold.d.ts +7 -0
- package/dist/src/setup/integrations/web/auth-scaffold.js +1 -0
- package/dist/src/setup/integrations/web/provision-auth.d.ts +3 -0
- package/dist/src/setup/integrations/web/provision-auth.js +1 -0
- package/dist/src/setup/integrations/web/setup.d.ts +11 -6
- package/dist/src/setup/integrations/web/setup.js +3 -3
- package/dist/src/setup/prompter.d.ts +2 -0
- package/dist/src/setup/prompter.js +1 -1
- package/dist/src/setup/scaffold/create/add-to-project.js +1 -1
- package/dist/src/setup/scaffold/create/project.js +2 -2
- package/dist/src/setup/scaffold/create/web-template.d.ts +3 -3
- package/dist/src/setup/scaffold/create/web-template.js +26 -8
- package/dist/src/setup/scaffold/update/web-options.js +1 -1
- package/dist/src/setup/vercel-project-api.d.ts +9 -0
- package/dist/src/setup/vercel-project-api.js +1 -1
- package/dist/src/setup/vercel-project.d.ts +4 -2
- package/dist/src/setup/vercel-project.js +0 -0
- package/dist/src/shared/web-search.d.ts +1 -1
- package/dist/src/subagents/adapter.js +1 -1
- package/dist/src/subagents/event-proxy-step.js +1 -1
- package/dist/src/subagents/hitl-proxy.d.ts +4 -28
- package/dist/src/subagents/hitl-proxy.js +1 -1
- package/dist/src/svelte/index.d.ts +2 -0
- package/dist/src/svelte/index.js +39 -2
- package/dist/src/svelte/use-eve-agent.js +1 -1
- package/dist/src/tools/approval/policies.d.ts +5 -5
- package/dist/src/tools/approval/policies.js +1 -1
- package/dist/src/tools/framework/agent.js +1 -1
- package/dist/src/tools/provided/agent-router.js +1 -1
- package/dist/src/tools/provided/ask-question-workflow.js +1 -1
- package/dist/src/tools/provided/ask-question.js +2 -2
- package/dist/src/tools/provided/bash.js +1 -1
- package/dist/src/tools/provided/framework-tool.d.ts +3 -0
- package/dist/src/tools/provided/framework-tool.js +1 -0
- package/dist/src/tools/provided/glob.js +2 -2
- package/dist/src/tools/provided/grep.js +2 -2
- package/dist/src/tools/provided/load-skill.js +1 -1
- package/dist/src/tools/provided/no-reply.js +1 -1
- package/dist/src/tools/provided/read-file.js +2 -2
- package/dist/src/tools/provided/sleep-workflow.js +1 -1
- package/dist/src/tools/provided/sleep.js +1 -1
- package/dist/src/tools/provided/task-cancel.js +1 -1
- package/dist/src/tools/provided/task-wait.js +1 -1
- package/dist/src/tools/provided/web-fetch.js +2 -2
- package/dist/src/tools/provided/web-search.js +1 -1
- package/dist/src/tools/provided/workflow.js +1 -1
- package/dist/src/tools/provided/write-file.js +2 -2
- package/dist/src/tracing/agent-approval-instrumentation.d.ts +2 -2
- package/dist/src/tracing/agent-approval-instrumentation.js +1 -1
- package/dist/src/tracing/agent-otel-provider.js +2 -2
- package/dist/src/tracing/agent-otel-usage.d.ts +1 -1
- package/dist/src/tracing/agent-otel-usage.js +1 -1
- package/dist/src/tracing/agent-span-contract.d.ts +8 -1
- package/dist/src/tracing/agent-span-contract.js +1 -1
- package/dist/src/tracing/agent-tool-instrumentation.d.ts +16 -5
- package/dist/src/tracing/agent-tool-instrumentation.js +1 -1
- package/dist/src/tracing/agent-trace-context-codec.js +1 -1
- package/dist/src/tracing/agent-trace-span-processor.js +1 -1
- package/dist/src/tracing/agent-trace-state.d.ts +8 -3
- package/dist/src/tracing/install-instrumentation-runtime.js +1 -1
- package/dist/src/tracing/invoke-tool-span.d.ts +61 -0
- package/dist/src/tracing/invoke-tool-span.js +1 -0
- package/dist/src/tracing/local-trace-analysis.js +1 -1
- package/dist/src/vue/index.d.ts +2 -0
- package/dist/src/vue/index.js +39 -2
- package/dist/src/vue/use-eve-agent.js +1 -1
- package/docs/agent-config.md +2 -2
- package/docs/channels/chat-sdk.mdx +3 -1
- package/docs/channels/custom.mdx +3 -0
- package/docs/channels/discord.mdx +5 -4
- package/docs/channels/eve.mdx +65 -0
- package/docs/channels/linear.mdx +1 -1
- package/docs/channels/linq.mdx +2 -0
- package/docs/channels/mcp.mdx +39 -1
- package/docs/channels/photon.mdx +5 -0
- package/docs/channels/teams.mdx +4 -7
- package/docs/channels/twilio.mdx +1 -1
- package/docs/concepts/built-in-tools.md +12 -0
- package/docs/concepts/sessions-runs-and-streaming.md +3 -3
- package/docs/connections/overview.mdx +1 -1
- package/docs/dynamic-configuration/meta.json +1 -1
- package/docs/evals/judge.mdx +16 -16
- package/docs/evals/overview.mdx +1 -1
- package/docs/guides/{evaluate.md → decide.md} +35 -35
- package/docs/guides/dynamic-capabilities.md +1 -1
- package/docs/guides/frontend/overview.mdx +3 -1
- package/docs/guides/hooks.md +1 -1
- package/docs/guides/instrumentation/instrumentation.mdx +23 -22
- package/docs/guides/instrumentation/otel.mdx +13 -2
- package/docs/reference/cli.md +4 -2
- package/docs/reference/typescript-api.md +4 -2
- package/docs/tools/human-in-the-loop.md +8 -4
- package/docs/tools/workflows.mdx +4 -4
- package/package.json +13 -11
- package/dist/src/ai/evaluate.d.ts +0 -7
- package/dist/src/ai/evaluate.js +0 -1
- package/dist/src/client/message-task-parts.d.ts +0 -8
- package/dist/src/client/message-task-parts.js +0 -1
- package/dist/src/compiled/_chunks/workflow/dist-C3ZE62yI.js +0 -25
- package/dist/src/compiled/_chunks/workflow/experimental-evaluation-Dm32egEG.js +0 -5
- package/dist/src/harness/active-turn-id.d.ts +0 -11
- package/dist/src/harness/active-turn-id.js +0 -1
- package/dist/src/harness/approval-candidates.js +0 -1
- package/dist/src/harness/approval-delivery-coordinator.js +0 -1
- package/dist/src/harness/cancelled-turn-emission.d.ts +0 -12
- package/dist/src/harness/cancelled-turn-emission.js +0 -1
- package/dist/src/harness/emission-state.d.ts +0 -26
- package/dist/src/harness/emission-state.js +0 -1
- package/dist/src/harness/held-requests.d.ts +0 -18
- package/dist/src/harness/held-requests.js +0 -1
- package/dist/src/harness/hitl/approval-input-requests.d.ts +0 -27
- package/dist/src/harness/hitl/approval-input-requests.js +0 -1
- package/dist/src/harness/hitl/pending-input-resolution.d.ts +0 -54
- package/dist/src/harness/hitl/pending-input-resolution.js +0 -1
- package/dist/src/harness/hitl/session-limit-input-requests.d.ts +0 -12
- package/dist/src/harness/hitl/session-limit-input-requests.js +0 -1
- package/dist/src/harness/input-requests.d.ts +0 -31
- package/dist/src/harness/input-requests.js +0 -1
- package/dist/src/harness/pending-input-batches.d.ts +0 -81
- package/dist/src/harness/pending-input-batches.js +0 -1
- package/dist/src/harness/session-limit-continuation.js +0 -1
- package/dist/src/harness/session-limit-enforcement.d.ts +0 -45
- package/dist/src/harness/session-limit-enforcement.js +0 -1
- package/dist/src/harness/stale-input-responses.js +0 -3
- package/dist/src/harness/workflow-dispatch.d.ts +0 -30
- package/dist/src/harness/workflow-dispatch.js +0 -1
- package/dist/src/public/channels/linear/inbound-images.d.ts +0 -19
- package/dist/src/public/channels/linear/inbound-images.js +0 -1
- package/dist/src/tracing/agent-action-instrumentation.d.ts +0 -25
- package/dist/src/tracing/agent-action-instrumentation.js +0 -1
- /package/dist/src/harness/{compaction.d.ts → compaction/engine.d.ts} +0 -0
- /package/dist/src/harness/{compaction-prompt.d.ts → compaction/prompt.d.ts} +0 -0
- /package/dist/src/harness/{compaction-prompt.js → compaction/prompt.js} +0 -0
- /package/dist/src/harness/{approval-delivery-coordinator.d.ts → hitl/coordinator.d.ts} +0 -0
- /package/dist/src/harness/{model-call-error.js → model-call/errors.js} +0 -0
|
@@ -1,102 +1,103 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import { JSONObject } from
|
|
4
|
-
|
|
1
|
+
import { FetchFunction, FlexibleSchema, Tool } from "#compiled/@ai-sdk/provider-utils/index.js";
|
|
2
|
+
import { z } from "#compiled/zod/index.js";
|
|
3
|
+
import { AISDKError, JSONObject } from "#compiled/@ai-sdk/provider/index.js";
|
|
4
|
+
//#region src/tool/json-rpc-message.d.ts
|
|
5
5
|
declare const JSONRPCRequestSchema: z.ZodObject<{
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
6
|
+
jsonrpc: z.ZodLiteral<"2.0">;
|
|
7
|
+
id: z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>;
|
|
8
|
+
method: z.ZodString;
|
|
9
|
+
params: z.ZodOptional<z.ZodObject<{
|
|
10
|
+
_meta: z.ZodOptional<z.ZodObject<{}, z.core.$loose>>;
|
|
11
|
+
}, z.core.$loose>>;
|
|
12
12
|
}, z.core.$strict>;
|
|
13
13
|
type JSONRPCRequest = z.infer<typeof JSONRPCRequestSchema>;
|
|
14
14
|
declare const JSONRPCResponseSchema: z.ZodObject<{
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
15
|
+
jsonrpc: z.ZodLiteral<"2.0">;
|
|
16
|
+
id: z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>;
|
|
17
|
+
result: z.ZodObject<{
|
|
18
|
+
_meta: z.ZodOptional<z.ZodObject<{}, z.core.$loose>>;
|
|
19
|
+
resultType: z.ZodOptional<z.ZodString>;
|
|
20
|
+
}, z.core.$loose>;
|
|
21
21
|
}, z.core.$strict>;
|
|
22
22
|
type JSONRPCResponse = z.infer<typeof JSONRPCResponseSchema>;
|
|
23
23
|
declare const JSONRPCErrorSchema: z.ZodObject<{
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
24
|
+
jsonrpc: z.ZodLiteral<"2.0">;
|
|
25
|
+
id: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
|
|
26
|
+
error: z.ZodObject<{
|
|
27
|
+
code: z.ZodNumber;
|
|
28
|
+
message: z.ZodString;
|
|
29
|
+
data: z.ZodOptional<z.ZodUnknown>;
|
|
30
|
+
}, z.core.$strip>;
|
|
31
31
|
}, z.core.$strict>;
|
|
32
32
|
type JSONRPCError = z.infer<typeof JSONRPCErrorSchema>;
|
|
33
33
|
declare const JSONRPCNotificationSchema: z.ZodObject<{
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
34
|
+
jsonrpc: z.ZodLiteral<"2.0">;
|
|
35
|
+
method: z.ZodString;
|
|
36
|
+
params: z.ZodOptional<z.ZodObject<{
|
|
37
|
+
_meta: z.ZodOptional<z.ZodObject<{}, z.core.$loose>>;
|
|
38
|
+
}, z.core.$loose>>;
|
|
39
39
|
}, z.core.$strict>;
|
|
40
40
|
type JSONRPCNotification = z.infer<typeof JSONRPCNotificationSchema>;
|
|
41
41
|
declare const JSONRPCMessageSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
42
|
+
jsonrpc: z.ZodLiteral<"2.0">;
|
|
43
|
+
id: z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>;
|
|
44
|
+
method: z.ZodString;
|
|
45
|
+
params: z.ZodOptional<z.ZodObject<{
|
|
46
|
+
_meta: z.ZodOptional<z.ZodObject<{}, z.core.$loose>>;
|
|
47
|
+
}, z.core.$loose>>;
|
|
48
48
|
}, z.core.$strict>, z.ZodObject<{
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
49
|
+
jsonrpc: z.ZodLiteral<"2.0">;
|
|
50
|
+
method: z.ZodString;
|
|
51
|
+
params: z.ZodOptional<z.ZodObject<{
|
|
52
|
+
_meta: z.ZodOptional<z.ZodObject<{}, z.core.$loose>>;
|
|
53
|
+
}, z.core.$loose>>;
|
|
54
54
|
}, z.core.$strict>, z.ZodObject<{
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
55
|
+
jsonrpc: z.ZodLiteral<"2.0">;
|
|
56
|
+
id: z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>;
|
|
57
|
+
result: z.ZodObject<{
|
|
58
|
+
_meta: z.ZodOptional<z.ZodObject<{}, z.core.$loose>>;
|
|
59
|
+
resultType: z.ZodOptional<z.ZodString>;
|
|
60
|
+
}, z.core.$loose>;
|
|
61
61
|
}, z.core.$strict>, z.ZodObject<{
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
62
|
+
jsonrpc: z.ZodLiteral<"2.0">;
|
|
63
|
+
id: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
|
|
64
|
+
error: z.ZodObject<{
|
|
65
|
+
code: z.ZodNumber;
|
|
66
|
+
message: z.ZodString;
|
|
67
|
+
data: z.ZodOptional<z.ZodUnknown>;
|
|
68
|
+
}, z.core.$strip>;
|
|
69
69
|
}, z.core.$strict>]>;
|
|
70
70
|
type JSONRPCMessage = z.infer<typeof JSONRPCMessageSchema>;
|
|
71
|
-
declare function validateJSONRPCMessage(message: unknown): JSONRPCMessage;
|
|
72
|
-
|
|
71
|
+
export declare function validateJSONRPCMessage(message: unknown): JSONRPCMessage;
|
|
72
|
+
//#endregion
|
|
73
|
+
//#region src/tool/oauth-types.d.ts
|
|
73
74
|
/**
|
|
74
75
|
* OAuth 2.1 token response
|
|
75
76
|
*/
|
|
76
77
|
declare const OAuthTokensSchema: z.ZodObject<{
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
78
|
+
access_token: z.ZodString;
|
|
79
|
+
id_token: z.ZodOptional<z.ZodString>;
|
|
80
|
+
token_type: z.ZodString;
|
|
81
|
+
expires_in: z.ZodOptional<z.ZodNumber>;
|
|
82
|
+
scope: z.ZodOptional<z.ZodString>;
|
|
83
|
+
refresh_token: z.ZodOptional<z.ZodString>;
|
|
84
|
+
issuer: z.ZodOptional<z.ZodString>;
|
|
85
|
+
authorization_server: z.ZodOptional<z.ZodString>;
|
|
86
|
+
token_endpoint: z.ZodOptional<z.ZodString>;
|
|
86
87
|
}, z.core.$strip>;
|
|
87
88
|
declare const OAuthMetadataSchema: z.ZodObject<{
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
89
|
+
issuer: z.ZodString;
|
|
90
|
+
authorization_endpoint: z.ZodString;
|
|
91
|
+
token_endpoint: z.ZodString;
|
|
92
|
+
registration_endpoint: z.ZodOptional<z.ZodString>;
|
|
93
|
+
authorization_response_iss_parameter_supported: z.ZodOptional<z.ZodBoolean>;
|
|
94
|
+
client_id_metadata_document_supported: z.ZodOptional<z.ZodBoolean>;
|
|
95
|
+
scopes_supported: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
96
|
+
response_types_supported: z.ZodArray<z.ZodString>;
|
|
97
|
+
grant_types_supported: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
98
|
+
code_challenge_methods_supported: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
99
|
+
token_endpoint_auth_methods_supported: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
100
|
+
token_endpoint_auth_signing_alg_values_supported: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
100
101
|
}, z.core.$loose>;
|
|
101
102
|
/**
|
|
102
103
|
* OpenID Connect Discovery metadata that may include OAuth 2.0 fields
|
|
@@ -104,50 +105,50 @@ declare const OAuthMetadataSchema: z.ZodObject<{
|
|
|
104
105
|
* return a mix of OpenID Connect and OAuth 2.0 metadata fields
|
|
105
106
|
*/
|
|
106
107
|
declare const OpenIdProviderDiscoveryMetadataSchema: z.ZodObject<{
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
108
|
+
issuer: z.ZodString;
|
|
109
|
+
authorization_endpoint: z.ZodString;
|
|
110
|
+
token_endpoint: z.ZodString;
|
|
111
|
+
userinfo_endpoint: z.ZodOptional<z.ZodString>;
|
|
112
|
+
jwks_uri: z.ZodString;
|
|
113
|
+
registration_endpoint: z.ZodOptional<z.ZodString>;
|
|
114
|
+
authorization_response_iss_parameter_supported: z.ZodOptional<z.ZodBoolean>;
|
|
115
|
+
client_id_metadata_document_supported: z.ZodOptional<z.ZodBoolean>;
|
|
116
|
+
scopes_supported: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
117
|
+
response_types_supported: z.ZodArray<z.ZodString>;
|
|
118
|
+
grant_types_supported: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
119
|
+
subject_types_supported: z.ZodArray<z.ZodString>;
|
|
120
|
+
id_token_signing_alg_values_supported: z.ZodArray<z.ZodString>;
|
|
121
|
+
claims_supported: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
122
|
+
token_endpoint_auth_methods_supported: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
123
|
+
code_challenge_methods_supported: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
123
124
|
}, z.core.$loose>;
|
|
124
125
|
declare const OAuthClientInformationSchema: z.ZodObject<{
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
126
|
+
client_id: z.ZodString;
|
|
127
|
+
client_secret: z.ZodOptional<z.ZodString>;
|
|
128
|
+
client_id_issued_at: z.ZodOptional<z.ZodNumber>;
|
|
129
|
+
client_secret_expires_at: z.ZodOptional<z.ZodNumber>;
|
|
130
|
+
issuer: z.ZodOptional<z.ZodString>;
|
|
131
|
+
authorization_server: z.ZodOptional<z.ZodString>;
|
|
132
|
+
token_endpoint: z.ZodOptional<z.ZodString>;
|
|
132
133
|
}, z.core.$strip>;
|
|
133
134
|
declare const OAuthClientMetadataSchema: z.ZodObject<{
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
135
|
+
redirect_uris: z.ZodArray<z.ZodString>;
|
|
136
|
+
application_type: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"native">, z.ZodLiteral<"web">]>>;
|
|
137
|
+
token_endpoint_auth_method: z.ZodOptional<z.ZodString>;
|
|
138
|
+
grant_types: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
139
|
+
response_types: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
140
|
+
client_name: z.ZodOptional<z.ZodString>;
|
|
141
|
+
client_uri: z.ZodOptional<z.ZodString>;
|
|
142
|
+
logo_uri: z.ZodOptional<z.ZodString>;
|
|
143
|
+
scope: z.ZodOptional<z.ZodString>;
|
|
144
|
+
contacts: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
145
|
+
tos_uri: z.ZodOptional<z.ZodString>;
|
|
146
|
+
policy_uri: z.ZodOptional<z.ZodString>;
|
|
147
|
+
jwks_uri: z.ZodOptional<z.ZodString>;
|
|
148
|
+
jwks: z.ZodOptional<z.ZodAny>;
|
|
149
|
+
software_id: z.ZodOptional<z.ZodString>;
|
|
150
|
+
software_version: z.ZodOptional<z.ZodString>;
|
|
151
|
+
software_statement: z.ZodOptional<z.ZodString>;
|
|
151
152
|
}, z.core.$strip>;
|
|
152
153
|
type OAuthMetadata = z.infer<typeof OAuthMetadataSchema>;
|
|
153
154
|
type OpenIdProviderDiscoveryMetadata = z.infer<typeof OpenIdProviderDiscoveryMetadataSchema>;
|
|
@@ -155,226 +156,271 @@ type OAuthTokens = z.infer<typeof OAuthTokensSchema>;
|
|
|
155
156
|
type OAuthClientInformation = z.infer<typeof OAuthClientInformationSchema>;
|
|
156
157
|
type AuthorizationServerMetadata = OAuthMetadata | OpenIdProviderDiscoveryMetadata;
|
|
157
158
|
type OAuthClientMetadata = z.infer<typeof OAuthClientMetadataSchema>;
|
|
158
|
-
|
|
159
|
+
//#endregion
|
|
160
|
+
//#region src/error/oauth-error.d.ts
|
|
161
|
+
declare const symbol$1: unique symbol;
|
|
162
|
+
/**
|
|
163
|
+
* An error occurred with the MCP client within the OAuth flow.
|
|
164
|
+
*/
|
|
165
|
+
export declare class MCPClientOAuthError extends AISDKError {
|
|
166
|
+
private readonly [symbol$1];
|
|
167
|
+
constructor({ name, message, cause }: {
|
|
168
|
+
name?: string;
|
|
169
|
+
message: string;
|
|
170
|
+
cause?: unknown;
|
|
171
|
+
});
|
|
172
|
+
static isInstance(error: unknown): error is MCPClientOAuthError;
|
|
173
|
+
}
|
|
174
|
+
declare const mismatchSymbol: unique symbol;
|
|
175
|
+
export declare class AuthorizationServerMismatchError extends MCPClientOAuthError {
|
|
176
|
+
private readonly [mismatchSymbol];
|
|
177
|
+
static errorCode: string;
|
|
178
|
+
constructor({ message, cause }: {
|
|
179
|
+
message: string;
|
|
180
|
+
cause?: unknown;
|
|
181
|
+
});
|
|
182
|
+
static isInstance(error: unknown): error is AuthorizationServerMismatchError;
|
|
183
|
+
}
|
|
184
|
+
//#endregion
|
|
185
|
+
//#region src/tool/oauth.d.ts
|
|
159
186
|
type AuthResult = 'AUTHORIZED' | 'REDIRECT';
|
|
160
187
|
interface OAuthAuthorizationServerInformation {
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
188
|
+
issuer?: string;
|
|
189
|
+
authorizationServerUrl: string;
|
|
190
|
+
tokenEndpoint: string;
|
|
164
191
|
}
|
|
165
192
|
interface OAuthClientProvider {
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
193
|
+
/**
|
|
194
|
+
* Returns current access token if present; undefined otherwise.
|
|
195
|
+
*/
|
|
196
|
+
tokens(): OAuthTokens | undefined | Promise<OAuthTokens | undefined>;
|
|
197
|
+
saveTokens(tokens: OAuthTokens): void | Promise<void>;
|
|
198
|
+
redirectToAuthorization(authorizationUrl: URL): void | Promise<void>;
|
|
199
|
+
saveCodeVerifier(codeVerifier: string): void | Promise<void>;
|
|
200
|
+
codeVerifier(): string | Promise<string>;
|
|
201
|
+
/**
|
|
202
|
+
* Adds custom client authentication to OAuth token requests.
|
|
203
|
+
*
|
|
204
|
+
* This optional method allows implementations to customize how client credentials
|
|
205
|
+
* are included in token exchange and refresh requests. When provided, this method
|
|
206
|
+
* is called instead of the default authentication logic, giving full control over
|
|
207
|
+
* the authentication mechanism.
|
|
208
|
+
*
|
|
209
|
+
* Common use cases include:
|
|
210
|
+
* - Supporting authentication methods beyond the standard OAuth 2.0 methods
|
|
211
|
+
* - Adding custom headers for proprietary authentication schemes
|
|
212
|
+
* - Implementing client assertion-based authentication (e.g., JWT bearer tokens)
|
|
213
|
+
*
|
|
214
|
+
* @param headers - The request headers (can be modified to add authentication)
|
|
215
|
+
* @param params - The request body parameters (can be modified to add credentials)
|
|
216
|
+
* @param url - The token endpoint URL being called
|
|
217
|
+
* @param metadata - Optional OAuth metadata for the server, which may include supported authentication methods
|
|
218
|
+
*/
|
|
219
|
+
addClientAuthentication?(headers: Headers, params: URLSearchParams, url: string | URL, metadata?: AuthorizationServerMetadata): void | Promise<void>;
|
|
220
|
+
/**
|
|
221
|
+
* If implemented, provides a way for the client to invalidate (e.g. delete) the specified
|
|
222
|
+
* credentials, in the case where the server has indicated that they are no longer valid.
|
|
223
|
+
* This avoids requiring the user to intervene manually.
|
|
224
|
+
*
|
|
225
|
+
* For token invalidation, context identifies the token generation being invalidated
|
|
226
|
+
* when available. Providers sharing storage must atomically compare and delete
|
|
227
|
+
* that generation so a concurrent refresh's tokens are preserved. Omitting or
|
|
228
|
+
* ignoring context retains unconditional invalidation.
|
|
229
|
+
*/
|
|
230
|
+
invalidateCredentials?(scope: 'all' | 'client' | 'tokens' | 'verifier', context?: {
|
|
231
|
+
tokens: OAuthTokens;
|
|
232
|
+
}): void | Promise<void>;
|
|
233
|
+
get redirectUrl(): string | URL;
|
|
234
|
+
get clientMetadata(): OAuthClientMetadata;
|
|
235
|
+
clientInformation(): OAuthClientInformation | undefined | Promise<OAuthClientInformation | undefined>;
|
|
236
|
+
/**
|
|
237
|
+
* Returns whether the current client information was obtained through
|
|
238
|
+
* dynamic client registration.
|
|
239
|
+
*
|
|
240
|
+
* Return `true` only when the current client information was saved after a
|
|
241
|
+
* dynamic registration response. When this method is omitted or returns
|
|
242
|
+
* `false`, the client information is treated as pre-registered and is not
|
|
243
|
+
* automatically invalidated after client authentication errors.
|
|
244
|
+
*/
|
|
245
|
+
isClientInformationDynamicallyRegistered?(): boolean | Promise<boolean>;
|
|
246
|
+
saveClientInformation?(clientInformation: OAuthClientInformation): void | Promise<void>;
|
|
247
|
+
authorizationServerInformation?(): OAuthAuthorizationServerInformation | undefined | Promise<OAuthAuthorizationServerInformation | undefined>;
|
|
248
|
+
saveAuthorizationServerInformation?(authorizationServerInformation: OAuthAuthorizationServerInformation): void | Promise<void>;
|
|
249
|
+
/**
|
|
250
|
+
* Validates an authorization server URL discovered from MCP protected resource
|
|
251
|
+
* metadata before the client fetches its OAuth metadata.
|
|
252
|
+
*/
|
|
253
|
+
validateAuthorizationServerURL?(serverUrl: string | URL, authorizationServerUrl: string | URL): void | Promise<void>;
|
|
254
|
+
state?(): string | Promise<string>;
|
|
255
|
+
saveState?(state: string): void | Promise<void>;
|
|
256
|
+
storedState?(): string | undefined | Promise<string | undefined>;
|
|
257
|
+
validateResourceURL?(serverUrl: string | URL, resource?: string): Promise<URL | undefined>;
|
|
214
258
|
}
|
|
215
|
-
declare class UnauthorizedError extends Error {
|
|
216
|
-
|
|
259
|
+
export declare class UnauthorizedError extends Error {
|
|
260
|
+
constructor(message?: string);
|
|
217
261
|
}
|
|
218
|
-
declare function auth(provider: OAuthClientProvider, options: {
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
262
|
+
export declare function auth(provider: OAuthClientProvider, options: {
|
|
263
|
+
serverUrl: string | URL;
|
|
264
|
+
authorizationCode?: string;
|
|
265
|
+
callbackState?: string;
|
|
266
|
+
/**
|
|
267
|
+
* Value of the `iss` parameter from the authorization response.
|
|
268
|
+
*/
|
|
269
|
+
callbackIssuer?: string;
|
|
270
|
+
scope?: string;
|
|
271
|
+
resourceMetadataUrl?: URL;
|
|
272
|
+
fetchFn?: FetchFunction;
|
|
229
273
|
}): Promise<AuthResult>;
|
|
230
|
-
|
|
274
|
+
//#endregion
|
|
275
|
+
//#region src/tool/mcp-transport.d.ts
|
|
231
276
|
/**
|
|
232
277
|
* Transport interface for MCP (Model Context Protocol) communication.
|
|
233
278
|
* Maps to the `Transport` interface in the MCP spec.
|
|
234
279
|
*/
|
|
235
280
|
type MCPTransportSendOptions = {
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
281
|
+
/**
|
|
282
|
+
* Cancels the transport operation for this message.
|
|
283
|
+
*/
|
|
284
|
+
signal?: AbortSignal;
|
|
285
|
+
/**
|
|
286
|
+
* Request-specific HTTP headers produced from MCP tool parameters.
|
|
287
|
+
*/
|
|
288
|
+
headers?: Record<string, string>;
|
|
289
|
+
/**
|
|
290
|
+
* Associates an outgoing message with an incoming request.
|
|
291
|
+
*/
|
|
292
|
+
relatedRequestId?: string | number;
|
|
293
|
+
/**
|
|
294
|
+
* Resumes a previously interrupted request.
|
|
295
|
+
*/
|
|
296
|
+
resumptionToken?: string;
|
|
297
|
+
/**
|
|
298
|
+
* Receives updated resumption tokens from transports that support them.
|
|
299
|
+
*/
|
|
300
|
+
onresumptiontoken?: (token: string) => void;
|
|
256
301
|
};
|
|
257
302
|
type MCPTransportCloseOptions = {
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
303
|
+
/**
|
|
304
|
+
* Cancels transport cleanup.
|
|
305
|
+
*/
|
|
306
|
+
signal?: AbortSignal;
|
|
262
307
|
};
|
|
263
308
|
interface MCPTransport {
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
309
|
+
/**
|
|
310
|
+
* Whether this transport can probe for stateless MCP protocol versions.
|
|
311
|
+
*
|
|
312
|
+
* Custom transports default to the legacy initialization flow unless they
|
|
313
|
+
* explicitly opt in.
|
|
314
|
+
*/
|
|
315
|
+
supportsProtocolVersionDiscovery?: boolean;
|
|
316
|
+
/**
|
|
317
|
+
* Whether this transport mirrors x-mcp-header tool parameters into request
|
|
318
|
+
* headers.
|
|
319
|
+
*/
|
|
320
|
+
supportsMcpToolParameterHeaders?: boolean;
|
|
321
|
+
/**
|
|
322
|
+
* Initialize and start the transport
|
|
323
|
+
*/
|
|
324
|
+
start(): Promise<void>;
|
|
325
|
+
/**
|
|
326
|
+
* Send a JSON-RPC message through the transport
|
|
327
|
+
* @param message The JSON-RPC message to send
|
|
328
|
+
* @param options Optional request-scoped cancellation options
|
|
329
|
+
*/
|
|
330
|
+
send(message: JSONRPCMessage, options?: MCPTransportSendOptions): Promise<void>;
|
|
331
|
+
/**
|
|
332
|
+
* Clean up and close the transport
|
|
333
|
+
* @param options Optional cancellation options for transport cleanup
|
|
334
|
+
*/
|
|
335
|
+
close(options?: MCPTransportCloseOptions): Promise<void>;
|
|
336
|
+
/**
|
|
337
|
+
* Event handler for transport closure
|
|
338
|
+
*/
|
|
339
|
+
onclose?: () => void;
|
|
340
|
+
/**
|
|
341
|
+
* Event handler for transport errors
|
|
342
|
+
*/
|
|
343
|
+
onerror?: (error: Error) => void;
|
|
344
|
+
/**
|
|
345
|
+
* Event handler for received messages
|
|
346
|
+
*/
|
|
347
|
+
onmessage?: (message: JSONRPCMessage) => void;
|
|
348
|
+
/**
|
|
349
|
+
* The protocol version negotiated during initialization.
|
|
350
|
+
*/
|
|
351
|
+
protocolVersion?: string;
|
|
352
|
+
/**
|
|
353
|
+
* Set the protocol version negotiated during initialization.
|
|
354
|
+
*/
|
|
355
|
+
setProtocolVersion?(version: string): void;
|
|
311
356
|
}
|
|
312
357
|
type MCPTransportConfig = {
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
358
|
+
type: 'sse' | 'http';
|
|
359
|
+
/**
|
|
360
|
+
* The URL of the MCP server.
|
|
361
|
+
*/
|
|
362
|
+
url: string;
|
|
363
|
+
/**
|
|
364
|
+
* Additional HTTP headers to be sent with requests.
|
|
365
|
+
*/
|
|
366
|
+
headers?: Record<string, string>;
|
|
367
|
+
/**
|
|
368
|
+
* An optional OAuth client provider to use for authentication for MCP servers.
|
|
369
|
+
*/
|
|
370
|
+
authProvider?: OAuthClientProvider;
|
|
371
|
+
/**
|
|
372
|
+
* Controls how HTTP redirects are handled for transport requests.
|
|
373
|
+
* - `'follow'`: Follow redirects automatically (standard fetch behavior).
|
|
374
|
+
* - `'error'`: Reject any redirect response with an error.
|
|
375
|
+
* @default 'error'
|
|
376
|
+
*/
|
|
377
|
+
redirect?: 'follow' | 'error';
|
|
378
|
+
/**
|
|
379
|
+
* Initial MCP session id to send with resumed Streamable HTTP requests after
|
|
380
|
+
* initialization.
|
|
381
|
+
* Only used by the HTTP transport.
|
|
382
|
+
*/
|
|
383
|
+
initialSessionId?: string;
|
|
384
|
+
/**
|
|
385
|
+
* Initial MCP protocol version to send before initialize negotiates one.
|
|
386
|
+
* Only used by the HTTP transport.
|
|
387
|
+
*/
|
|
388
|
+
initialProtocolVersion?: string;
|
|
389
|
+
/**
|
|
390
|
+
* Called when the Streamable HTTP server creates, changes, or clears the MCP
|
|
391
|
+
* session id.
|
|
392
|
+
* Only used by the HTTP transport.
|
|
393
|
+
*/
|
|
394
|
+
onSessionIdChange?: (sessionId: string | undefined) => void;
|
|
395
|
+
/**
|
|
396
|
+
* Called when a Streamable HTTP request returns 404 for an existing MCP
|
|
397
|
+
* session id. The transport clears the session id before reporting the
|
|
398
|
+
* underlying HTTP error.
|
|
399
|
+
* Only used by the HTTP transport.
|
|
400
|
+
*/
|
|
401
|
+
onSessionExpired?: (sessionId: string) => void;
|
|
402
|
+
/**
|
|
403
|
+
* Whether close() should send DELETE for the current MCP session id.
|
|
404
|
+
* Set to false when the application intends to reattach to the session later.
|
|
405
|
+
* Only used by the HTTP transport.
|
|
406
|
+
* @default true
|
|
407
|
+
*/
|
|
408
|
+
terminateSessionOnClose?: boolean;
|
|
409
|
+
/**
|
|
410
|
+
* Optional custom fetch implementation to use for HTTP requests.
|
|
411
|
+
* Useful for runtimes that need a request-local fetch.
|
|
412
|
+
* @default globalThis.fetch
|
|
413
|
+
*/
|
|
414
|
+
fetch?: FetchFunction;
|
|
370
415
|
};
|
|
371
|
-
|
|
416
|
+
//#endregion
|
|
417
|
+
//#region src/tool/types.d.ts
|
|
372
418
|
type McpProviderMetadata = {
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
419
|
+
clientName?: string;
|
|
420
|
+
title?: string;
|
|
421
|
+
toolName?: string;
|
|
422
|
+
annotations?: McpToolAnnotations;
|
|
423
|
+
app?: JSONObject;
|
|
378
424
|
};
|
|
379
425
|
/**
|
|
380
426
|
* Behavioral hints reported by an MCP server for a tool.
|
|
@@ -384,583 +430,584 @@ type McpProviderMetadata = {
|
|
|
384
430
|
* @see https://modelcontextprotocol.io/specification/2026-07-28/schema#toolannotations
|
|
385
431
|
*/
|
|
386
432
|
type McpToolAnnotations = {
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
433
|
+
title?: string;
|
|
434
|
+
readOnlyHint?: boolean;
|
|
435
|
+
destructiveHint?: boolean;
|
|
436
|
+
idempotentHint?: boolean;
|
|
437
|
+
openWorldHint?: boolean;
|
|
392
438
|
};
|
|
393
439
|
/** MCP tool metadata - keys should follow MCP _meta key format specification */
|
|
394
440
|
declare const ToolMetaSchema: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
395
441
|
type ToolMeta = z.infer<typeof ToolMetaSchema>;
|
|
396
442
|
type ToolSchemas = Record<string, {
|
|
397
|
-
|
|
398
|
-
|
|
443
|
+
inputSchema: FlexibleSchema<JSONObject | unknown>;
|
|
444
|
+
outputSchema?: FlexibleSchema<JSONObject | unknown>;
|
|
399
445
|
}> | 'automatic' | undefined;
|
|
400
446
|
/** Base MCP tool type with execute and _meta */
|
|
401
447
|
type McpToolBase<INPUT = unknown, OUTPUT = CallToolResult> = Tool<INPUT, OUTPUT> & Required<Pick<Tool<INPUT, OUTPUT>, 'execute'>> & {
|
|
402
|
-
|
|
448
|
+
_meta?: ToolMeta;
|
|
403
449
|
};
|
|
404
450
|
type McpToolSet<TOOL_SCHEMAS extends ToolSchemas = 'automatic'> = TOOL_SCHEMAS extends Record<string, {
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
}> ? {
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
} ? McpToolBase<INPUT, CallToolResult> : never;
|
|
414
|
-
} : Record<string, McpToolBase<unknown, CallToolResult>>;
|
|
451
|
+
inputSchema: FlexibleSchema<any>;
|
|
452
|
+
outputSchema?: FlexibleSchema<any>;
|
|
453
|
+
}> ? { [K in keyof TOOL_SCHEMAS]: TOOL_SCHEMAS[K] extends {
|
|
454
|
+
inputSchema: FlexibleSchema<infer INPUT>;
|
|
455
|
+
outputSchema: FlexibleSchema<infer OUTPUT>;
|
|
456
|
+
} ? McpToolBase<INPUT, OUTPUT> : TOOL_SCHEMAS[K] extends {
|
|
457
|
+
inputSchema: FlexibleSchema<infer INPUT>;
|
|
458
|
+
} ? McpToolBase<INPUT, CallToolResult> : never; } : Record<string, McpToolBase<unknown, CallToolResult>>;
|
|
415
459
|
declare const ClientOrServerImplementationSchema: z.ZodObject<{
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
460
|
+
name: z.ZodString;
|
|
461
|
+
version: z.ZodString;
|
|
462
|
+
title: z.ZodOptional<z.ZodString>;
|
|
419
463
|
}, z.core.$loose>;
|
|
420
464
|
type Configuration = z.infer<typeof ClientOrServerImplementationSchema>;
|
|
421
465
|
declare const BaseParamsSchema: z.ZodObject<{
|
|
422
|
-
|
|
466
|
+
_meta: z.ZodOptional<z.ZodObject<{}, z.core.$loose>>;
|
|
423
467
|
}, z.core.$loose>;
|
|
424
468
|
type BaseParams = z.infer<typeof BaseParamsSchema>;
|
|
425
469
|
declare const RequestSchema: z.ZodObject<{
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
470
|
+
method: z.ZodString;
|
|
471
|
+
params: z.ZodOptional<z.ZodObject<{
|
|
472
|
+
_meta: z.ZodOptional<z.ZodObject<{}, z.core.$loose>>;
|
|
473
|
+
}, z.core.$loose>>;
|
|
430
474
|
}, z.core.$strip>;
|
|
431
475
|
type Request = z.infer<typeof RequestSchema>;
|
|
432
476
|
type RequestOptions = {
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
477
|
+
signal?: AbortSignal;
|
|
478
|
+
timeout?: number;
|
|
479
|
+
maxTotalTimeout?: number;
|
|
436
480
|
};
|
|
437
481
|
declare const ClientCapabilitiesSchema: z.ZodObject<{
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
482
|
+
elicitation: z.ZodOptional<z.ZodObject<{
|
|
483
|
+
applyDefaults: z.ZodOptional<z.ZodBoolean>;
|
|
484
|
+
}, z.core.$loose>>;
|
|
441
485
|
}, z.core.$loose>;
|
|
442
486
|
type ClientCapabilities = z.infer<typeof ClientCapabilitiesSchema>;
|
|
443
487
|
declare const InitializeResultSchema: z.ZodObject<{
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
488
|
+
_meta: z.ZodOptional<z.ZodObject<{}, z.core.$loose>>;
|
|
489
|
+
resultType: z.ZodOptional<z.ZodString>;
|
|
490
|
+
protocolVersion: z.ZodString;
|
|
491
|
+
capabilities: z.ZodObject<{
|
|
492
|
+
experimental: z.ZodOptional<z.ZodObject<{}, z.core.$loose>>;
|
|
493
|
+
logging: z.ZodOptional<z.ZodObject<{}, z.core.$loose>>;
|
|
494
|
+
completions: z.ZodOptional<z.ZodObject<{}, z.core.$loose>>;
|
|
495
|
+
prompts: z.ZodOptional<z.ZodObject<{
|
|
496
|
+
listChanged: z.ZodOptional<z.ZodBoolean>;
|
|
497
|
+
}, z.core.$loose>>;
|
|
498
|
+
resources: z.ZodOptional<z.ZodObject<{
|
|
499
|
+
subscribe: z.ZodOptional<z.ZodBoolean>;
|
|
500
|
+
listChanged: z.ZodOptional<z.ZodBoolean>;
|
|
501
|
+
}, z.core.$loose>>;
|
|
502
|
+
tools: z.ZodOptional<z.ZodObject<{
|
|
503
|
+
listChanged: z.ZodOptional<z.ZodBoolean>;
|
|
504
|
+
}, z.core.$loose>>;
|
|
505
|
+
elicitation: z.ZodOptional<z.ZodObject<{
|
|
506
|
+
applyDefaults: z.ZodOptional<z.ZodBoolean>;
|
|
507
|
+
}, z.core.$loose>>;
|
|
508
|
+
}, z.core.$loose>;
|
|
509
|
+
serverInfo: z.ZodObject<{
|
|
510
|
+
name: z.ZodString;
|
|
511
|
+
version: z.ZodString;
|
|
512
|
+
title: z.ZodOptional<z.ZodString>;
|
|
513
|
+
}, z.core.$loose>;
|
|
514
|
+
instructions: z.ZodOptional<z.ZodString>;
|
|
471
515
|
}, z.core.$loose>;
|
|
472
516
|
type InitializeResult = z.infer<typeof InitializeResultSchema>;
|
|
473
517
|
type PaginatedRequest = Request & {
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
518
|
+
params?: BaseParams & {
|
|
519
|
+
cursor?: string;
|
|
520
|
+
};
|
|
477
521
|
};
|
|
478
522
|
declare const ListToolsResultSchema: z.ZodObject<{
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
}, z.core.$loose>>;
|
|
498
|
-
_meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
523
|
+
_meta: z.ZodOptional<z.ZodObject<{}, z.core.$loose>>;
|
|
524
|
+
resultType: z.ZodOptional<z.ZodString>;
|
|
525
|
+
nextCursor: z.ZodOptional<z.ZodString>;
|
|
526
|
+
tools: z.ZodArray<z.ZodObject<{
|
|
527
|
+
name: z.ZodString;
|
|
528
|
+
title: z.ZodOptional<z.ZodString>;
|
|
529
|
+
description: z.ZodOptional<z.ZodString>;
|
|
530
|
+
inputSchema: z.ZodObject<{
|
|
531
|
+
type: z.ZodOptional<z.ZodUnknown>;
|
|
532
|
+
properties: z.ZodOptional<z.ZodObject<{}, z.core.$loose>>;
|
|
533
|
+
}, z.core.$loose>;
|
|
534
|
+
outputSchema: z.ZodOptional<z.ZodObject<{}, z.core.$loose>>;
|
|
535
|
+
annotations: z.ZodOptional<z.ZodObject<{
|
|
536
|
+
title: z.ZodOptional<z.ZodString>;
|
|
537
|
+
readOnlyHint: z.ZodOptional<z.ZodBoolean>;
|
|
538
|
+
destructiveHint: z.ZodOptional<z.ZodBoolean>;
|
|
539
|
+
idempotentHint: z.ZodOptional<z.ZodBoolean>;
|
|
540
|
+
openWorldHint: z.ZodOptional<z.ZodBoolean>;
|
|
499
541
|
}, z.core.$loose>>;
|
|
542
|
+
_meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
543
|
+
}, z.core.$loose>>;
|
|
500
544
|
}, z.core.$loose>;
|
|
501
545
|
type ListToolsResult = z.infer<typeof ListToolsResultSchema>;
|
|
502
546
|
declare const ListResourcesResultSchema: z.ZodObject<{
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
547
|
+
_meta: z.ZodOptional<z.ZodObject<{}, z.core.$loose>>;
|
|
548
|
+
resultType: z.ZodOptional<z.ZodString>;
|
|
549
|
+
nextCursor: z.ZodOptional<z.ZodString>;
|
|
550
|
+
resources: z.ZodArray<z.ZodObject<{
|
|
551
|
+
uri: z.ZodString;
|
|
552
|
+
name: z.ZodString;
|
|
553
|
+
title: z.ZodOptional<z.ZodString>;
|
|
554
|
+
description: z.ZodOptional<z.ZodString>;
|
|
555
|
+
mimeType: z.ZodOptional<z.ZodString>;
|
|
556
|
+
size: z.ZodOptional<z.ZodNumber>;
|
|
557
|
+
}, z.core.$loose>>;
|
|
514
558
|
}, z.core.$loose>;
|
|
515
559
|
type ListResourcesResult = z.infer<typeof ListResourcesResultSchema>;
|
|
516
560
|
declare const CallToolResultSchema: z.ZodUnion<[z.ZodUnion<[z.ZodObject<{
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
561
|
+
_meta: z.ZodOptional<z.ZodObject<{}, z.core.$loose>>;
|
|
562
|
+
resultType: z.ZodOptional<z.ZodString>;
|
|
563
|
+
content: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
|
|
564
|
+
type: z.ZodLiteral<"text">;
|
|
565
|
+
text: z.ZodString;
|
|
566
|
+
}, z.core.$loose>, z.ZodObject<{
|
|
567
|
+
type: z.ZodLiteral<"image">;
|
|
568
|
+
data: z.ZodBase64;
|
|
569
|
+
mimeType: z.ZodString;
|
|
570
|
+
}, z.core.$loose>, z.ZodObject<{
|
|
571
|
+
type: z.ZodLiteral<"resource">;
|
|
572
|
+
resource: z.ZodUnion<readonly [z.ZodObject<{
|
|
573
|
+
uri: z.ZodString;
|
|
574
|
+
name: z.ZodOptional<z.ZodString>;
|
|
575
|
+
title: z.ZodOptional<z.ZodString>;
|
|
576
|
+
mimeType: z.ZodOptional<z.ZodString>;
|
|
577
|
+
text: z.ZodString;
|
|
526
578
|
}, z.core.$loose>, z.ZodObject<{
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
name: z.ZodString;
|
|
545
|
-
description: z.ZodOptional<z.ZodString>;
|
|
546
|
-
mimeType: z.ZodOptional<z.ZodString>;
|
|
547
|
-
}, z.core.$loose>, z.ZodObject<{
|
|
548
|
-
type: z.ZodString;
|
|
549
|
-
}, z.core.$loose>]>>;
|
|
550
|
-
structuredContent: z.ZodOptional<z.ZodUnknown>;
|
|
551
|
-
isError: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
579
|
+
uri: z.ZodString;
|
|
580
|
+
name: z.ZodOptional<z.ZodString>;
|
|
581
|
+
title: z.ZodOptional<z.ZodString>;
|
|
582
|
+
mimeType: z.ZodOptional<z.ZodString>;
|
|
583
|
+
blob: z.ZodBase64;
|
|
584
|
+
}, z.core.$loose>]>;
|
|
585
|
+
}, z.core.$loose>, z.ZodObject<{
|
|
586
|
+
type: z.ZodLiteral<"resource_link">;
|
|
587
|
+
uri: z.ZodString;
|
|
588
|
+
name: z.ZodString;
|
|
589
|
+
description: z.ZodOptional<z.ZodString>;
|
|
590
|
+
mimeType: z.ZodOptional<z.ZodString>;
|
|
591
|
+
}, z.core.$loose>, z.ZodObject<{
|
|
592
|
+
type: z.ZodString;
|
|
593
|
+
}, z.core.$loose>]>>;
|
|
594
|
+
structuredContent: z.ZodOptional<z.ZodUnknown>;
|
|
595
|
+
isError: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
552
596
|
}, z.core.$loose>, z.ZodPipe<z.ZodPipe<z.ZodObject<{
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
|
|
597
|
+
_meta: z.ZodOptional<z.ZodObject<{}, z.core.$loose>>;
|
|
598
|
+
resultType: z.ZodOptional<z.ZodString>;
|
|
599
|
+
content: z.ZodOptional<z.ZodNever>;
|
|
600
|
+
structuredContent: z.ZodJSONSchema;
|
|
601
|
+
isError: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
558
602
|
}, z.core.$loose>, z.ZodTransform<{
|
|
603
|
+
[x: string]: unknown;
|
|
604
|
+
content: ({
|
|
559
605
|
[x: string]: unknown;
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
title?: string | undefined;
|
|
578
|
-
mimeType?: string | undefined;
|
|
579
|
-
} | {
|
|
580
|
-
[x: string]: unknown;
|
|
581
|
-
uri: string;
|
|
582
|
-
blob: string;
|
|
583
|
-
name?: string | undefined;
|
|
584
|
-
title?: string | undefined;
|
|
585
|
-
mimeType?: string | undefined;
|
|
586
|
-
};
|
|
587
|
-
} | {
|
|
588
|
-
[x: string]: unknown;
|
|
589
|
-
type: "resource_link";
|
|
590
|
-
uri: string;
|
|
591
|
-
name: string;
|
|
592
|
-
description?: string | undefined;
|
|
593
|
-
mimeType?: string | undefined;
|
|
606
|
+
type: "text";
|
|
607
|
+
text: string;
|
|
608
|
+
} | {
|
|
609
|
+
[x: string]: unknown;
|
|
610
|
+
type: "image";
|
|
611
|
+
data: string;
|
|
612
|
+
mimeType: string;
|
|
613
|
+
} | {
|
|
614
|
+
[x: string]: unknown;
|
|
615
|
+
type: "resource";
|
|
616
|
+
resource: {
|
|
617
|
+
[x: string]: unknown;
|
|
618
|
+
uri: string;
|
|
619
|
+
text: string;
|
|
620
|
+
name?: string | undefined;
|
|
621
|
+
title?: string | undefined;
|
|
622
|
+
mimeType?: string | undefined;
|
|
594
623
|
} | {
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
|
|
624
|
+
[x: string]: unknown;
|
|
625
|
+
uri: string;
|
|
626
|
+
blob: string;
|
|
627
|
+
name?: string | undefined;
|
|
628
|
+
title?: string | undefined;
|
|
629
|
+
mimeType?: string | undefined;
|
|
630
|
+
};
|
|
631
|
+
} | {
|
|
632
|
+
[x: string]: unknown;
|
|
633
|
+
type: "resource_link";
|
|
634
|
+
uri: string;
|
|
635
|
+
name: string;
|
|
636
|
+
description?: string | undefined;
|
|
637
|
+
mimeType?: string | undefined;
|
|
638
|
+
} | {
|
|
639
|
+
[x: string]: unknown;
|
|
640
|
+
type: string;
|
|
641
|
+
})[];
|
|
642
|
+
_meta?: {
|
|
643
|
+
[x: string]: unknown;
|
|
644
|
+
} | undefined;
|
|
645
|
+
resultType?: string | undefined;
|
|
646
|
+
structuredContent?: unknown;
|
|
647
|
+
isError?: boolean | undefined;
|
|
604
648
|
}, {
|
|
649
|
+
[x: string]: unknown;
|
|
650
|
+
structuredContent: z.core.util.JSONType;
|
|
651
|
+
_meta?: {
|
|
605
652
|
[x: string]: unknown;
|
|
606
|
-
|
|
607
|
-
|
|
608
|
-
|
|
609
|
-
|
|
610
|
-
resultType?: string | undefined;
|
|
611
|
-
content?: undefined;
|
|
612
|
-
isError?: boolean | undefined;
|
|
653
|
+
} | undefined;
|
|
654
|
+
resultType?: string | undefined;
|
|
655
|
+
content?: undefined;
|
|
656
|
+
isError?: boolean | undefined;
|
|
613
657
|
}>>, z.ZodObject<{
|
|
614
|
-
|
|
615
|
-
|
|
616
|
-
|
|
617
|
-
|
|
618
|
-
|
|
619
|
-
|
|
620
|
-
|
|
621
|
-
|
|
622
|
-
|
|
623
|
-
|
|
624
|
-
|
|
625
|
-
|
|
626
|
-
|
|
627
|
-
|
|
628
|
-
|
|
629
|
-
|
|
630
|
-
|
|
631
|
-
}, z.core.$loose>, z.ZodObject<{
|
|
632
|
-
uri: z.ZodString;
|
|
633
|
-
name: z.ZodOptional<z.ZodString>;
|
|
634
|
-
title: z.ZodOptional<z.ZodString>;
|
|
635
|
-
mimeType: z.ZodOptional<z.ZodString>;
|
|
636
|
-
blob: z.ZodBase64;
|
|
637
|
-
}, z.core.$loose>]>;
|
|
658
|
+
_meta: z.ZodOptional<z.ZodObject<{}, z.core.$loose>>;
|
|
659
|
+
resultType: z.ZodOptional<z.ZodString>;
|
|
660
|
+
content: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
|
|
661
|
+
type: z.ZodLiteral<"text">;
|
|
662
|
+
text: z.ZodString;
|
|
663
|
+
}, z.core.$loose>, z.ZodObject<{
|
|
664
|
+
type: z.ZodLiteral<"image">;
|
|
665
|
+
data: z.ZodBase64;
|
|
666
|
+
mimeType: z.ZodString;
|
|
667
|
+
}, z.core.$loose>, z.ZodObject<{
|
|
668
|
+
type: z.ZodLiteral<"resource">;
|
|
669
|
+
resource: z.ZodUnion<readonly [z.ZodObject<{
|
|
670
|
+
uri: z.ZodString;
|
|
671
|
+
name: z.ZodOptional<z.ZodString>;
|
|
672
|
+
title: z.ZodOptional<z.ZodString>;
|
|
673
|
+
mimeType: z.ZodOptional<z.ZodString>;
|
|
674
|
+
text: z.ZodString;
|
|
638
675
|
}, z.core.$loose>, z.ZodObject<{
|
|
639
|
-
|
|
640
|
-
|
|
641
|
-
|
|
642
|
-
|
|
643
|
-
|
|
644
|
-
}, z.core.$loose
|
|
645
|
-
|
|
646
|
-
|
|
647
|
-
|
|
648
|
-
|
|
676
|
+
uri: z.ZodString;
|
|
677
|
+
name: z.ZodOptional<z.ZodString>;
|
|
678
|
+
title: z.ZodOptional<z.ZodString>;
|
|
679
|
+
mimeType: z.ZodOptional<z.ZodString>;
|
|
680
|
+
blob: z.ZodBase64;
|
|
681
|
+
}, z.core.$loose>]>;
|
|
682
|
+
}, z.core.$loose>, z.ZodObject<{
|
|
683
|
+
type: z.ZodLiteral<"resource_link">;
|
|
684
|
+
uri: z.ZodString;
|
|
685
|
+
name: z.ZodString;
|
|
686
|
+
description: z.ZodOptional<z.ZodString>;
|
|
687
|
+
mimeType: z.ZodOptional<z.ZodString>;
|
|
688
|
+
}, z.core.$loose>, z.ZodObject<{
|
|
689
|
+
type: z.ZodString;
|
|
690
|
+
}, z.core.$loose>]>>;
|
|
691
|
+
structuredContent: z.ZodOptional<z.ZodUnknown>;
|
|
692
|
+
isError: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
649
693
|
}, z.core.$loose>>]>, z.ZodObject<{
|
|
650
|
-
|
|
651
|
-
|
|
652
|
-
|
|
694
|
+
_meta: z.ZodOptional<z.ZodObject<{}, z.core.$loose>>;
|
|
695
|
+
resultType: z.ZodOptional<z.ZodString>;
|
|
696
|
+
toolResult: z.ZodNonOptional<z.ZodUnknown>;
|
|
653
697
|
}, z.core.$loose>]>;
|
|
654
698
|
type CallToolResult = z.infer<typeof CallToolResultSchema>;
|
|
655
699
|
declare const ListResourceTemplatesResultSchema: z.ZodObject<{
|
|
656
|
-
|
|
657
|
-
|
|
658
|
-
|
|
659
|
-
|
|
660
|
-
|
|
661
|
-
|
|
662
|
-
|
|
663
|
-
|
|
664
|
-
|
|
700
|
+
_meta: z.ZodOptional<z.ZodObject<{}, z.core.$loose>>;
|
|
701
|
+
resultType: z.ZodOptional<z.ZodString>;
|
|
702
|
+
resourceTemplates: z.ZodArray<z.ZodObject<{
|
|
703
|
+
uriTemplate: z.ZodString;
|
|
704
|
+
name: z.ZodString;
|
|
705
|
+
title: z.ZodOptional<z.ZodString>;
|
|
706
|
+
description: z.ZodOptional<z.ZodString>;
|
|
707
|
+
mimeType: z.ZodOptional<z.ZodString>;
|
|
708
|
+
}, z.core.$loose>>;
|
|
665
709
|
}, z.core.$loose>;
|
|
666
710
|
type ListResourceTemplatesResult = z.infer<typeof ListResourceTemplatesResultSchema>;
|
|
667
711
|
declare const ReadResourceResultSchema: z.ZodObject<{
|
|
668
|
-
|
|
669
|
-
|
|
670
|
-
|
|
671
|
-
|
|
672
|
-
|
|
673
|
-
|
|
674
|
-
|
|
675
|
-
|
|
676
|
-
|
|
677
|
-
|
|
678
|
-
|
|
679
|
-
|
|
680
|
-
|
|
681
|
-
|
|
682
|
-
|
|
712
|
+
_meta: z.ZodOptional<z.ZodObject<{}, z.core.$loose>>;
|
|
713
|
+
resultType: z.ZodOptional<z.ZodString>;
|
|
714
|
+
contents: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
|
|
715
|
+
uri: z.ZodString;
|
|
716
|
+
name: z.ZodOptional<z.ZodString>;
|
|
717
|
+
title: z.ZodOptional<z.ZodString>;
|
|
718
|
+
mimeType: z.ZodOptional<z.ZodString>;
|
|
719
|
+
text: z.ZodString;
|
|
720
|
+
}, z.core.$loose>, z.ZodObject<{
|
|
721
|
+
uri: z.ZodString;
|
|
722
|
+
name: z.ZodOptional<z.ZodString>;
|
|
723
|
+
title: z.ZodOptional<z.ZodString>;
|
|
724
|
+
mimeType: z.ZodOptional<z.ZodString>;
|
|
725
|
+
blob: z.ZodBase64;
|
|
726
|
+
}, z.core.$loose>]>>;
|
|
683
727
|
}, z.core.$loose>;
|
|
684
728
|
type ReadResourceResult = z.infer<typeof ReadResourceResultSchema>;
|
|
685
729
|
declare const CompleteRequestParamsSchema: z.ZodObject<{
|
|
686
|
-
|
|
687
|
-
|
|
688
|
-
|
|
689
|
-
|
|
690
|
-
|
|
691
|
-
|
|
692
|
-
|
|
693
|
-
|
|
694
|
-
|
|
695
|
-
|
|
696
|
-
|
|
697
|
-
|
|
698
|
-
|
|
699
|
-
|
|
700
|
-
|
|
730
|
+
_meta: z.ZodOptional<z.ZodObject<{}, z.core.$loose>>;
|
|
731
|
+
ref: z.ZodUnion<readonly [z.ZodObject<{
|
|
732
|
+
type: z.ZodLiteral<"ref/prompt">;
|
|
733
|
+
name: z.ZodString;
|
|
734
|
+
}, z.core.$loose>, z.ZodObject<{
|
|
735
|
+
type: z.ZodLiteral<"ref/resource">;
|
|
736
|
+
uri: z.ZodString;
|
|
737
|
+
}, z.core.$loose>]>;
|
|
738
|
+
argument: z.ZodObject<{
|
|
739
|
+
name: z.ZodString;
|
|
740
|
+
value: z.ZodString;
|
|
741
|
+
}, z.core.$loose>;
|
|
742
|
+
context: z.ZodOptional<z.ZodObject<{
|
|
743
|
+
arguments: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
744
|
+
}, z.core.$loose>>;
|
|
701
745
|
}, z.core.$loose>;
|
|
702
746
|
type CompleteRequestParams = z.infer<typeof CompleteRequestParamsSchema>;
|
|
703
747
|
declare const CompleteResultSchema: z.ZodObject<{
|
|
704
|
-
|
|
705
|
-
|
|
706
|
-
|
|
707
|
-
|
|
708
|
-
|
|
709
|
-
|
|
710
|
-
|
|
748
|
+
_meta: z.ZodOptional<z.ZodObject<{}, z.core.$loose>>;
|
|
749
|
+
resultType: z.ZodOptional<z.ZodString>;
|
|
750
|
+
completion: z.ZodObject<{
|
|
751
|
+
values: z.ZodArray<z.ZodString>;
|
|
752
|
+
total: z.ZodOptional<z.ZodNumber>;
|
|
753
|
+
hasMore: z.ZodOptional<z.ZodBoolean>;
|
|
754
|
+
}, z.core.$loose>;
|
|
711
755
|
}, z.core.$loose>;
|
|
712
756
|
type CompleteResult = z.infer<typeof CompleteResultSchema>;
|
|
713
757
|
declare const ListPromptsResultSchema: z.ZodObject<{
|
|
714
|
-
|
|
715
|
-
|
|
716
|
-
|
|
717
|
-
|
|
718
|
-
|
|
719
|
-
|
|
720
|
-
|
|
721
|
-
|
|
722
|
-
|
|
723
|
-
|
|
724
|
-
|
|
725
|
-
|
|
726
|
-
|
|
758
|
+
_meta: z.ZodOptional<z.ZodObject<{}, z.core.$loose>>;
|
|
759
|
+
resultType: z.ZodOptional<z.ZodString>;
|
|
760
|
+
nextCursor: z.ZodOptional<z.ZodString>;
|
|
761
|
+
prompts: z.ZodArray<z.ZodObject<{
|
|
762
|
+
name: z.ZodString;
|
|
763
|
+
title: z.ZodOptional<z.ZodString>;
|
|
764
|
+
description: z.ZodOptional<z.ZodString>;
|
|
765
|
+
arguments: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
766
|
+
name: z.ZodString;
|
|
767
|
+
description: z.ZodOptional<z.ZodString>;
|
|
768
|
+
required: z.ZodOptional<z.ZodBoolean>;
|
|
769
|
+
}, z.core.$loose>>>;
|
|
770
|
+
}, z.core.$loose>>;
|
|
727
771
|
}, z.core.$loose>;
|
|
728
772
|
type ListPromptsResult = z.infer<typeof ListPromptsResultSchema>;
|
|
729
773
|
declare const GetPromptResultSchema: z.ZodObject<{
|
|
730
|
-
|
|
731
|
-
|
|
732
|
-
|
|
733
|
-
|
|
734
|
-
|
|
735
|
-
|
|
736
|
-
|
|
737
|
-
|
|
738
|
-
|
|
739
|
-
|
|
740
|
-
|
|
741
|
-
|
|
742
|
-
|
|
743
|
-
|
|
744
|
-
|
|
745
|
-
|
|
746
|
-
|
|
747
|
-
|
|
748
|
-
|
|
749
|
-
|
|
750
|
-
|
|
751
|
-
|
|
752
|
-
|
|
753
|
-
|
|
754
|
-
|
|
755
|
-
|
|
756
|
-
|
|
757
|
-
|
|
758
|
-
|
|
759
|
-
|
|
760
|
-
|
|
761
|
-
|
|
762
|
-
|
|
763
|
-
|
|
764
|
-
|
|
774
|
+
_meta: z.ZodOptional<z.ZodObject<{}, z.core.$loose>>;
|
|
775
|
+
resultType: z.ZodOptional<z.ZodString>;
|
|
776
|
+
description: z.ZodOptional<z.ZodString>;
|
|
777
|
+
messages: z.ZodArray<z.ZodObject<{
|
|
778
|
+
role: z.ZodUnion<readonly [z.ZodLiteral<"user">, z.ZodLiteral<"assistant">]>;
|
|
779
|
+
content: z.ZodUnion<readonly [z.ZodObject<{
|
|
780
|
+
type: z.ZodLiteral<"text">;
|
|
781
|
+
text: z.ZodString;
|
|
782
|
+
}, z.core.$loose>, z.ZodObject<{
|
|
783
|
+
type: z.ZodLiteral<"image">;
|
|
784
|
+
data: z.ZodBase64;
|
|
785
|
+
mimeType: z.ZodString;
|
|
786
|
+
}, z.core.$loose>, z.ZodObject<{
|
|
787
|
+
type: z.ZodLiteral<"resource">;
|
|
788
|
+
resource: z.ZodUnion<readonly [z.ZodObject<{
|
|
789
|
+
uri: z.ZodString;
|
|
790
|
+
name: z.ZodOptional<z.ZodString>;
|
|
791
|
+
title: z.ZodOptional<z.ZodString>;
|
|
792
|
+
mimeType: z.ZodOptional<z.ZodString>;
|
|
793
|
+
text: z.ZodString;
|
|
794
|
+
}, z.core.$loose>, z.ZodObject<{
|
|
795
|
+
uri: z.ZodString;
|
|
796
|
+
name: z.ZodOptional<z.ZodString>;
|
|
797
|
+
title: z.ZodOptional<z.ZodString>;
|
|
798
|
+
mimeType: z.ZodOptional<z.ZodString>;
|
|
799
|
+
blob: z.ZodBase64;
|
|
800
|
+
}, z.core.$loose>]>;
|
|
801
|
+
}, z.core.$loose>, z.ZodObject<{
|
|
802
|
+
type: z.ZodLiteral<"resource_link">;
|
|
803
|
+
uri: z.ZodString;
|
|
804
|
+
name: z.ZodString;
|
|
805
|
+
description: z.ZodOptional<z.ZodString>;
|
|
806
|
+
mimeType: z.ZodOptional<z.ZodString>;
|
|
807
|
+
}, z.core.$loose>]>;
|
|
808
|
+
}, z.core.$loose>>;
|
|
765
809
|
}, z.core.$loose>;
|
|
766
810
|
type GetPromptResult = z.infer<typeof GetPromptResultSchema>;
|
|
767
|
-
declare const ElicitationRequestSchema: z.ZodObject<{
|
|
768
|
-
|
|
769
|
-
|
|
770
|
-
|
|
771
|
-
|
|
772
|
-
|
|
773
|
-
|
|
811
|
+
export declare const ElicitationRequestSchema: z.ZodObject<{
|
|
812
|
+
method: z.ZodLiteral<"elicitation/create">;
|
|
813
|
+
params: z.ZodObject<{
|
|
814
|
+
_meta: z.ZodOptional<z.ZodObject<{}, z.core.$loose>>;
|
|
815
|
+
message: z.ZodString;
|
|
816
|
+
requestedSchema: z.ZodUnknown;
|
|
817
|
+
}, z.core.$loose>;
|
|
774
818
|
}, z.core.$strip>;
|
|
775
819
|
type ElicitationRequest = z.infer<typeof ElicitationRequestSchema>;
|
|
776
|
-
declare const ElicitResultSchema: z.ZodObject<{
|
|
777
|
-
|
|
778
|
-
|
|
779
|
-
|
|
780
|
-
|
|
820
|
+
export declare const ElicitResultSchema: z.ZodObject<{
|
|
821
|
+
_meta: z.ZodOptional<z.ZodObject<{}, z.core.$loose>>;
|
|
822
|
+
resultType: z.ZodOptional<z.ZodString>;
|
|
823
|
+
action: z.ZodUnion<readonly [z.ZodLiteral<"accept">, z.ZodLiteral<"decline">, z.ZodLiteral<"cancel">]>;
|
|
824
|
+
content: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
781
825
|
}, z.core.$loose>;
|
|
782
826
|
type ElicitResult = z.infer<typeof ElicitResultSchema>;
|
|
783
|
-
|
|
827
|
+
//#endregion
|
|
828
|
+
//#region src/tool/mcp-client.d.ts
|
|
784
829
|
interface MCPClientConfig {
|
|
785
|
-
|
|
786
|
-
|
|
787
|
-
|
|
788
|
-
|
|
789
|
-
|
|
790
|
-
|
|
791
|
-
|
|
792
|
-
|
|
793
|
-
|
|
794
|
-
|
|
795
|
-
|
|
796
|
-
|
|
797
|
-
|
|
798
|
-
|
|
799
|
-
|
|
800
|
-
|
|
801
|
-
|
|
802
|
-
|
|
803
|
-
|
|
804
|
-
|
|
805
|
-
|
|
806
|
-
|
|
807
|
-
|
|
808
|
-
|
|
809
|
-
|
|
810
|
-
|
|
811
|
-
|
|
812
|
-
|
|
813
|
-
|
|
814
|
-
|
|
815
|
-
|
|
816
|
-
|
|
817
|
-
|
|
818
|
-
|
|
819
|
-
|
|
820
|
-
|
|
821
|
-
|
|
822
|
-
|
|
823
|
-
|
|
824
|
-
|
|
825
|
-
|
|
826
|
-
|
|
827
|
-
|
|
828
|
-
|
|
829
|
-
|
|
830
|
-
|
|
831
|
-
|
|
832
|
-
|
|
833
|
-
|
|
830
|
+
/** Transport configuration for connecting to the MCP server */
|
|
831
|
+
transport: MCPTransportConfig | MCPTransport;
|
|
832
|
+
/**
|
|
833
|
+
* Whether transports that support stateless protocol discovery should probe
|
|
834
|
+
* with `server/discover` before falling back to legacy initialization.
|
|
835
|
+
*
|
|
836
|
+
* Disable this for legacy servers that require `initialize` to be the first
|
|
837
|
+
* request.
|
|
838
|
+
*
|
|
839
|
+
* @default true
|
|
840
|
+
*/
|
|
841
|
+
protocolVersionDiscovery?: boolean;
|
|
842
|
+
/**
|
|
843
|
+
* Options that bound or cancel transport startup and the initialize request.
|
|
844
|
+
*/
|
|
845
|
+
initializationOptions?: RequestOptions;
|
|
846
|
+
/** Optional callback for uncaught errors */
|
|
847
|
+
onUncaughtError?: (error: unknown) => void;
|
|
848
|
+
/**
|
|
849
|
+
* Maximum number of retries for transient MCP tool call failures.
|
|
850
|
+
*
|
|
851
|
+
* Set to 0 to disable retries. Retries only apply to tools/call requests.
|
|
852
|
+
* JSON-RPC application errors, such as invalid params, are not retried.
|
|
853
|
+
*
|
|
854
|
+
* @default 0
|
|
855
|
+
*/
|
|
856
|
+
maxRetries?: number;
|
|
857
|
+
/**
|
|
858
|
+
* Initialize result from a previous MCP session. When provided, the client
|
|
859
|
+
* starts the transport and reuses this metadata without sending a new
|
|
860
|
+
* initialize request.
|
|
861
|
+
*/
|
|
862
|
+
initialInitializeResult?: InitializeResult;
|
|
863
|
+
/** Optional client name, defaults to 'ai-sdk-mcp-client' */
|
|
864
|
+
clientName?: string;
|
|
865
|
+
/**
|
|
866
|
+
* Optional client name, defaults to 'ai-sdk-mcp-client'
|
|
867
|
+
*
|
|
868
|
+
* @deprecated Use `clientName` instead.
|
|
869
|
+
*/
|
|
870
|
+
name?: string;
|
|
871
|
+
/** Optional client version, defaults to '1.0.0' */
|
|
872
|
+
version?: string;
|
|
873
|
+
/**
|
|
874
|
+
* Optional client capabilities to advertise during initialization
|
|
875
|
+
*
|
|
876
|
+
* NOTE: It is up to the client application to handle the requests properly. This parameter just helps surface the request from the server
|
|
877
|
+
*/
|
|
878
|
+
capabilities?: ClientCapabilities;
|
|
834
879
|
}
|
|
835
|
-
declare function createMCPClient(config: MCPClientConfig): Promise<MCPClient>;
|
|
880
|
+
export declare function createMCPClient(config: MCPClientConfig): Promise<MCPClient>;
|
|
836
881
|
interface MCPClient {
|
|
837
|
-
|
|
838
|
-
|
|
839
|
-
|
|
840
|
-
|
|
841
|
-
|
|
842
|
-
|
|
843
|
-
|
|
844
|
-
|
|
845
|
-
|
|
846
|
-
|
|
847
|
-
|
|
848
|
-
|
|
849
|
-
|
|
850
|
-
|
|
851
|
-
|
|
852
|
-
|
|
853
|
-
|
|
854
|
-
|
|
855
|
-
|
|
856
|
-
|
|
857
|
-
|
|
858
|
-
|
|
859
|
-
|
|
860
|
-
|
|
861
|
-
|
|
862
|
-
|
|
863
|
-
|
|
864
|
-
|
|
865
|
-
|
|
866
|
-
|
|
867
|
-
|
|
868
|
-
|
|
869
|
-
|
|
870
|
-
|
|
871
|
-
|
|
872
|
-
|
|
873
|
-
|
|
874
|
-
|
|
875
|
-
|
|
876
|
-
|
|
877
|
-
|
|
878
|
-
|
|
879
|
-
|
|
880
|
-
|
|
881
|
-
|
|
882
|
-
|
|
883
|
-
|
|
884
|
-
|
|
885
|
-
|
|
886
|
-
|
|
887
|
-
|
|
888
|
-
|
|
889
|
-
|
|
890
|
-
|
|
891
|
-
|
|
892
|
-
|
|
893
|
-
|
|
894
|
-
|
|
895
|
-
|
|
896
|
-
|
|
897
|
-
|
|
898
|
-
|
|
899
|
-
|
|
900
|
-
|
|
901
|
-
|
|
902
|
-
|
|
903
|
-
|
|
904
|
-
|
|
882
|
+
/**
|
|
883
|
+
* Information about the connected MCP server, as reported during initialization.
|
|
884
|
+
* @see https://modelcontextprotocol.io/specification/2025-11-25/schema#implementation
|
|
885
|
+
*/
|
|
886
|
+
readonly serverInfo: Configuration;
|
|
887
|
+
/**
|
|
888
|
+
* The full initialize result used by this client, either from the server
|
|
889
|
+
* during initialization or from `initialInitializeResult`.
|
|
890
|
+
*/
|
|
891
|
+
readonly initializeResult: InitializeResult;
|
|
892
|
+
/**
|
|
893
|
+
* Optional instructions provided by the server during the initialize handshake.
|
|
894
|
+
*
|
|
895
|
+
* These describe how to use the server and its features, and can be used by clients
|
|
896
|
+
* to improve LLM interactions (e.g. by including them in the system prompt).
|
|
897
|
+
*
|
|
898
|
+
* @see https://modelcontextprotocol.io/specification/2025-11-25/schema#initializeresult
|
|
899
|
+
*/
|
|
900
|
+
readonly instructions?: string;
|
|
901
|
+
tools<TOOL_SCHEMAS extends ToolSchemas = 'automatic'>(options?: {
|
|
902
|
+
schemas?: TOOL_SCHEMAS;
|
|
903
|
+
}): Promise<McpToolSet<TOOL_SCHEMAS>>;
|
|
904
|
+
/**
|
|
905
|
+
* Lists available tools from the MCP server.
|
|
906
|
+
*/
|
|
907
|
+
listTools(options?: {
|
|
908
|
+
params?: PaginatedRequest['params'];
|
|
909
|
+
options?: RequestOptions;
|
|
910
|
+
}): Promise<ListToolsResult>;
|
|
911
|
+
/**
|
|
912
|
+
* Calls a tool on the MCP server.
|
|
913
|
+
*/
|
|
914
|
+
callTool(args: {
|
|
915
|
+
name: string;
|
|
916
|
+
arguments?: Record<string, unknown>;
|
|
917
|
+
options?: RequestOptions;
|
|
918
|
+
}): Promise<CallToolResult>;
|
|
919
|
+
/**
|
|
920
|
+
* Creates AI SDK tools from tool definitions.
|
|
921
|
+
*/
|
|
922
|
+
toolsFromDefinitions<TOOL_SCHEMAS extends ToolSchemas = 'automatic'>(definitions: ListToolsResult, options?: {
|
|
923
|
+
schemas?: TOOL_SCHEMAS;
|
|
924
|
+
}): McpToolSet<TOOL_SCHEMAS>;
|
|
925
|
+
listResources(options?: {
|
|
926
|
+
params?: PaginatedRequest['params'];
|
|
927
|
+
options?: RequestOptions;
|
|
928
|
+
}): Promise<ListResourcesResult>;
|
|
929
|
+
readResource(args: {
|
|
930
|
+
uri: string;
|
|
931
|
+
options?: RequestOptions;
|
|
932
|
+
}): Promise<ReadResourceResult>;
|
|
933
|
+
listResourceTemplates(options?: {
|
|
934
|
+
options?: RequestOptions;
|
|
935
|
+
}): Promise<ListResourceTemplatesResult>;
|
|
936
|
+
experimental_listPrompts(options?: {
|
|
937
|
+
params?: PaginatedRequest['params'];
|
|
938
|
+
options?: RequestOptions;
|
|
939
|
+
}): Promise<ListPromptsResult>;
|
|
940
|
+
experimental_getPrompt(args: {
|
|
941
|
+
name: string;
|
|
942
|
+
arguments?: Record<string, unknown>;
|
|
943
|
+
options?: RequestOptions;
|
|
944
|
+
}): Promise<GetPromptResult>;
|
|
945
|
+
complete(args: CompleteRequestParams & {
|
|
946
|
+
options?: RequestOptions;
|
|
947
|
+
}): Promise<CompleteResult>;
|
|
948
|
+
onElicitationRequest(schema: typeof ElicitationRequestSchema, handler: (request: ElicitationRequest) => Promise<ElicitResult> | ElicitResult): void;
|
|
949
|
+
close: () => Promise<void>;
|
|
905
950
|
}
|
|
906
|
-
|
|
951
|
+
//#endregion
|
|
952
|
+
//#region src/tool/mcp-apps.d.ts
|
|
907
953
|
/**
|
|
908
954
|
* MIME type for HTML resources that are meant to be rendered as MCP Apps.
|
|
909
955
|
*/
|
|
910
|
-
declare const MCP_APP_MIME_TYPE: "text/html;profile=mcp-app";
|
|
956
|
+
export declare const MCP_APP_MIME_TYPE: "text/html;profile=mcp-app";
|
|
911
957
|
/**
|
|
912
958
|
* Client capabilities to pass to `createMCPClient` when the host supports MCP Apps.
|
|
913
959
|
*/
|
|
914
|
-
declare const mcpAppClientCapabilities: {
|
|
915
|
-
|
|
916
|
-
|
|
917
|
-
|
|
918
|
-
};
|
|
960
|
+
export declare const mcpAppClientCapabilities: {
|
|
961
|
+
readonly extensions: {
|
|
962
|
+
readonly "io.modelcontextprotocol/ui": {
|
|
963
|
+
readonly mimeTypes: readonly ["text/html;profile=mcp-app"];
|
|
919
964
|
};
|
|
965
|
+
};
|
|
920
966
|
};
|
|
921
967
|
/**
|
|
922
968
|
* Content security policy metadata requested by an MCP App resource.
|
|
923
969
|
*/
|
|
924
970
|
type MCPAppResourceCSP = {
|
|
925
|
-
|
|
926
|
-
|
|
927
|
-
|
|
928
|
-
|
|
971
|
+
connectDomains?: string[];
|
|
972
|
+
resourceDomains?: string[];
|
|
973
|
+
frameDomains?: string[];
|
|
974
|
+
[key: string]: unknown;
|
|
929
975
|
};
|
|
930
976
|
/**
|
|
931
977
|
* Host rendering metadata from an MCP App resource.
|
|
932
978
|
*/
|
|
933
979
|
type MCPAppResourceMeta = {
|
|
934
|
-
|
|
935
|
-
|
|
936
|
-
|
|
937
|
-
|
|
980
|
+
prefersBorder?: boolean;
|
|
981
|
+
csp?: MCPAppResourceCSP;
|
|
982
|
+
permissions?: Record<string, unknown>;
|
|
983
|
+
[key: string]: unknown;
|
|
938
984
|
};
|
|
939
985
|
/**
|
|
940
986
|
* HTML and metadata needed by a host to render an MCP App.
|
|
941
987
|
*/
|
|
942
988
|
type MCPAppResource = {
|
|
943
|
-
|
|
944
|
-
|
|
945
|
-
|
|
946
|
-
|
|
989
|
+
uri: string;
|
|
990
|
+
mimeType: typeof MCP_APP_MIME_TYPE;
|
|
991
|
+
html: string;
|
|
992
|
+
meta?: MCPAppResourceMeta;
|
|
947
993
|
};
|
|
948
994
|
/**
|
|
949
995
|
* Splits tool definitions into model-visible tools and app-visible tools.
|
|
950
996
|
*/
|
|
951
|
-
declare function splitMCPAppTools(definitions: ListToolsResult): {
|
|
952
|
-
|
|
953
|
-
|
|
997
|
+
export declare function splitMCPAppTools(definitions: ListToolsResult): {
|
|
998
|
+
modelVisible: ListToolsResult;
|
|
999
|
+
appVisible: ListToolsResult;
|
|
954
1000
|
};
|
|
955
1001
|
/**
|
|
956
1002
|
* Reads a `ui://` resource from an MCP server and normalizes it for rendering.
|
|
957
1003
|
*/
|
|
958
|
-
declare function readMCPAppResource({ client, uri, options
|
|
959
|
-
|
|
960
|
-
|
|
961
|
-
|
|
1004
|
+
export declare function readMCPAppResource({ client, uri, options }: {
|
|
1005
|
+
client: Pick<MCPClient, 'readResource'>;
|
|
1006
|
+
uri: string;
|
|
1007
|
+
options?: RequestOptions;
|
|
962
1008
|
}): Promise<MCPAppResource>;
|
|
963
|
-
|
|
1009
|
+
//#endregion
|
|
1010
|
+
//#region src/tool/mcp-app-fingerprint.d.ts
|
|
964
1011
|
/**
|
|
965
1012
|
* Stable SHA-256 digest (base64url) over an MCP App resource's `html`, `csp`,
|
|
966
1013
|
* and `permissions`.
|
|
@@ -969,11 +1016,61 @@ declare function readMCPAppResource({ client, uri, options, }: {
|
|
|
969
1016
|
* {@link detectMCPAppResourceDrift} to detect a changed resource. Baseline
|
|
970
1017
|
* storage and the response are the host's concern, mirroring `fingerprintTools`.
|
|
971
1018
|
*/
|
|
972
|
-
declare function fingerprintMCPAppResource(resource: MCPAppResource): Promise<string>;
|
|
1019
|
+
export declare function fingerprintMCPAppResource(resource: MCPAppResource): Promise<string>;
|
|
973
1020
|
/**
|
|
974
1021
|
* Compares two fingerprints from {@link fingerprintMCPAppResource}. Returns
|
|
975
1022
|
* `true` when the current resource differs from its baseline.
|
|
976
1023
|
*/
|
|
977
|
-
declare function detectMCPAppResourceDrift(current: string, baseline: string): boolean;
|
|
978
|
-
|
|
979
|
-
|
|
1024
|
+
export declare function detectMCPAppResourceDrift(current: string, baseline: string): boolean;
|
|
1025
|
+
//#endregion
|
|
1026
|
+
//#region src/error/mcp-client-error.d.ts
|
|
1027
|
+
declare const symbol: unique symbol;
|
|
1028
|
+
/**
|
|
1029
|
+
* An error occurred with the MCP client.
|
|
1030
|
+
*/
|
|
1031
|
+
export declare class MCPClientError extends AISDKError {
|
|
1032
|
+
private readonly [symbol];
|
|
1033
|
+
readonly data?: unknown;
|
|
1034
|
+
/**
|
|
1035
|
+
* JSON-RPC error code from the server response, per the JSON-RPC 2.0
|
|
1036
|
+
* spec (e.g. `-32601` method-not-found, `-32602` invalid-params, or
|
|
1037
|
+
* MCP-specific codes such as `-32002` resource-not-found). This is the
|
|
1038
|
+
* application-level error code populated from `error.code` in the
|
|
1039
|
+
* server's JSON-RPC error payload. Distinct from `statusCode`, which
|
|
1040
|
+
* is the HTTP transport status.
|
|
1041
|
+
*/
|
|
1042
|
+
readonly code?: number;
|
|
1043
|
+
/**
|
|
1044
|
+
* HTTP status code from the failed response, when the error originated
|
|
1045
|
+
* from an HTTP-based transport. Undefined for stdio transport
|
|
1046
|
+
* errors and for failures that do not have an associated response
|
|
1047
|
+
* status (e.g. network errors, abort). Distinct from `code`, which is
|
|
1048
|
+
* the JSON-RPC application error code.
|
|
1049
|
+
*/
|
|
1050
|
+
readonly statusCode?: number;
|
|
1051
|
+
/**
|
|
1052
|
+
* URL of the MCP endpoint the failing request was sent to, when the
|
|
1053
|
+
* error originated from an HTTP transport failure.
|
|
1054
|
+
*/
|
|
1055
|
+
readonly url?: string;
|
|
1056
|
+
/**
|
|
1057
|
+
* Body of the failing HTTP response, decoded as text, when available.
|
|
1058
|
+
* Undefined when the body could not be read or the error did not have
|
|
1059
|
+
* an associated response.
|
|
1060
|
+
*/
|
|
1061
|
+
readonly responseBody?: string;
|
|
1062
|
+
constructor({ name, message, cause, data, code, statusCode, url, responseBody }: {
|
|
1063
|
+
name?: string;
|
|
1064
|
+
message: string;
|
|
1065
|
+
cause?: unknown;
|
|
1066
|
+
data?: unknown;
|
|
1067
|
+
code?: number;
|
|
1068
|
+
statusCode?: number;
|
|
1069
|
+
url?: string;
|
|
1070
|
+
responseBody?: string;
|
|
1071
|
+
});
|
|
1072
|
+
static isInstance(error: unknown): error is MCPClientError;
|
|
1073
|
+
}
|
|
1074
|
+
//#endregion
|
|
1075
|
+
export { type CallToolResult, type CompleteRequestParams, type CompleteResult, type Configuration, type ElicitResult, type ElicitationRequest, type InitializeResult, type JSONRPCError, type JSONRPCMessage, type JSONRPCNotification, type JSONRPCRequest, type JSONRPCResponse, type ListToolsResult, type MCPAppResource, type MCPAppResourceCSP, type MCPAppResourceMeta, type MCPClient, type MCPClient as experimental_MCPClient, type ClientCapabilities as MCPClientCapabilities, type ClientCapabilities as experimental_MCPClientCapabilities, type MCPClientConfig, type MCPClientConfig as experimental_MCPClientConfig, type MCPTransport, type MCPTransportCloseOptions, type MCPTransportSendOptions, type McpProviderMetadata, type McpToolAnnotations, type OAuthAuthorizationServerInformation, type OAuthClientInformation, type OAuthClientMetadata, type OAuthClientProvider, type OAuthTokens, createMCPClient as experimental_createMCPClient };
|
|
1076
|
+
//# sourceMappingURL=index.d.ts.map
|