@better-auth/mcp 1.7.17 → 1.7.19
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/index.mjs +1 -5
- package/package.json +6 -6
package/dist/index.mjs
CHANGED
|
@@ -1,11 +1,7 @@
|
|
|
1
|
+
import { isLoopbackHost } from "@better-auth/core/utils/host";
|
|
1
2
|
import { createResourceServerChallenge, getIssuer, metadataResponse, oauthProvider } from "@better-auth/oauth-provider";
|
|
2
3
|
import { DPOP_SIGNING_ALGORITHMS, createDpopReplayStore, isInsufficientScopeError, requestToResourceInput, verifyAccessTokenRequest } from "better-auth/oauth2";
|
|
3
4
|
//#region src/handler.ts
|
|
4
|
-
function isLoopbackHost(hostname) {
|
|
5
|
-
const ipv4Octets = hostname.split(".");
|
|
6
|
-
const isIpv4Loopback = ipv4Octets.length === 4 && ipv4Octets[0] === "127" && ipv4Octets.every((octet) => /^\d+$/.test(octet) && Number(octet) <= 255);
|
|
7
|
-
return hostname === "localhost" || hostname === "[::1]" || isIpv4Loopback;
|
|
8
|
-
}
|
|
9
5
|
/**
|
|
10
6
|
* Validates the canonical protected-resource identifier accepted by MCP.
|
|
11
7
|
*
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@better-auth/mcp",
|
|
3
|
-
"version": "1.7.
|
|
3
|
+
"version": "1.7.19",
|
|
4
4
|
"description": "Model Context Protocol (MCP) plugin for Better Auth",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
|
@@ -47,20 +47,20 @@
|
|
|
47
47
|
},
|
|
48
48
|
"dependencies": {
|
|
49
49
|
"jose": "^6.1.3",
|
|
50
|
-
"@better-auth/oauth-provider": "^1.7.
|
|
50
|
+
"@better-auth/oauth-provider": "^1.7.19"
|
|
51
51
|
},
|
|
52
52
|
"devDependencies": {
|
|
53
53
|
"@modelcontextprotocol/client": "2.3.1",
|
|
54
54
|
"@modelcontextprotocol/server": "2.3.1",
|
|
55
55
|
"better-call": "1.4.5",
|
|
56
56
|
"tsdown": "0.23.1",
|
|
57
|
-
"@better-auth/core": "1.7.
|
|
58
|
-
"better-auth": "1.7.
|
|
57
|
+
"@better-auth/core": "1.7.19",
|
|
58
|
+
"better-auth": "1.7.19"
|
|
59
59
|
},
|
|
60
60
|
"peerDependencies": {
|
|
61
61
|
"better-call": "1.4.5",
|
|
62
|
-
"@better-auth/core": "^1.7.
|
|
63
|
-
"better-auth": "^1.7.
|
|
62
|
+
"@better-auth/core": "^1.7.19",
|
|
63
|
+
"better-auth": "^1.7.19"
|
|
64
64
|
},
|
|
65
65
|
"scripts": {
|
|
66
66
|
"build": "tsdown",
|