@prefecthq/fastmcp-ts 0.0.2-alpha.0 → 0.0.2
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/dist/cli/index.cjs +43 -38
- package/dist/cli/index.cjs.map +1 -1
- package/dist/client.d.ts +3 -3
- package/dist/client.js +12 -7
- package/dist/client.js.map +1 -1
- package/dist/server.d.ts +5 -5
- package/dist/server.js +6 -6
- package/dist/server.js.map +1 -1
- package/package.json +1 -1
package/dist/server.d.ts
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { Transport } from '@modelcontextprotocol/sdk/shared/transport';
|
|
2
|
-
import { OAuthServerProvider, AuthorizationParams } from '@modelcontextprotocol/sdk/server/auth/provider';
|
|
1
|
+
import { Transport } from '@modelcontextprotocol/sdk/shared/transport.js';
|
|
2
|
+
import { OAuthServerProvider, AuthorizationParams } from '@modelcontextprotocol/sdk/server/auth/provider.js';
|
|
3
3
|
import { StandardSchemaV1 } from '@standard-schema/spec';
|
|
4
4
|
import { Readable, Writable } from 'node:stream';
|
|
5
5
|
import { Server } from '@modelcontextprotocol/sdk/server';
|
|
6
|
-
import { CallToolResult } from '@modelcontextprotocol/sdk/types';
|
|
6
|
+
import { CallToolResult } from '@modelcontextprotocol/sdk/types.js';
|
|
7
7
|
import { Response } from 'express';
|
|
8
|
-
import { OAuthClientInformationFull } from '@modelcontextprotocol/sdk/shared/auth';
|
|
9
|
-
import { AuthInfo } from '@modelcontextprotocol/sdk/server/auth/types';
|
|
8
|
+
import { OAuthClientInformationFull } from '@modelcontextprotocol/sdk/shared/auth.js';
|
|
9
|
+
import { AuthInfo } from '@modelcontextprotocol/sdk/server/auth/types.js';
|
|
10
10
|
|
|
11
11
|
interface AccessToken {
|
|
12
12
|
/** The raw bearer token string. */
|
package/dist/server.js
CHANGED
|
@@ -14,7 +14,7 @@ import {
|
|
|
14
14
|
GetPromptRequestSchema,
|
|
15
15
|
McpError as McpError3,
|
|
16
16
|
ErrorCode as ErrorCode3
|
|
17
|
-
} from "@modelcontextprotocol/sdk/types";
|
|
17
|
+
} from "@modelcontextprotocol/sdk/types.js";
|
|
18
18
|
import { randomUUID } from "crypto";
|
|
19
19
|
|
|
20
20
|
// src/server/auth/types.ts
|
|
@@ -127,7 +127,7 @@ function createContext(server, requestId, progressToken, auth, sessionState) {
|
|
|
127
127
|
}
|
|
128
128
|
|
|
129
129
|
// src/server/middleware.ts
|
|
130
|
-
import { McpError, ErrorCode, CancelledNotificationSchema } from "@modelcontextprotocol/sdk/types";
|
|
130
|
+
import { McpError, ErrorCode, CancelledNotificationSchema } from "@modelcontextprotocol/sdk/types.js";
|
|
131
131
|
var METHOD_HOOK_KEY = {
|
|
132
132
|
"tools/call": "onCallTool",
|
|
133
133
|
"tools/list": "onListTools",
|
|
@@ -390,7 +390,7 @@ var VersionFilter = class {
|
|
|
390
390
|
};
|
|
391
391
|
|
|
392
392
|
// src/server/tool.ts
|
|
393
|
-
import { McpError as McpError2, ErrorCode as ErrorCode2 } from "@modelcontextprotocol/sdk/types";
|
|
393
|
+
import { McpError as McpError2, ErrorCode as ErrorCode2 } from "@modelcontextprotocol/sdk/types.js";
|
|
394
394
|
var Image = class {
|
|
395
395
|
constructor(buffer, mimeType) {
|
|
396
396
|
this.buffer = buffer;
|
|
@@ -1904,7 +1904,7 @@ function debugTokenVerifier() {
|
|
|
1904
1904
|
|
|
1905
1905
|
// src/server/auth/oauth/provider.ts
|
|
1906
1906
|
import { randomUUID as randomUUID2 } from "crypto";
|
|
1907
|
-
import { UnsupportedGrantTypeError } from "@modelcontextprotocol/sdk/server/auth/errors";
|
|
1907
|
+
import { UnsupportedGrantTypeError } from "@modelcontextprotocol/sdk/server/auth/errors.js";
|
|
1908
1908
|
function oauthProvider(options = {}) {
|
|
1909
1909
|
const clients = /* @__PURE__ */ new Map();
|
|
1910
1910
|
const codes = /* @__PURE__ */ new Map();
|
|
@@ -2079,13 +2079,13 @@ function oauthProxy(options) {
|
|
|
2079
2079
|
}
|
|
2080
2080
|
|
|
2081
2081
|
// src/server/proxy.ts
|
|
2082
|
-
import { Client } from "@modelcontextprotocol/sdk/client/index";
|
|
2082
|
+
import { Client } from "@modelcontextprotocol/sdk/client/index.js";
|
|
2083
2083
|
import {
|
|
2084
2084
|
CallToolResultSchema,
|
|
2085
2085
|
ToolListChangedNotificationSchema,
|
|
2086
2086
|
ResourceListChangedNotificationSchema,
|
|
2087
2087
|
PromptListChangedNotificationSchema
|
|
2088
|
-
} from "@modelcontextprotocol/sdk/types";
|
|
2088
|
+
} from "@modelcontextprotocol/sdk/types.js";
|
|
2089
2089
|
import { parseTemplate } from "url-template";
|
|
2090
2090
|
async function buildProxyFromClient(client, options) {
|
|
2091
2091
|
const cacheTtl = options?.cacheTtl ?? 3e4;
|