fastmcp 4.29.1 → 4.29.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/README.md +0 -7
- package/dist/FastMCP.cjs +3 -3
- package/dist/FastMCP.js +2 -2
- package/dist/auth/index.cjs +2 -2
- package/dist/auth/index.js +1 -1
- package/dist/{chunk-RWPENEKV.js → chunk-PA3GWZUK.js} +9 -10
- package/dist/{chunk-RWPENEKV.js.map → chunk-PA3GWZUK.js.map} +1 -1
- package/dist/{chunk-VN5SZ6IE.js → chunk-T7EFBHCA.js} +2 -2
- package/dist/{chunk-5EEESM57.cjs → chunk-TN6CWWVW.cjs} +5 -5
- package/dist/{chunk-5EEESM57.cjs.map → chunk-TN6CWWVW.cjs.map} +1 -1
- package/dist/{chunk-UHJQUSUX.cjs → chunk-XP4NENWX.cjs} +9 -10
- package/dist/chunk-XP4NENWX.cjs.map +1 -0
- package/dist/examples/custom-routes.cjs +3 -3
- package/dist/examples/custom-routes.js +2 -2
- package/dist/openapi/index.cjs +8 -8
- package/dist/openapi/index.js +2 -2
- package/package.json +1 -1
- package/dist/chunk-UHJQUSUX.cjs.map +0 -1
- /package/dist/{chunk-VN5SZ6IE.js.map → chunk-T7EFBHCA.js.map} +0 -0
package/README.md
CHANGED
|
@@ -117,8 +117,6 @@ npx fastmcp dev src/examples/addition.ts
|
|
|
117
117
|
npx fastmcp inspect src/examples/addition.ts
|
|
118
118
|
```
|
|
119
119
|
|
|
120
|
-
If you are looking for a boilerplate repository to build your own MCP server, check out [fastmcp-boilerplate](https://github.com/punkpeye/fastmcp-boilerplate).
|
|
121
|
-
|
|
122
120
|
### Remote Server Options
|
|
123
121
|
|
|
124
122
|
FastMCP supports multiple transport options for remote communication, allowing an MCP hosted on a remote machine to be accessed over the network.
|
|
@@ -2856,13 +2854,8 @@ Refer to this [issue](https://github.com/punkpeye/fastmcp/issues/25#issuecomment
|
|
|
2856
2854
|
>
|
|
2857
2855
|
> If you've developed a server using FastMCP, please [submit a PR](https://github.com/punkpeye/fastmcp) to showcase it here!
|
|
2858
2856
|
|
|
2859
|
-
> [!NOTE]
|
|
2860
|
-
>
|
|
2861
|
-
> If you are looking for a boilerplate repository to build your own MCP server, check out [fastmcp-boilerplate](https://github.com/punkpeye/fastmcp-boilerplate).
|
|
2862
|
-
|
|
2863
2857
|
- [apinetwork/piapi-mcp-server](https://github.com/apinetwork/piapi-mcp-server) - generate media using Midjourney/Flux/Kling/LumaLabs/Udio/Chrip/Trellis
|
|
2864
2858
|
- [domdomegg/computer-use-mcp](https://github.com/domdomegg/computer-use-mcp) - controls your computer
|
|
2865
|
-
- [LiterallyBlah/Dradis-MCP](https://github.com/LiterallyBlah/Dradis-MCP) – manages projects and vulnerabilities in Dradis
|
|
2866
2859
|
- [Meeting-Baas/meeting-mcp](https://github.com/Meeting-Baas/meeting-mcp) - create meeting bots, search transcripts, and manage recording data
|
|
2867
2860
|
- [drumnation/unsplash-smart-mcp-server](https://github.com/drumnation/unsplash-smart-mcp-server) – enables AI agents to seamlessly search, recommend, and deliver professional stock photos from Unsplash
|
|
2868
2861
|
- [ssmanji89/halopsa-workflows-mcp](https://github.com/ssmanji89/halopsa-workflows-mcp) - HaloPSA Workflows integration with AI assistants
|
package/dist/FastMCP.cjs
CHANGED
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
|
|
12
12
|
|
|
13
13
|
|
|
14
|
-
var
|
|
14
|
+
var _chunkTN6CWWVWcjs = require('./chunk-TN6CWWVW.cjs');
|
|
15
15
|
|
|
16
16
|
|
|
17
17
|
|
|
@@ -24,7 +24,7 @@ var _chunk5EEESM57cjs = require('./chunk-5EEESM57.cjs');
|
|
|
24
24
|
|
|
25
25
|
|
|
26
26
|
|
|
27
|
-
var
|
|
27
|
+
var _chunkXP4NENWXcjs = require('./chunk-XP4NENWX.cjs');
|
|
28
28
|
require('./chunk-FBDPX4H2.cjs');
|
|
29
29
|
|
|
30
30
|
|
|
@@ -50,5 +50,5 @@ require('./chunk-FBDPX4H2.cjs');
|
|
|
50
50
|
|
|
51
51
|
|
|
52
52
|
|
|
53
|
-
exports.AuthProvider =
|
|
53
|
+
exports.AuthProvider = _chunkXP4NENWXcjs.AuthProvider; exports.AzureProvider = _chunkXP4NENWXcjs.AzureProvider; exports.DiscoveryDocumentCache = _chunkTN6CWWVWcjs.DiscoveryDocumentCache; exports.FastMCP = _chunkTN6CWWVWcjs.FastMCP; exports.FastMCPError = _chunkTN6CWWVWcjs.FastMCPError; exports.FastMCPSession = _chunkTN6CWWVWcjs.FastMCPSession; exports.GitHubProvider = _chunkXP4NENWXcjs.GitHubProvider; exports.GoogleProvider = _chunkXP4NENWXcjs.GoogleProvider; exports.MEDIA_FETCH_TIMEOUT_MS = _chunkTN6CWWVWcjs.MEDIA_FETCH_TIMEOUT_MS; exports.OAuthProvider = _chunkXP4NENWXcjs.OAuthProvider; exports.ServerState = _chunkTN6CWWVWcjs.ServerState; exports.SessionError = _chunkTN6CWWVWcjs.SessionError; exports.UnexpectedStateError = _chunkTN6CWWVWcjs.UnexpectedStateError; exports.UserError = _chunkTN6CWWVWcjs.UserError; exports.audioContent = _chunkTN6CWWVWcjs.audioContent; exports.getAuthSession = _chunkXP4NENWXcjs.getAuthSession; exports.imageContent = _chunkTN6CWWVWcjs.imageContent; exports.jsonSchemaAdapter = _chunkTN6CWWVWcjs.jsonSchemaAdapter; exports.requireAll = _chunkXP4NENWXcjs.requireAll; exports.requireAny = _chunkXP4NENWXcjs.requireAny; exports.requireAuth = _chunkXP4NENWXcjs.requireAuth; exports.requireRole = _chunkXP4NENWXcjs.requireRole; exports.requireScopes = _chunkXP4NENWXcjs.requireScopes;
|
|
54
54
|
//# sourceMappingURL=FastMCP.cjs.map
|
package/dist/FastMCP.js
CHANGED
|
@@ -11,7 +11,7 @@ import {
|
|
|
11
11
|
audioContent,
|
|
12
12
|
imageContent,
|
|
13
13
|
jsonSchemaAdapter
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-T7EFBHCA.js";
|
|
15
15
|
import {
|
|
16
16
|
AuthProvider,
|
|
17
17
|
AzureProvider,
|
|
@@ -24,7 +24,7 @@ import {
|
|
|
24
24
|
requireAuth,
|
|
25
25
|
requireRole,
|
|
26
26
|
requireScopes
|
|
27
|
-
} from "./chunk-
|
|
27
|
+
} from "./chunk-PA3GWZUK.js";
|
|
28
28
|
import "./chunk-JCKJRUCE.js";
|
|
29
29
|
export {
|
|
30
30
|
AuthProvider,
|
package/dist/auth/index.cjs
CHANGED
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
|
|
26
26
|
|
|
27
27
|
|
|
28
|
-
var
|
|
28
|
+
var _chunkXP4NENWXcjs = require('../chunk-XP4NENWX.cjs');
|
|
29
29
|
|
|
30
30
|
|
|
31
31
|
|
|
@@ -53,5 +53,5 @@ var _chunkUHJQUSUXcjs = require('../chunk-UHJQUSUX.cjs');
|
|
|
53
53
|
|
|
54
54
|
|
|
55
55
|
|
|
56
|
-
exports.AuthProvider =
|
|
56
|
+
exports.AuthProvider = _chunkXP4NENWXcjs.AuthProvider; exports.AzureProvider = _chunkXP4NENWXcjs.AzureProvider; exports.ConsentManager = _chunkXP4NENWXcjs.ConsentManager; exports.DEFAULT_ACCESS_TOKEN_TTL = _chunkXP4NENWXcjs.DEFAULT_ACCESS_TOKEN_TTL; exports.DEFAULT_ACCESS_TOKEN_TTL_NO_REFRESH = _chunkXP4NENWXcjs.DEFAULT_ACCESS_TOKEN_TTL_NO_REFRESH; exports.DEFAULT_AUTHORIZATION_CODE_TTL = _chunkXP4NENWXcjs.DEFAULT_AUTHORIZATION_CODE_TTL; exports.DEFAULT_REFRESH_TOKEN_TTL = _chunkXP4NENWXcjs.DEFAULT_REFRESH_TOKEN_TTL; exports.DEFAULT_TRANSACTION_TTL = _chunkXP4NENWXcjs.DEFAULT_TRANSACTION_TTL; exports.DiskStore = _chunkXP4NENWXcjs.DiskStore; exports.EncryptedTokenStorage = _chunkXP4NENWXcjs.EncryptedTokenStorage; exports.GitHubProvider = _chunkXP4NENWXcjs.GitHubProvider; exports.GoogleProvider = _chunkXP4NENWXcjs.GoogleProvider; exports.JWKSVerifier = _chunkXP4NENWXcjs.JWKSVerifier; exports.JWTIssuer = _chunkXP4NENWXcjs.JWTIssuer; exports.MemoryTokenStorage = _chunkXP4NENWXcjs.MemoryTokenStorage; exports.OAuthProvider = _chunkXP4NENWXcjs.OAuthProvider; exports.OAuthProxy = _chunkXP4NENWXcjs.OAuthProxy; exports.OAuthProxyError = _chunkXP4NENWXcjs.OAuthProxyError; exports.PKCEUtils = _chunkXP4NENWXcjs.PKCEUtils; exports.TOKEN_ENDPOINT_AUTH_METHODS = _chunkXP4NENWXcjs.TOKEN_ENDPOINT_AUTH_METHODS; exports.getAuthSession = _chunkXP4NENWXcjs.getAuthSession; exports.requireAll = _chunkXP4NENWXcjs.requireAll; exports.requireAny = _chunkXP4NENWXcjs.requireAny; exports.requireAuth = _chunkXP4NENWXcjs.requireAuth; exports.requireRole = _chunkXP4NENWXcjs.requireRole; exports.requireScopes = _chunkXP4NENWXcjs.requireScopes;
|
|
57
57
|
//# sourceMappingURL=index.cjs.map
|
package/dist/auth/index.js
CHANGED
|
@@ -3570,16 +3570,9 @@ var JWKSVerifier = class {
|
|
|
3570
3570
|
if (this.joseLoaded) {
|
|
3571
3571
|
return;
|
|
3572
3572
|
}
|
|
3573
|
+
let jose;
|
|
3573
3574
|
try {
|
|
3574
|
-
|
|
3575
|
-
this.joseLoaded = true;
|
|
3576
|
-
this.jwksCache = this.jose.createRemoteJWKSet(
|
|
3577
|
-
new URL(this.config.jwksUri),
|
|
3578
|
-
{
|
|
3579
|
-
cacheMaxAge: this.config.cacheDuration,
|
|
3580
|
-
cooldownDuration: this.config.cooldownDuration
|
|
3581
|
-
}
|
|
3582
|
-
);
|
|
3575
|
+
jose = await import("jose");
|
|
3583
3576
|
} catch (error) {
|
|
3584
3577
|
throw new Error(
|
|
3585
3578
|
`JWKS verification requires the 'jose' package.
|
|
@@ -3590,6 +3583,12 @@ If you don't need JWKS support, use HS256 signing instead (default).
|
|
|
3590
3583
|
Original error: ${error.message}`
|
|
3591
3584
|
);
|
|
3592
3585
|
}
|
|
3586
|
+
this.jwksCache = jose.createRemoteJWKSet(new URL(this.config.jwksUri), {
|
|
3587
|
+
cacheMaxAge: this.config.cacheDuration,
|
|
3588
|
+
cooldownDuration: this.config.cooldownDuration
|
|
3589
|
+
});
|
|
3590
|
+
this.jose = jose;
|
|
3591
|
+
this.joseLoaded = true;
|
|
3593
3592
|
}
|
|
3594
3593
|
/**
|
|
3595
3594
|
* Parse scope from token payload
|
|
@@ -3638,4 +3637,4 @@ export {
|
|
|
3638
3637
|
DiskStore,
|
|
3639
3638
|
JWKSVerifier
|
|
3640
3639
|
};
|
|
3641
|
-
//# sourceMappingURL=chunk-
|
|
3640
|
+
//# sourceMappingURL=chunk-PA3GWZUK.js.map
|