@modelcontextprotocol/server-basic-react 0.4.2 → 1.0.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/index.js +9 -9
- package/dist/mcp-app.html +13 -13
- package/dist/server.js +5 -5
- package/package.json +2 -2
package/dist/server.js
CHANGED
|
@@ -11682,7 +11682,7 @@ class Doc {
|
|
|
11682
11682
|
var version = {
|
|
11683
11683
|
major: 4,
|
|
11684
11684
|
minor: 3,
|
|
11685
|
-
patch:
|
|
11685
|
+
patch: 5
|
|
11686
11686
|
};
|
|
11687
11687
|
|
|
11688
11688
|
// ../../node_modules/zod/v4/core/schemas.js
|
|
@@ -12722,7 +12722,7 @@ var $ZodRecord = /* @__PURE__ */ $constructor("$ZodRecord", (inst, def) => {
|
|
|
12722
12722
|
if (keyResult instanceof Promise) {
|
|
12723
12723
|
throw new Error("Async schemas not supported in object keys currently");
|
|
12724
12724
|
}
|
|
12725
|
-
const checkNumericKey = typeof key === "string" && number.test(key) && keyResult.issues.length;
|
|
12725
|
+
const checkNumericKey = typeof key === "string" && number.test(key) && keyResult.issues.length && keyResult.issues.some((iss) => iss.code === "invalid_type" && iss.expected === "number");
|
|
12726
12726
|
if (checkNumericKey) {
|
|
12727
12727
|
const retryResult = def.keyType._zod.run({ value: Number(key), issues: [] }, ctx);
|
|
12728
12728
|
if (retryResult instanceof Promise) {
|
|
@@ -13888,7 +13888,7 @@ function finalize(ctx, schema) {
|
|
|
13888
13888
|
}
|
|
13889
13889
|
}
|
|
13890
13890
|
}
|
|
13891
|
-
if (refSchema.$ref
|
|
13891
|
+
if (refSchema.$ref) {
|
|
13892
13892
|
for (const key in schema2) {
|
|
13893
13893
|
if (key === "$ref" || key === "allOf")
|
|
13894
13894
|
continue;
|
|
@@ -18447,7 +18447,7 @@ function mergeCapabilities(base, additional) {
|
|
|
18447
18447
|
return result;
|
|
18448
18448
|
}
|
|
18449
18449
|
|
|
18450
|
-
// ../../dist/src/server/index.js
|
|
18450
|
+
// ../../node_modules/@modelcontextprotocol/ext-apps/dist/src/server/index.js
|
|
18451
18451
|
var QI = Object.defineProperty;
|
|
18452
18452
|
var s = (r, i) => {
|
|
18453
18453
|
for (var o in i)
|
|
@@ -18488,7 +18488,7 @@ class Qn {
|
|
|
18488
18488
|
sessionId;
|
|
18489
18489
|
setProtocolVersion;
|
|
18490
18490
|
}
|
|
18491
|
-
var wv = "
|
|
18491
|
+
var wv = "2026-01-26";
|
|
18492
18492
|
var g = {};
|
|
18493
18493
|
s(g, { xor: () => al, xid: () => Ol, void: () => Zl, uuidv7: () => cl, uuidv6: () => Il, uuidv4: () => ll, uuid: () => el, util: () => D, url: () => bl, uppercase: () => Kr, unknown: () => Nr, union: () => ev, undefined: () => Rl, ulid: () => Nl, uint64: () => Tl, uint32: () => Bl, tuple: () => Yg, trim: () => mr, treeifyError: () => Xv, transform: () => Iv, toUpperCase: () => Tr, toLowerCase: () => Hr, toJSONSchema: () => Yi, templateLiteral: () => lI, symbol: () => Ml, superRefine: () => ee, success: () => uI, stringbool: () => wI, stringFormat: () => El, string: () => Mi, strictObject: () => yl, startsWith: () => Qr, slugify: () => Mr, size: () => kr, setErrorMap: () => b6, set: () => iI, safeParseAsync: () => lg, safeParse: () => eg, safeEncodeAsync: () => Dg, safeEncode: () => Ug, safeDecodeAsync: () => wg, safeDecode: () => kg, registry: () => ui, regexes: () => x, regex: () => Er, refine: () => ge, record: () => Fg, readonly: () => ie, property: () => Ai, promise: () => II, prettifyError: () => Ev, preprocess: () => OI, prefault: () => yg, positive: () => Wi, pipe: () => Gn, partialRecord: () => sl, parseAsync: () => gg, parse: () => ug, overwrite: () => d, optional: () => Jn, object: () => fl, number: () => Og, nullish: () => $I, nullable: () => Ln, null: () => Jg, normalize: () => Br, nonpositive: () => Xi, nonoptional: () => hg, nonnegative: () => Ei, never: () => gv, negative: () => Vi, nativeEnum: () => vI, nanoid: () => kl, nan: () => gI, multipleOf: () => ur, minSize: () => a, minLength: () => nr, mime: () => Fr, meta: () => kI, maxSize: () => gr, maxLength: () => Dr, map: () => nI, mac: () => Pl, lte: () => M, lt: () => y, lowercase: () => Ar, looseRecord: () => rI, looseObject: () => hl, locales: () => On, literal: () => oI, length: () => wr, lazy: () => te, ksuid: () => zl, keyof: () => Cl, jwt: () => Xl, json: () => NI, iso: () => Zr, ipv6: () => jl, ipv4: () => Sl, intersection: () => qg, int64: () => Hl, int32: () => Fl, int: () => Ri, instanceof: () => DI, includes: () => qr, httpUrl: () => _l, hostname: () => Al, hex: () => Kl, hash: () => ql, guid: () => gl, gte: () => Q, gt: () => h, globalRegistry: () => A, getErrorMap: () => _6, function: () => cI, fromJSONSchema: () => SI, formatError: () => en, float64: () => Yl, float32: () => Ql, flattenError: () => gn, file: () => tI, exactOptional: () => xg, enum: () => lv, endsWith: () => Yr, encodeAsync: () => bg, encode: () => Ig, emoji: () => Ul, email: () => ul, e164: () => Vl, discriminatedUnion: () => pl, describe: () => UI, decodeAsync: () => _g, decode: () => cg, date: () => dl, custom: () => _I, cuid2: () => wl, cuid: () => Dl, core: () => ir, config: () => E, coerce: () => Ie, codec: () => eI, clone: () => q, cidrv6: () => Ll, cidrv4: () => Jl, check: () => bI, catch: () => sg, boolean: () => zg, bigint: () => ml, base64url: () => Wl, base64: () => Gl, array: () => Xn, any: () => xl, _function: () => cI, _default: () => Cg, _ZodString: () => xi, ZodXor: () => Eg, ZodXID: () => ai, ZodVoid: () => Vg, ZodUnknown: () => Gg, ZodUnion: () => An, ZodUndefined: () => Pg, ZodUUID: () => p, ZodURL: () => Wn, ZodULID: () => hi, ZodType: () => P, ZodTuple: () => Qg, ZodTransform: () => Mg, ZodTemplateLiteral: () => ve, ZodSymbol: () => Sg, ZodSuccess: () => ag, ZodStringFormat: () => W, ZodString: () => Cr, ZodSet: () => mg, ZodRecord: () => Kn, ZodRealError: () => H, ZodReadonly: () => ne, ZodPromise: () => $e, ZodPrefault: () => fg, ZodPipe: () => _v, ZodOptional: () => cv, ZodObject: () => En, ZodNumberFormat: () => Or, ZodNumber: () => yr, ZodNullable: () => Zg, ZodNull: () => jg, ZodNonOptional: () => bv, ZodNever: () => Wg, ZodNanoID: () => Ci, ZodNaN: () => re, ZodMap: () => Bg, ZodMAC: () => Ng, ZodLiteral: () => Hg, ZodLazy: () => oe, ZodKSUID: () => pi, ZodJWT: () => $v, ZodIssueCode: () => c6, ZodIntersection: () => Kg, ZodISOTime: () => Hi, ZodISODuration: () => Ti, ZodISODateTime: () => Bi, ZodISODate: () => mi, ZodIPv6: () => rv, ZodIPv4: () => si, ZodGUID: () => jn, ZodFunction: () => ue, ZodFirstPartyTypeKind: () => le, ZodFile: () => Tg, ZodExactOptional: () => Rg, ZodError: () => l6, ZodEnum: () => dr, ZodEmoji: () => di, ZodEmail: () => Zi, ZodE164: () => tv, ZodDiscriminatedUnion: () => Ag, ZodDefault: () => dg, ZodDate: () => Vn, ZodCustomStringFormat: () => fr, ZodCustom: () => qn, ZodCodec: () => Uv, ZodCatch: () => pg, ZodCUID2: () => yi, ZodCUID: () => fi, ZodCIDRv6: () => iv, ZodCIDRv4: () => nv, ZodBoolean: () => hr, ZodBigIntFormat: () => uv, ZodBigInt: () => ar, ZodBase64URL: () => ov, ZodBase64: () => vv, ZodArray: () => Xg, ZodAny: () => Lg, TimePrecision: () => Y$, NEVER: () => Nv, $output: () => X$, $input: () => E$, $brand: () => Ov });
|
|
18494
18494
|
var ir = {};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@modelcontextprotocol/server-basic-react",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "1.0.1",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "Basic MCP App Server example using React",
|
|
6
6
|
"repository": {
|
|
@@ -32,7 +32,7 @@
|
|
|
32
32
|
"prepublishOnly": "npm run build"
|
|
33
33
|
},
|
|
34
34
|
"dependencies": {
|
|
35
|
-
"@modelcontextprotocol/ext-apps": "
|
|
35
|
+
"@modelcontextprotocol/ext-apps": "^1.0.0",
|
|
36
36
|
"@modelcontextprotocol/sdk": "^1.24.0",
|
|
37
37
|
"cors": "^2.8.5",
|
|
38
38
|
"express": "^5.1.0",
|