@vvedantb/server 0.1.0 → 0.1.1
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/mcp/cors.js +1 -1
- package/dist/mcp/dispatcher.d.ts +1 -1
- package/dist/mcp/env.d.ts +1 -1
- package/dist/mcp/env.js +1 -1
- package/dist/mcp/http.js +1 -1
- package/dist/mcp/metadata.d.ts +1 -1
- package/package.json +2 -2
package/dist/mcp/cors.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { mcpCorsHeaders } from "../convex/index";
|
|
1
|
+
import { mcpCorsHeaders } from "../convex/index.js";
|
|
2
2
|
/**
|
|
3
3
|
* server/convex's `mcpCorsHeaders(origin)` with `overrides` applied on top.
|
|
4
4
|
* app-b: `mcpCors({ "Access-Control-Allow-Headers": "Content-Type, Authorization, MCP-Protocol-Version", "Access-Control-Max-Age": "86400" })`.
|
package/dist/mcp/dispatcher.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { McpServerInfo } from "../convex/index";
|
|
1
|
+
import type { McpServerInfo } from "../convex/index.js";
|
|
2
2
|
import type { HandleRpcArgs } from "./http.js";
|
|
3
3
|
import { type JsonObject, type JsonValue } from "./json.js";
|
|
4
4
|
import { type ProtocolVersionOptions, type RpcResult } from "./jsonRpc.js";
|
package/dist/mcp/env.d.ts
CHANGED
package/dist/mcp/env.js
CHANGED
package/dist/mcp/http.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { extractBearerToken } from "../convex/index";
|
|
1
|
+
import { extractBearerToken } from "../convex/index.js";
|
|
2
2
|
import { resolveCors } from "./cors.js";
|
|
3
3
|
/** Default `WWW-Authenticate` resource metadata path. */
|
|
4
4
|
export const PROTECTED_RESOURCE_METADATA_PATH = "/.well-known/oauth-protected-resource";
|
package/dist/mcp/metadata.d.ts
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vvedantb/server",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.1",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"description": "Shared Convex backend helpers and MCP server scaffolding: query-limit errors, Clerk auth config, bearer tokens, env, CORS, a bearer-auth MCP HTTP handler, OAuth metadata, a JSON-RPC dispatcher and explorer tools.",
|
|
6
6
|
"type": "module",
|
|
@@ -53,6 +53,6 @@
|
|
|
53
53
|
"scripts": {
|
|
54
54
|
"build": "tsc -p tsconfig.json",
|
|
55
55
|
"typecheck": "tsc -p tsconfig.test.json",
|
|
56
|
-
"test": "vitest run"
|
|
56
|
+
"test": "vitest run && node --test tests-node/esm-exports.mjs"
|
|
57
57
|
}
|
|
58
58
|
}
|