@avallon-labs/mcp 28.0.0 → 29.0.0

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 CHANGED
@@ -54,5 +54,5 @@ function setupFetch() {
54
54
 
55
55
  // src/index.ts
56
56
  setupFetch();
57
- await import("./server-3QDSMEKR.js");
57
+ await import("./server-74MXWFX6.js");
58
58
  //# sourceMappingURL=index.js.map
@@ -723,89 +723,6 @@ var partnerLaunch = async (params, options) => {
723
723
  headers: res.headers
724
724
  };
725
725
  };
726
- var getExperimentalSignUpUrl = () => {
727
- return `/experimental/auth/sign-up`;
728
- };
729
- var experimentalSignUp = async (experimentalSignUpBody, options) => {
730
- const res = await fetch(getExperimentalSignUpUrl(), {
731
- ...options,
732
- method: "POST",
733
- headers: { "Content-Type": "application/json", ...options?.headers },
734
- body: JSON.stringify(experimentalSignUpBody)
735
- });
736
- const body = [204, 205, 304].includes(res.status) ? null : await res.text();
737
- const data = body ? JSON.parse(body) : {};
738
- return {
739
- data,
740
- status: res.status,
741
- headers: res.headers
742
- };
743
- };
744
- var getExperimentalSignInUrl = () => {
745
- return `/experimental/auth/sign-in`;
746
- };
747
- var experimentalSignIn = async (experimentalSignInBody, options) => {
748
- const res = await fetch(getExperimentalSignInUrl(), {
749
- ...options,
750
- method: "POST",
751
- headers: { "Content-Type": "application/json", ...options?.headers },
752
- body: JSON.stringify(experimentalSignInBody)
753
- });
754
- const body = [204, 205, 304].includes(res.status) ? null : await res.text();
755
- const data = body ? JSON.parse(body) : {};
756
- return {
757
- data,
758
- status: res.status,
759
- headers: res.headers
760
- };
761
- };
762
- var getExperimentalGetOAuthUrlUrl = (params) => {
763
- const normalizedParams = new URLSearchParams();
764
- Object.entries(params || {}).forEach(([key, value]) => {
765
- if (value !== void 0) {
766
- if (typeof value === "object" && value !== null && !Array.isArray(value)) {
767
- for (const [sk, sv] of Object.entries(value)) {
768
- if (sv !== void 0) normalizedParams.append(`${key}[${sk}]`, String(sv));
769
- }
770
- } else {
771
- normalizedParams.append(key, value === null ? "null" : String(value));
772
- }
773
- }
774
- });
775
- const stringifiedParams = normalizedParams.toString();
776
- return stringifiedParams.length > 0 ? `/experimental/auth/oauth-url?${stringifiedParams}` : `/experimental/auth/oauth-url`;
777
- };
778
- var experimentalGetOAuthUrl = async (params, options) => {
779
- const res = await fetch(getExperimentalGetOAuthUrlUrl(params), {
780
- ...options,
781
- method: "GET"
782
- });
783
- const body = [204, 205, 304].includes(res.status) ? null : await res.text();
784
- const data = body ? JSON.parse(body) : {};
785
- return {
786
- data,
787
- status: res.status,
788
- headers: res.headers
789
- };
790
- };
791
- var getExperimentalRefreshTokenUrl = () => {
792
- return `/experimental/auth/refresh-token`;
793
- };
794
- var experimentalRefreshToken = async (experimentalRefreshTokenBody, options) => {
795
- const res = await fetch(getExperimentalRefreshTokenUrl(), {
796
- ...options,
797
- method: "POST",
798
- headers: { "Content-Type": "application/json", ...options?.headers },
799
- body: JSON.stringify(experimentalRefreshTokenBody)
800
- });
801
- const body = [204, 205, 304].includes(res.status) ? null : await res.text();
802
- const data = body ? JSON.parse(body) : {};
803
- return {
804
- data,
805
- status: res.status,
806
- headers: res.headers
807
- };
808
- };
809
726
  var getListCallsUrl = (params) => {
810
727
  const normalizedParams = new URLSearchParams();
811
728
  Object.entries(params || {}).forEach(([key, value]) => {
@@ -2950,50 +2867,6 @@ var partnerLaunchHandler = async (args) => {
2950
2867
  ]
2951
2868
  };
2952
2869
  };
2953
- var experimentalSignUpHandler = async (args) => {
2954
- const res = await experimentalSignUp(args.bodyParams);
2955
- return {
2956
- content: [
2957
- {
2958
- type: "text",
2959
- text: JSON.stringify(res)
2960
- }
2961
- ]
2962
- };
2963
- };
2964
- var experimentalSignInHandler = async (args) => {
2965
- const res = await experimentalSignIn(args.bodyParams);
2966
- return {
2967
- content: [
2968
- {
2969
- type: "text",
2970
- text: JSON.stringify(res)
2971
- }
2972
- ]
2973
- };
2974
- };
2975
- var experimentalGetOAuthUrlHandler = async (args) => {
2976
- const res = await experimentalGetOAuthUrl(args.queryParams);
2977
- return {
2978
- content: [
2979
- {
2980
- type: "text",
2981
- text: JSON.stringify(res)
2982
- }
2983
- ]
2984
- };
2985
- };
2986
- var experimentalRefreshTokenHandler = async (args) => {
2987
- const res = await experimentalRefreshToken(args.bodyParams);
2988
- return {
2989
- content: [
2990
- {
2991
- type: "text",
2992
- text: JSON.stringify(res)
2993
- }
2994
- ]
2995
- };
2996
- };
2997
2870
  var listCallsHandler = async (args) => {
2998
2871
  const res = await listCalls(args.queryParams);
2999
2872
  return {
@@ -5562,54 +5435,6 @@ var PartnerLaunchQueryParams = zod.object({
5562
5435
  case_id: zod.string().optional(),
5563
5436
  view: zod.string().optional()
5564
5437
  });
5565
- var ExperimentalSignUpBody = zod.object({
5566
- email: zod.string().email(),
5567
- password: zod.string()
5568
- });
5569
- var ExperimentalSignUpResponse = zod.object({
5570
- pending_authentication_token: zod.string().optional()
5571
- });
5572
- var ExperimentalSignInBody = zod.union([
5573
- zod.object({
5574
- type: zod.literal("password"),
5575
- email: zod.string(),
5576
- password: zod.string()
5577
- }),
5578
- zod.object({
5579
- type: zod.literal("oauth"),
5580
- code: zod.string(),
5581
- verifier: zod.string()
5582
- }),
5583
- zod.object({
5584
- type: zod.literal("email_otp"),
5585
- email: zod.string().email(),
5586
- token: zod.string().min(1),
5587
- pending_authentication_token: zod.string().min(1)
5588
- })
5589
- ]);
5590
- var ExperimentalSignInResponse = zod.object({
5591
- access_token: zod.string(),
5592
- refresh_token: zod.string(),
5593
- expires_at: zod.string().datetime({})
5594
- });
5595
- var ExperimentalGetOAuthUrlQueryParams = zod.object({
5596
- provider: zod.enum(["google", "microsoft"]),
5597
- redirect_uri: zod.string().url(),
5598
- code_challenge_method: zod.enum(["s256"]),
5599
- code_challenge: zod.string().min(1)
5600
- });
5601
- var ExperimentalGetOAuthUrlResponse = zod.object({
5602
- url: zod.string().url()
5603
- });
5604
- var ExperimentalRefreshTokenBody = zod.object({
5605
- access_token: zod.string(),
5606
- refresh_token: zod.string()
5607
- });
5608
- var ExperimentalRefreshTokenResponse = zod.object({
5609
- access_token: zod.string(),
5610
- refresh_token: zod.string(),
5611
- expires_at: zod.string().datetime({})
5612
- });
5613
5438
  var listCallsQueryCountDefault = 50;
5614
5439
  var listCallsQueryCountMax = 100;
5615
5440
  var listCallsQueryOffsetDefault = 0;
@@ -7667,38 +7492,6 @@ server.tool(
7667
7492
  },
7668
7493
  partnerLaunchHandler
7669
7494
  );
7670
- server.tool(
7671
- "experimentalSignUp",
7672
- "Sign up (experimental)",
7673
- {
7674
- bodyParams: ExperimentalSignUpBody
7675
- },
7676
- experimentalSignUpHandler
7677
- );
7678
- server.tool(
7679
- "experimentalSignIn",
7680
- "Sign in (experimental)",
7681
- {
7682
- bodyParams: ExperimentalSignInBody
7683
- },
7684
- experimentalSignInHandler
7685
- );
7686
- server.tool(
7687
- "experimentalGetOAuthUrl",
7688
- "Get OAuth sign-in URL (experimental)",
7689
- {
7690
- queryParams: ExperimentalGetOAuthUrlQueryParams
7691
- },
7692
- experimentalGetOAuthUrlHandler
7693
- );
7694
- server.tool(
7695
- "experimentalRefreshToken",
7696
- "Refresh authentication token (experimental)",
7697
- {
7698
- bodyParams: ExperimentalRefreshTokenBody
7699
- },
7700
- experimentalRefreshTokenHandler
7701
- );
7702
7495
  server.tool(
7703
7496
  "listCalls",
7704
7497
  "List calls",
@@ -8398,4 +8191,4 @@ var transport = new StdioServerTransport();
8398
8191
  server.connect(transport).then(() => {
8399
8192
  console.error("MCP server running on stdio");
8400
8193
  }).catch(console.error);
8401
- //# sourceMappingURL=server-3QDSMEKR.js.map
8194
+ //# sourceMappingURL=server-74MXWFX6.js.map