@n24q02m/hull 0.0.0-stage → 0.4.0-beta.9
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/LICENSE +201 -0
- package/README.md +166 -2
- package/build/auth/credential-form.d.ts +163 -0
- package/build/auth/credential-form.d.ts.map +1 -0
- package/build/auth/credential-form.js +1869 -0
- package/build/auth/credential-form.js.map +1 -0
- package/build/auth/delegated-oauth-app.d.ts +90 -0
- package/build/auth/delegated-oauth-app.d.ts.map +1 -0
- package/build/auth/delegated-oauth-app.js +881 -0
- package/build/auth/delegated-oauth-app.js.map +1 -0
- package/build/auth/index.d.ts +12 -0
- package/build/auth/index.d.ts.map +1 -0
- package/build/auth/index.js +12 -0
- package/build/auth/index.js.map +1 -0
- package/build/auth/local-oauth-app.d.ts +152 -0
- package/build/auth/local-oauth-app.d.ts.map +1 -0
- package/build/auth/local-oauth-app.js +975 -0
- package/build/auth/local-oauth-app.js.map +1 -0
- package/build/auth/relay-login.d.ts +46 -0
- package/build/auth/relay-login.d.ts.map +1 -0
- package/build/auth/relay-login.js +197 -0
- package/build/auth/relay-login.js.map +1 -0
- package/build/auth/router.d.ts +18 -0
- package/build/auth/router.d.ts.map +1 -0
- package/build/auth/router.js +62 -0
- package/build/auth/router.js.map +1 -0
- package/build/auth/session-store.d.ts +49 -0
- package/build/auth/session-store.d.ts.map +1 -0
- package/build/auth/session-store.js +94 -0
- package/build/auth/session-store.js.map +1 -0
- package/build/auth/stable-sub.d.ts +27 -0
- package/build/auth/stable-sub.d.ts.map +1 -0
- package/build/auth/stable-sub.js +38 -0
- package/build/auth/stable-sub.js.map +1 -0
- package/build/auth/well-known.d.ts +4 -0
- package/build/auth/well-known.d.ts.map +1 -0
- package/build/auth/well-known.js +26 -0
- package/build/auth/well-known.js.map +1 -0
- package/build/cli/build-cli.d.ts +97 -0
- package/build/cli/build-cli.d.ts.map +1 -0
- package/build/cli/build-cli.js +309 -0
- package/build/cli/build-cli.js.map +1 -0
- package/build/cli/index.d.ts +2 -0
- package/build/cli/index.d.ts.map +1 -0
- package/build/cli/index.js +2 -0
- package/build/cli/index.js.map +1 -0
- package/build/crypto/aes.d.ts +8 -0
- package/build/crypto/aes.d.ts.map +1 -0
- package/build/crypto/aes.js +27 -0
- package/build/crypto/aes.js.map +1 -0
- package/build/crypto/ecdh.d.ts +5 -0
- package/build/crypto/ecdh.d.ts.map +1 -0
- package/build/crypto/ecdh.js +16 -0
- package/build/crypto/ecdh.js.map +1 -0
- package/build/crypto/index.d.ts +4 -0
- package/build/crypto/index.d.ts.map +1 -0
- package/build/crypto/index.js +4 -0
- package/build/crypto/index.js.map +1 -0
- package/build/crypto/kdf.d.ts +15 -0
- package/build/crypto/kdf.d.ts.map +1 -0
- package/build/crypto/kdf.js +26 -0
- package/build/crypto/kdf.js.map +1 -0
- package/build/index.d.ts +19 -0
- package/build/index.d.ts.map +1 -0
- package/build/index.js +28 -0
- package/build/index.js.map +1 -0
- package/build/lifecycle/lock.d.ts +68 -0
- package/build/lifecycle/lock.d.ts.map +1 -0
- package/build/lifecycle/lock.js +173 -0
- package/build/lifecycle/lock.js.map +1 -0
- package/build/oauth/cache.d.ts +22 -0
- package/build/oauth/cache.d.ts.map +1 -0
- package/build/oauth/cache.js +24 -0
- package/build/oauth/cache.js.map +1 -0
- package/build/oauth/index.d.ts +6 -0
- package/build/oauth/index.d.ts.map +1 -0
- package/build/oauth/index.js +6 -0
- package/build/oauth/index.js.map +1 -0
- package/build/oauth/jwt-issuer.d.ts +87 -0
- package/build/oauth/jwt-issuer.d.ts.map +1 -0
- package/build/oauth/jwt-issuer.js +205 -0
- package/build/oauth/jwt-issuer.js.map +1 -0
- package/build/oauth/pkce.d.ts +10 -0
- package/build/oauth/pkce.d.ts.map +1 -0
- package/build/oauth/pkce.js +34 -0
- package/build/oauth/pkce.js.map +1 -0
- package/build/oauth/provider.d.ts +52 -0
- package/build/oauth/provider.d.ts.map +1 -0
- package/build/oauth/provider.js +98 -0
- package/build/oauth/provider.js.map +1 -0
- package/build/oauth/user-store.d.ts +25 -0
- package/build/oauth/user-store.d.ts.map +1 -0
- package/build/oauth/user-store.js +85 -0
- package/build/oauth/user-store.js.map +1 -0
- package/build/relay/browser.d.ts +15 -0
- package/build/relay/browser.d.ts.map +1 -0
- package/build/relay/browser.js +121 -0
- package/build/relay/browser.js.map +1 -0
- package/build/relay/client.d.ts +36 -0
- package/build/relay/client.d.ts.map +1 -0
- package/build/relay/client.js +135 -0
- package/build/relay/client.js.map +1 -0
- package/build/relay/session.d.ts +12 -0
- package/build/relay/session.d.ts.map +1 -0
- package/build/relay/session.js +55 -0
- package/build/relay/session.js.map +1 -0
- package/build/relay/tool-helpers.d.ts +85 -0
- package/build/relay/tool-helpers.d.ts.map +1 -0
- package/build/relay/tool-helpers.js +103 -0
- package/build/relay/tool-helpers.js.map +1 -0
- package/build/relay/wordlist.d.ts +2 -0
- package/build/relay/wordlist.d.ts.map +1 -0
- package/build/relay/wordlist.js +7782 -0
- package/build/relay/wordlist.js.map +1 -0
- package/build/schema/types.d.ts +67 -0
- package/build/schema/types.d.ts.map +1 -0
- package/build/schema/types.js +2 -0
- package/build/schema/types.js.map +1 -0
- package/build/storage/atomic-write.d.ts +8 -0
- package/build/storage/atomic-write.d.ts.map +1 -0
- package/build/storage/atomic-write.js +26 -0
- package/build/storage/atomic-write.js.map +1 -0
- package/build/storage/backends.d.ts +74 -0
- package/build/storage/backends.d.ts.map +1 -0
- package/build/storage/backends.js +193 -0
- package/build/storage/backends.js.map +1 -0
- package/build/storage/config-file.d.ts +35 -0
- package/build/storage/config-file.d.ts.map +1 -0
- package/build/storage/config-file.js +259 -0
- package/build/storage/config-file.js.map +1 -0
- package/build/storage/credential-store.d.ts +71 -0
- package/build/storage/credential-store.d.ts.map +1 -0
- package/build/storage/credential-store.js +91 -0
- package/build/storage/credential-store.js.map +1 -0
- package/build/storage/data-dir.d.ts +58 -0
- package/build/storage/data-dir.d.ts.map +1 -0
- package/build/storage/data-dir.js +79 -0
- package/build/storage/data-dir.js.map +1 -0
- package/build/storage/encryption.d.ts +9 -0
- package/build/storage/encryption.d.ts.map +1 -0
- package/build/storage/encryption.js +27 -0
- package/build/storage/encryption.js.map +1 -0
- package/build/storage/home-dir.d.ts +11 -0
- package/build/storage/home-dir.d.ts.map +1 -0
- package/build/storage/home-dir.js +18 -0
- package/build/storage/home-dir.js.map +1 -0
- package/build/storage/index.d.ts +12 -0
- package/build/storage/index.d.ts.map +1 -0
- package/build/storage/index.js +15 -0
- package/build/storage/index.js.map +1 -0
- package/build/storage/machine-id.d.ts +4 -0
- package/build/storage/machine-id.d.ts.map +1 -0
- package/build/storage/machine-id.js +73 -0
- package/build/storage/machine-id.js.map +1 -0
- package/build/storage/mode.d.ts +23 -0
- package/build/storage/mode.d.ts.map +1 -0
- package/build/storage/mode.js +46 -0
- package/build/storage/mode.js.map +1 -0
- package/build/storage/per-plugin-store.d.ts +65 -0
- package/build/storage/per-plugin-store.d.ts.map +1 -0
- package/build/storage/per-plugin-store.js +194 -0
- package/build/storage/per-plugin-store.js.map +1 -0
- package/build/storage/resolver.d.ts +7 -0
- package/build/storage/resolver.d.ts.map +1 -0
- package/build/storage/resolver.js +38 -0
- package/build/storage/resolver.js.map +1 -0
- package/build/storage/session-lock.d.ts +19 -0
- package/build/storage/session-lock.d.ts.map +1 -0
- package/build/storage/session-lock.js +105 -0
- package/build/storage/session-lock.js.map +1 -0
- package/build/token-auth/authenticator.d.ts +70 -0
- package/build/token-auth/authenticator.d.ts.map +1 -0
- package/build/token-auth/authenticator.js +146 -0
- package/build/token-auth/authenticator.js.map +1 -0
- package/build/token-auth/cli.d.ts +38 -0
- package/build/token-auth/cli.d.ts.map +1 -0
- package/build/token-auth/cli.js +192 -0
- package/build/token-auth/cli.js.map +1 -0
- package/build/token-auth/context.d.ts +30 -0
- package/build/token-auth/context.d.ts.map +1 -0
- package/build/token-auth/context.js +32 -0
- package/build/token-auth/context.js.map +1 -0
- package/build/token-auth/http-guard.d.ts +26 -0
- package/build/token-auth/http-guard.d.ts.map +1 -0
- package/build/token-auth/http-guard.js +51 -0
- package/build/token-auth/http-guard.js.map +1 -0
- package/build/token-auth/index.d.ts +14 -0
- package/build/token-auth/index.d.ts.map +1 -0
- package/build/token-auth/index.js +14 -0
- package/build/token-auth/index.js.map +1 -0
- package/build/token-auth/limiter.d.ts +20 -0
- package/build/token-auth/limiter.d.ts.map +1 -0
- package/build/token-auth/limiter.js +41 -0
- package/build/token-auth/limiter.js.map +1 -0
- package/build/token-auth/loopback.d.ts +17 -0
- package/build/token-auth/loopback.d.ts.map +1 -0
- package/build/token-auth/loopback.js +62 -0
- package/build/token-auth/loopback.js.map +1 -0
- package/build/token-auth/py-compat.d.ts +24 -0
- package/build/token-auth/py-compat.d.ts.map +1 -0
- package/build/token-auth/py-compat.js +76 -0
- package/build/token-auth/py-compat.js.map +1 -0
- package/build/token-auth/tokens.d.ts +36 -0
- package/build/token-auth/tokens.d.ts.map +1 -0
- package/build/token-auth/tokens.js +115 -0
- package/build/token-auth/tokens.js.map +1 -0
- package/build/token-auth/users.d.ts +62 -0
- package/build/token-auth/users.d.ts.map +1 -0
- package/build/token-auth/users.js +174 -0
- package/build/token-auth/users.js.map +1 -0
- package/build/transport/cache.d.ts +19 -0
- package/build/transport/cache.d.ts.map +1 -0
- package/build/transport/cache.js +76 -0
- package/build/transport/cache.js.map +1 -0
- package/build/transport/index.d.ts +5 -0
- package/build/transport/index.d.ts.map +1 -0
- package/build/transport/index.js +4 -0
- package/build/transport/index.js.map +1 -0
- package/build/transport/local-server.d.ts +173 -0
- package/build/transport/local-server.d.ts.map +1 -0
- package/build/transport/local-server.js +457 -0
- package/build/transport/local-server.js.map +1 -0
- package/build/transport/oauth-middleware.d.ts +45 -0
- package/build/transport/oauth-middleware.d.ts.map +1 -0
- package/build/transport/oauth-middleware.js +86 -0
- package/build/transport/oauth-middleware.js.map +1 -0
- package/build/transport/streamable-http.d.ts +54 -0
- package/build/transport/streamable-http.d.ts.map +1 -0
- package/build/transport/streamable-http.js +57 -0
- package/build/transport/streamable-http.js.map +1 -0
- package/package.json +107 -4
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Streamable HTTP 2025-11-25 transport wrapper for mcp-core TypeScript.
|
|
3
|
+
*
|
|
4
|
+
* Thin convenience wrapper around `@modelcontextprotocol/sdk`'s
|
|
5
|
+
* `StreamableHTTPServerTransport` that pairs it with an `McpServer`
|
|
6
|
+
* instance and an optional OAuth Bearer validation middleware.
|
|
7
|
+
*
|
|
8
|
+
* The SDK already implements the full 2025-11-25 transport spec
|
|
9
|
+
* (session management, SSE streaming, stateful / stateless modes),
|
|
10
|
+
* so this wrapper focuses on the mcp-core ergonomics:
|
|
11
|
+
*
|
|
12
|
+
* - one-call `connect()` that wires server <-> transport
|
|
13
|
+
* - `handleRequest(req, res)` that applies the OAuth middleware
|
|
14
|
+
* first and short-circuits with 401 on missing / invalid token
|
|
15
|
+
* - explicit `host` / `port` properties for lifecycle management
|
|
16
|
+
* (the actual port bind is left to the caller's http.Server)
|
|
17
|
+
*/
|
|
18
|
+
import type { IncomingMessage, ServerResponse } from 'node:http';
|
|
19
|
+
import type { McpServer } from '@modelcontextprotocol/sdk/server/mcp.js';
|
|
20
|
+
import { StreamableHTTPServerTransport, type StreamableHTTPServerTransportOptions } from '@modelcontextprotocol/sdk/server/streamableHttp.js';
|
|
21
|
+
import type { OAuthMiddleware } from './oauth-middleware.js';
|
|
22
|
+
export interface StreamableHTTPServerOptions {
|
|
23
|
+
/** MCP server instance that handles requests */
|
|
24
|
+
server: McpServer;
|
|
25
|
+
/** Host to advertise (used for logging / display only) */
|
|
26
|
+
host?: string;
|
|
27
|
+
/** Port to advertise (used for logging / display only) */
|
|
28
|
+
port: number;
|
|
29
|
+
/** Optional OAuth middleware for Bearer token validation */
|
|
30
|
+
oauthMiddleware?: OAuthMiddleware;
|
|
31
|
+
/** Transport options forwarded to StreamableHTTPServerTransport */
|
|
32
|
+
transportOptions?: StreamableHTTPServerTransportOptions;
|
|
33
|
+
}
|
|
34
|
+
export declare class StreamableHTTPServer {
|
|
35
|
+
readonly host: string;
|
|
36
|
+
readonly port: number;
|
|
37
|
+
private readonly _server;
|
|
38
|
+
private readonly _oauth?;
|
|
39
|
+
private readonly _transport;
|
|
40
|
+
private _connected;
|
|
41
|
+
constructor(options: StreamableHTTPServerOptions);
|
|
42
|
+
/** Connect the MCP server to the transport. Call once before handleRequest. */
|
|
43
|
+
connect(): Promise<void>;
|
|
44
|
+
/**
|
|
45
|
+
* Handle an incoming HTTP request. Applies OAuth validation first if
|
|
46
|
+
* configured, then delegates to the SDK transport.
|
|
47
|
+
*/
|
|
48
|
+
handleRequest(req: IncomingMessage, res: ServerResponse, parsedBody?: unknown): Promise<void>;
|
|
49
|
+
/** Expose the underlying transport for advanced use cases. */
|
|
50
|
+
get transport(): StreamableHTTPServerTransport;
|
|
51
|
+
/** Close the transport and drain any active sessions. */
|
|
52
|
+
close(): Promise<void>;
|
|
53
|
+
}
|
|
54
|
+
//# sourceMappingURL=streamable-http.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"streamable-http.d.ts","sourceRoot":"","sources":["../../src/transport/streamable-http.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,OAAO,KAAK,EAAE,eAAe,EAAE,cAAc,EAAE,MAAM,WAAW,CAAA;AAEhE,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,yCAAyC,CAAA;AACxE,OAAO,EACL,6BAA6B,EAC7B,KAAK,oCAAoC,EAC1C,MAAM,oDAAoD,CAAA;AAE3D,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAA;AAE5D,MAAM,WAAW,2BAA2B;IAC1C,gDAAgD;IAChD,MAAM,EAAE,SAAS,CAAA;IACjB,0DAA0D;IAC1D,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,0DAA0D;IAC1D,IAAI,EAAE,MAAM,CAAA;IACZ,4DAA4D;IAC5D,eAAe,CAAC,EAAE,eAAe,CAAA;IACjC,mEAAmE;IACnE,gBAAgB,CAAC,EAAE,oCAAoC,CAAA;CACxD;AAED,qBAAa,oBAAoB;IAC/B,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAA;IACrB,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAA;IACrB,OAAO,CAAC,QAAQ,CAAC,OAAO,CAAW;IACnC,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAC,CAAiB;IACzC,OAAO,CAAC,QAAQ,CAAC,UAAU,CAA+B;IAC1D,OAAO,CAAC,UAAU,CAAQ;IAE1B,YAAY,OAAO,EAAE,2BAA2B,EAM/C;IAED,+EAA+E;IACzE,OAAO,IAAI,OAAO,CAAC,IAAI,CAAC,CAI7B;IAED;;;OAGG;IACG,aAAa,CAAC,GAAG,EAAE,eAAe,EAAE,GAAG,EAAE,cAAc,EAAE,UAAU,CAAC,EAAE,OAAO,GAAG,OAAO,CAAC,IAAI,CAAC,CAMlG;IAED,8DAA8D;IAC9D,IAAI,SAAS,IAAI,6BAA6B,CAE7C;IAED,yDAAyD;IACnD,KAAK,IAAI,OAAO,CAAC,IAAI,CAAC,CAG3B;CACF"}
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Streamable HTTP 2025-11-25 transport wrapper for mcp-core TypeScript.
|
|
3
|
+
*
|
|
4
|
+
* Thin convenience wrapper around `@modelcontextprotocol/sdk`'s
|
|
5
|
+
* `StreamableHTTPServerTransport` that pairs it with an `McpServer`
|
|
6
|
+
* instance and an optional OAuth Bearer validation middleware.
|
|
7
|
+
*
|
|
8
|
+
* The SDK already implements the full 2025-11-25 transport spec
|
|
9
|
+
* (session management, SSE streaming, stateful / stateless modes),
|
|
10
|
+
* so this wrapper focuses on the mcp-core ergonomics:
|
|
11
|
+
*
|
|
12
|
+
* - one-call `connect()` that wires server <-> transport
|
|
13
|
+
* - `handleRequest(req, res)` that applies the OAuth middleware
|
|
14
|
+
* first and short-circuits with 401 on missing / invalid token
|
|
15
|
+
* - explicit `host` / `port` properties for lifecycle management
|
|
16
|
+
* (the actual port bind is left to the caller's http.Server)
|
|
17
|
+
*/
|
|
18
|
+
import { StreamableHTTPServerTransport } from '@modelcontextprotocol/sdk/server/streamableHttp.js';
|
|
19
|
+
export class StreamableHTTPServer {
|
|
20
|
+
constructor(options) {
|
|
21
|
+
this._connected = false;
|
|
22
|
+
this._server = options.server;
|
|
23
|
+
this.host = options.host ?? '127.0.0.1';
|
|
24
|
+
this.port = options.port;
|
|
25
|
+
this._oauth = options.oauthMiddleware;
|
|
26
|
+
this._transport = new StreamableHTTPServerTransport(options.transportOptions ?? { sessionIdGenerator: undefined });
|
|
27
|
+
}
|
|
28
|
+
/** Connect the MCP server to the transport. Call once before handleRequest. */
|
|
29
|
+
async connect() {
|
|
30
|
+
if (this._connected)
|
|
31
|
+
return;
|
|
32
|
+
await this._server.connect(this._transport);
|
|
33
|
+
this._connected = true;
|
|
34
|
+
}
|
|
35
|
+
/**
|
|
36
|
+
* Handle an incoming HTTP request. Applies OAuth validation first if
|
|
37
|
+
* configured, then delegates to the SDK transport.
|
|
38
|
+
*/
|
|
39
|
+
async handleRequest(req, res, parsedBody) {
|
|
40
|
+
if (this._oauth) {
|
|
41
|
+
const allowed = await this._oauth.validate(req, res);
|
|
42
|
+
if (!allowed)
|
|
43
|
+
return;
|
|
44
|
+
}
|
|
45
|
+
await this._transport.handleRequest(req, res, parsedBody);
|
|
46
|
+
}
|
|
47
|
+
/** Expose the underlying transport for advanced use cases. */
|
|
48
|
+
get transport() {
|
|
49
|
+
return this._transport;
|
|
50
|
+
}
|
|
51
|
+
/** Close the transport and drain any active sessions. */
|
|
52
|
+
async close() {
|
|
53
|
+
await this._transport.close();
|
|
54
|
+
this._connected = false;
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
//# sourceMappingURL=streamable-http.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"streamable-http.js","sourceRoot":"","sources":["../../src/transport/streamable-http.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAKH,OAAO,EACL,6BAA6B,EAE9B,MAAM,oDAAoD,CAAA;AAiB3D,MAAM,OAAO,oBAAoB;IAQ/B,YAAY,OAAoC;QAFxC,eAAU,GAAG,KAAK,CAAA;QAGxB,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC,MAAM,CAAA;QAC7B,IAAI,CAAC,IAAI,GAAG,OAAO,CAAC,IAAI,IAAI,WAAW,CAAA;QACvC,IAAI,CAAC,IAAI,GAAG,OAAO,CAAC,IAAI,CAAA;QACxB,IAAI,CAAC,MAAM,GAAG,OAAO,CAAC,eAAe,CAAA;QACrC,IAAI,CAAC,UAAU,GAAG,IAAI,6BAA6B,CAAC,OAAO,CAAC,gBAAgB,IAAI,EAAE,kBAAkB,EAAE,SAAS,EAAE,CAAC,CAAA;IACpH,CAAC;IAED,+EAA+E;IAC/E,KAAK,CAAC,OAAO;QACX,IAAI,IAAI,CAAC,UAAU;YAAE,OAAM;QAC3B,MAAM,IAAI,CAAC,OAAO,CAAC,OAAO,CAAC,IAAI,CAAC,UAAU,CAAC,CAAA;QAC3C,IAAI,CAAC,UAAU,GAAG,IAAI,CAAA;IACxB,CAAC;IAED;;;OAGG;IACH,KAAK,CAAC,aAAa,CAAC,GAAoB,EAAE,GAAmB,EAAE,UAAoB;QACjF,IAAI,IAAI,CAAC,MAAM,EAAE,CAAC;YAChB,MAAM,OAAO,GAAG,MAAM,IAAI,CAAC,MAAM,CAAC,QAAQ,CAAC,GAAG,EAAE,GAAG,CAAC,CAAA;YACpD,IAAI,CAAC,OAAO;gBAAE,OAAM;QACtB,CAAC;QACD,MAAM,IAAI,CAAC,UAAU,CAAC,aAAa,CAAC,GAAG,EAAE,GAAG,EAAE,UAAU,CAAC,CAAA;IAC3D,CAAC;IAED,8DAA8D;IAC9D,IAAI,SAAS;QACX,OAAO,IAAI,CAAC,UAAU,CAAA;IACxB,CAAC;IAED,yDAAyD;IACzD,KAAK,CAAC,KAAK;QACT,MAAM,IAAI,CAAC,UAAU,CAAC,KAAK,EAAE,CAAA;QAC7B,IAAI,CAAC,UAAU,GAAG,KAAK,CAAA;IACzB,CAAC;CACF"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,109 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@n24q02m/hull",
|
|
3
|
-
"version": "0.
|
|
4
|
-
"
|
|
5
|
-
"
|
|
6
|
-
|
|
3
|
+
"version": "0.4.0-beta.9",
|
|
4
|
+
"description": "hull TypeScript core: MCP Streamable HTTP 2025-11-25 transport, OAuth 2.1 AS, lifecycle, install",
|
|
5
|
+
"keywords": [
|
|
6
|
+
"mcp",
|
|
7
|
+
"model-context-protocol",
|
|
8
|
+
"streamable-http",
|
|
9
|
+
"oauth21",
|
|
10
|
+
"transport",
|
|
11
|
+
"claude",
|
|
12
|
+
"cursor",
|
|
13
|
+
"copilot",
|
|
14
|
+
"codex",
|
|
15
|
+
"opencode"
|
|
16
|
+
],
|
|
17
|
+
"author": {
|
|
18
|
+
"name": "n24q02m",
|
|
19
|
+
"url": "https://github.com/n24q02m"
|
|
20
|
+
},
|
|
21
|
+
"license": "Apache-2.0",
|
|
22
|
+
"repository": {
|
|
23
|
+
"type": "git",
|
|
24
|
+
"url": "git+https://github.com/n24q02m/hull.git",
|
|
25
|
+
"directory": "packages/core-ts"
|
|
26
|
+
},
|
|
27
|
+
"homepage": "https://github.com/n24q02m/hull",
|
|
28
|
+
"bugs": {
|
|
29
|
+
"url": "https://github.com/n24q02m/hull/issues"
|
|
30
|
+
},
|
|
31
|
+
"publishConfig": {
|
|
32
|
+
"access": "public"
|
|
33
|
+
},
|
|
34
|
+
"type": "module",
|
|
35
|
+
"main": "build/index.js",
|
|
36
|
+
"types": "build/index.d.ts",
|
|
37
|
+
"files": [
|
|
38
|
+
"build/",
|
|
39
|
+
"README.md",
|
|
40
|
+
"LICENSE"
|
|
41
|
+
],
|
|
42
|
+
"exports": {
|
|
43
|
+
".": {
|
|
44
|
+
"import": "./build/index.js",
|
|
45
|
+
"types": "./build/index.d.ts"
|
|
46
|
+
},
|
|
47
|
+
"./crypto": {
|
|
48
|
+
"import": "./build/crypto/index.js",
|
|
49
|
+
"types": "./build/crypto/index.d.ts"
|
|
50
|
+
},
|
|
51
|
+
"./storage": {
|
|
52
|
+
"import": "./build/storage/index.js",
|
|
53
|
+
"types": "./build/storage/index.d.ts"
|
|
54
|
+
},
|
|
55
|
+
"./relay": {
|
|
56
|
+
"import": "./build/relay/client.js",
|
|
57
|
+
"types": "./build/relay/client.d.ts"
|
|
58
|
+
},
|
|
59
|
+
"./schema": {
|
|
60
|
+
"import": "./build/schema/types.js",
|
|
61
|
+
"types": "./build/schema/types.d.ts"
|
|
62
|
+
},
|
|
63
|
+
"./oauth": {
|
|
64
|
+
"import": "./build/oauth/index.js",
|
|
65
|
+
"types": "./build/oauth/index.d.ts"
|
|
66
|
+
},
|
|
67
|
+
"./auth": {
|
|
68
|
+
"import": "./build/auth/index.js",
|
|
69
|
+
"types": "./build/auth/index.d.ts"
|
|
70
|
+
},
|
|
71
|
+
"./transport": {
|
|
72
|
+
"import": "./build/transport/index.js",
|
|
73
|
+
"types": "./build/transport/index.d.ts"
|
|
74
|
+
},
|
|
75
|
+
"./token-auth": {
|
|
76
|
+
"import": "./build/token-auth/index.js",
|
|
77
|
+
"types": "./build/token-auth/index.d.ts"
|
|
78
|
+
}
|
|
79
|
+
},
|
|
80
|
+
"scripts": {
|
|
81
|
+
"build": "tsc --build tsconfig.build.json",
|
|
82
|
+
"test": "vitest --passWithNoTests",
|
|
83
|
+
"test:coverage": "vitest --coverage --passWithNoTests",
|
|
84
|
+
"check": "biome check . && bun run type-check",
|
|
85
|
+
"type-check": "tsc --noEmit"
|
|
86
|
+
},
|
|
87
|
+
"dependencies": {
|
|
88
|
+
"@modelcontextprotocol/sdk": "^1.30.1",
|
|
89
|
+
"better-sqlite3": "^13.0.3",
|
|
90
|
+
"env-paths": "^4.0.0",
|
|
91
|
+
"jose": "^6.2.12",
|
|
92
|
+
"smol-toml": "^1.9.0"
|
|
93
|
+
},
|
|
94
|
+
"trustedDependencies": [
|
|
95
|
+
"better-sqlite3"
|
|
96
|
+
],
|
|
97
|
+
"devDependencies": {
|
|
98
|
+
"@biomejs/biome": "^2.5.15",
|
|
99
|
+
"@types/better-sqlite3": "^9.6.0",
|
|
100
|
+
"@types/node": "^26.6.4",
|
|
101
|
+
"@vitest/coverage-v8": "^5.0.3",
|
|
102
|
+
"typescript": "^7.0.2",
|
|
103
|
+
"vitest": "^5.0.3"
|
|
104
|
+
},
|
|
105
|
+
"engines": {
|
|
106
|
+
"node": ">=24.21.0"
|
|
107
|
+
},
|
|
108
|
+
"packageManager": "bun@1.4.3"
|
|
109
|
+
}
|