@burdenoff/mcp-libs 2026.1008.2 → 2026.1008.4

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.
Files changed (205) hide show
  1. package/dist/{chunk-BSNL65PZ.js → chunk-G76DKEPI.js} +19 -3
  2. package/dist/{chunk-BSNL65PZ.js.map → chunk-G76DKEPI.js.map} +1 -1
  3. package/dist/{chunk-QQYJVKJE.js → chunk-SX6IGKZH.js} +3 -3
  4. package/dist/{chunk-QQYJVKJE.js.map → chunk-SX6IGKZH.js.map} +1 -1
  5. package/dist/{context-1jV4NsLv.d.cts → context-DGO4h-Pd.d.cts} +1 -0
  6. package/dist/{context-1jV4NsLv.d.ts → context-DGO4h-Pd.d.ts} +1 -0
  7. package/dist/core/index.cjs +17 -1
  8. package/dist/core/index.cjs.map +1 -1
  9. package/dist/core/index.d.cts +3 -3
  10. package/dist/core/index.d.ts +3 -3
  11. package/dist/core/index.js +1 -1
  12. package/dist/{http-DXTeCD5r.d.ts → http-Wj1WM6ji.d.ts} +1 -1
  13. package/dist/{http-BP4c721D.d.cts → http-uAT9KeBa.d.cts} +1 -1
  14. package/dist/index.cjs +17 -1
  15. package/dist/index.cjs.map +1 -1
  16. package/dist/index.d.cts +4 -4
  17. package/dist/index.d.ts +4 -4
  18. package/dist/index.js +1 -1
  19. package/dist/{module-DFQBZNK6.d.cts → module-CfnM2XHg.d.cts} +1 -1
  20. package/dist/{module-DBcfA-i3.d.ts → module-VpgjAf8m.d.ts} +1 -1
  21. package/dist/modules/adaptercloud/index.d.cts +2 -2
  22. package/dist/modules/adaptercloud/index.d.ts +2 -2
  23. package/dist/modules/adaptercloud/index.js +1 -1
  24. package/dist/modules/artistrybase/index.d.cts +2 -2
  25. package/dist/modules/artistrybase/index.d.ts +2 -2
  26. package/dist/modules/artistrybase/index.js +1 -1
  27. package/dist/modules/assethandler/index.d.cts +2 -2
  28. package/dist/modules/assethandler/index.d.ts +2 -2
  29. package/dist/modules/assethandler/index.js +1 -1
  30. package/dist/modules/atheletebridge/index.d.cts +2 -2
  31. package/dist/modules/atheletebridge/index.d.ts +2 -2
  32. package/dist/modules/atheletebridge/index.js +1 -1
  33. package/dist/modules/auth/index.cjs +1027 -0
  34. package/dist/modules/auth/index.cjs.map +1 -1
  35. package/dist/modules/auth/index.d.cts +2 -2
  36. package/dist/modules/auth/index.d.ts +2 -2
  37. package/dist/modules/auth/index.js +1030 -3
  38. package/dist/modules/auth/index.js.map +1 -1
  39. package/dist/modules/billing/index.cjs +29 -14
  40. package/dist/modules/billing/index.cjs.map +1 -1
  41. package/dist/modules/billing/index.d.cts +2 -2
  42. package/dist/modules/billing/index.d.ts +2 -2
  43. package/dist/modules/billing/index.js +30 -15
  44. package/dist/modules/billing/index.js.map +1 -1
  45. package/dist/modules/brainyrich/index.d.cts +2 -2
  46. package/dist/modules/brainyrich/index.d.ts +2 -2
  47. package/dist/modules/brainyrich/index.js +1 -1
  48. package/dist/modules/buildmyiq/index.d.cts +2 -2
  49. package/dist/modules/buildmyiq/index.d.ts +2 -2
  50. package/dist/modules/buildmyiq/index.js +1 -1
  51. package/dist/modules/channels/index.d.cts +2 -2
  52. package/dist/modules/channels/index.d.ts +2 -2
  53. package/dist/modules/channels/index.js +1 -1
  54. package/dist/modules/collabkin/index.d.cts +2 -2
  55. package/dist/modules/collabkin/index.d.ts +2 -2
  56. package/dist/modules/collabkin/index.js +1 -1
  57. package/dist/modules/comradecircle/index.d.cts +2 -2
  58. package/dist/modules/comradecircle/index.d.ts +2 -2
  59. package/dist/modules/comradecircle/index.js +1 -1
  60. package/dist/modules/conversations/index.d.cts +2 -2
  61. package/dist/modules/conversations/index.d.ts +2 -2
  62. package/dist/modules/conversations/index.js +1 -1
  63. package/dist/modules/coolandlovely/index.d.cts +2 -2
  64. package/dist/modules/coolandlovely/index.d.ts +2 -2
  65. package/dist/modules/coolandlovely/index.js +1 -1
  66. package/dist/modules/cosmicintersection/index.d.cts +2 -2
  67. package/dist/modules/cosmicintersection/index.d.ts +2 -2
  68. package/dist/modules/cosmicintersection/index.js +1 -1
  69. package/dist/modules/crewfoundry/index.d.cts +2 -2
  70. package/dist/modules/crewfoundry/index.d.ts +2 -2
  71. package/dist/modules/crewfoundry/index.js +1 -1
  72. package/dist/modules/devportal/index.d.cts +2 -2
  73. package/dist/modules/devportal/index.d.ts +2 -2
  74. package/dist/modules/devportal/index.js +1 -1
  75. package/dist/modules/ecoimpacthub/index.d.cts +2 -2
  76. package/dist/modules/ecoimpacthub/index.d.ts +2 -2
  77. package/dist/modules/ecoimpacthub/index.js +1 -1
  78. package/dist/modules/eventfullymanaged/index.d.cts +2 -2
  79. package/dist/modules/eventfullymanaged/index.d.ts +2 -2
  80. package/dist/modules/eventfullymanaged/index.js +1 -1
  81. package/dist/modules/export/index.d.cts +2 -2
  82. package/dist/modules/export/index.d.ts +2 -2
  83. package/dist/modules/export/index.js +1 -1
  84. package/dist/modules/files/index.d.cts +2 -2
  85. package/dist/modules/files/index.d.ts +2 -2
  86. package/dist/modules/files/index.js +1 -1
  87. package/dist/modules/fluidgrids/index.d.cts +2 -2
  88. package/dist/modules/fluidgrids/index.d.ts +2 -2
  89. package/dist/modules/fluidgrids/index.js +1 -1
  90. package/dist/modules/ggnomad/index.d.cts +2 -2
  91. package/dist/modules/ggnomad/index.d.ts +2 -2
  92. package/dist/modules/ggnomad/index.js +1 -1
  93. package/dist/modules/govcitizenhub/index.d.cts +2 -2
  94. package/dist/modules/govcitizenhub/index.d.ts +2 -2
  95. package/dist/modules/govcitizenhub/index.js +1 -1
  96. package/dist/modules/groups/index.d.cts +2 -2
  97. package/dist/modules/groups/index.d.ts +2 -2
  98. package/dist/modules/groups/index.js +1 -1
  99. package/dist/modules/headshotmarketing/index.d.cts +2 -2
  100. package/dist/modules/headshotmarketing/index.d.ts +2 -2
  101. package/dist/modules/headshotmarketing/index.js +1 -1
  102. package/dist/modules/health/index.d.cts +2 -2
  103. package/dist/modules/health/index.d.ts +2 -2
  104. package/dist/modules/health/index.js +1 -1
  105. package/dist/modules/hookmovies/index.d.cts +2 -2
  106. package/dist/modules/hookmovies/index.d.ts +2 -2
  107. package/dist/modules/hookmovies/index.js +1 -1
  108. package/dist/modules/housingvista/index.d.cts +2 -2
  109. package/dist/modules/housingvista/index.d.ts +2 -2
  110. package/dist/modules/housingvista/index.js +1 -1
  111. package/dist/modules/integrations/index.d.cts +2 -2
  112. package/dist/modules/integrations/index.d.ts +2 -2
  113. package/dist/modules/integrations/index.js +1 -1
  114. package/dist/modules/intelwatchtower/index.d.cts +2 -2
  115. package/dist/modules/intelwatchtower/index.d.ts +2 -2
  116. package/dist/modules/intelwatchtower/index.js +1 -1
  117. package/dist/modules/kadaikodi/index.d.cts +2 -2
  118. package/dist/modules/kadaikodi/index.d.ts +2 -2
  119. package/dist/modules/kadaikodi/index.js +1 -1
  120. package/dist/modules/labsofscience/index.d.cts +2 -2
  121. package/dist/modules/labsofscience/index.d.ts +2 -2
  122. package/dist/modules/labsofscience/index.js +1 -1
  123. package/dist/modules/manufacturedops/index.d.cts +2 -2
  124. package/dist/modules/manufacturedops/index.d.ts +2 -2
  125. package/dist/modules/manufacturedops/index.js +1 -1
  126. package/dist/modules/movethewheels/index.d.cts +2 -2
  127. package/dist/modules/movethewheels/index.d.ts +2 -2
  128. package/dist/modules/movethewheels/index.js +1 -1
  129. package/dist/modules/mybodyshield/index.d.cts +2 -2
  130. package/dist/modules/mybodyshield/index.d.ts +2 -2
  131. package/dist/modules/mybodyshield/index.js +1 -1
  132. package/dist/modules/notifications/index.d.cts +2 -2
  133. package/dist/modules/notifications/index.d.ts +2 -2
  134. package/dist/modules/notifications/index.js +1 -1
  135. package/dist/modules/organizations/index.d.cts +2 -2
  136. package/dist/modules/organizations/index.d.ts +2 -2
  137. package/dist/modules/organizations/index.js +1 -1
  138. package/dist/modules/planmagnet/index.d.cts +2 -2
  139. package/dist/modules/planmagnet/index.d.ts +2 -2
  140. package/dist/modules/planmagnet/index.js +1 -1
  141. package/dist/modules/products/index.d.cts +2 -2
  142. package/dist/modules/products/index.d.ts +2 -2
  143. package/dist/modules/products/index.js +1 -1
  144. package/dist/modules/proserviceworld/index.d.cts +2 -2
  145. package/dist/modules/proserviceworld/index.d.ts +2 -2
  146. package/dist/modules/proserviceworld/index.js +1 -1
  147. package/dist/modules/rbac/index.d.cts +2 -2
  148. package/dist/modules/rbac/index.d.ts +2 -2
  149. package/dist/modules/rbac/index.js +1 -1
  150. package/dist/modules/sandbox/index.d.cts +2 -2
  151. package/dist/modules/sandbox/index.d.ts +2 -2
  152. package/dist/modules/sandbox/index.js +1 -1
  153. package/dist/modules/scheduler/index.d.cts +2 -2
  154. package/dist/modules/scheduler/index.d.ts +2 -2
  155. package/dist/modules/scheduler/index.js +1 -1
  156. package/dist/modules/security/index.d.cts +2 -2
  157. package/dist/modules/security/index.d.ts +2 -2
  158. package/dist/modules/security/index.js +1 -1
  159. package/dist/modules/semanticfed/index.d.cts +2 -2
  160. package/dist/modules/semanticfed/index.d.ts +2 -2
  161. package/dist/modules/semanticfed/index.js +1 -1
  162. package/dist/modules/store/index.d.cts +2 -2
  163. package/dist/modules/store/index.d.ts +2 -2
  164. package/dist/modules/store/index.js +1 -1
  165. package/dist/modules/subscriberbot/index.d.cts +2 -2
  166. package/dist/modules/subscriberbot/index.d.ts +2 -2
  167. package/dist/modules/subscriberbot/index.js +1 -1
  168. package/dist/modules/support/index.d.cts +2 -2
  169. package/dist/modules/support/index.d.ts +2 -2
  170. package/dist/modules/support/index.js +1 -1
  171. package/dist/modules/tags/index.d.cts +2 -2
  172. package/dist/modules/tags/index.d.ts +2 -2
  173. package/dist/modules/tags/index.js +1 -1
  174. package/dist/modules/technospam/index.d.cts +2 -2
  175. package/dist/modules/technospam/index.d.ts +2 -2
  176. package/dist/modules/technospam/index.js +1 -1
  177. package/dist/modules/theculturepost/index.d.cts +2 -2
  178. package/dist/modules/theculturepost/index.d.ts +2 -2
  179. package/dist/modules/theculturepost/index.js +1 -1
  180. package/dist/modules/theglobalfuel/index.d.cts +2 -2
  181. package/dist/modules/theglobalfuel/index.d.ts +2 -2
  182. package/dist/modules/theglobalfuel/index.js +1 -1
  183. package/dist/modules/timecampus/index.d.cts +2 -2
  184. package/dist/modules/timecampus/index.d.ts +2 -2
  185. package/dist/modules/timecampus/index.js +1 -1
  186. package/dist/modules/tours/index.cjs +1 -2
  187. package/dist/modules/tours/index.cjs.map +1 -1
  188. package/dist/modules/tours/index.d.cts +2 -2
  189. package/dist/modules/tours/index.d.ts +2 -2
  190. package/dist/modules/tours/index.js +2 -3
  191. package/dist/modules/tours/index.js.map +1 -1
  192. package/dist/modules/vibecontrols/index.d.cts +2 -2
  193. package/dist/modules/vibecontrols/index.d.ts +2 -2
  194. package/dist/modules/vibecontrols/index.js +2 -2
  195. package/dist/modules/workspaces/index.cjs +56 -167
  196. package/dist/modules/workspaces/index.cjs.map +1 -1
  197. package/dist/modules/workspaces/index.d.cts +2 -2
  198. package/dist/modules/workspaces/index.d.ts +2 -2
  199. package/dist/modules/workspaces/index.js +57 -168
  200. package/dist/modules/workspaces/index.js.map +1 -1
  201. package/dist/{tool-name-nso0HFYX.d.ts → tool-name-BFdQwYrv.d.ts} +2 -2
  202. package/dist/{tool-name-DYWaobFF.d.cts → tool-name-DzP7TA0l.d.cts} +2 -2
  203. package/dist/transports/index.d.cts +2 -2
  204. package/dist/transports/index.d.ts +2 -2
  205. package/package.json +1 -1
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/modules/billing/operations.ts","../../../src/modules/billing/tools.ts","../../../src/modules/billing/index.ts"],"names":[],"mappings":";;;;AAAO,IAAM,2BAAA,GAA8B;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,CAAA;AAQpC,IAAM,wBAAA,GAA2B;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,CAAA;AASjC,IAAM,gBAAA,GAAmB;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,CAAA;AAQzB,IAAM,yBAAA,GAA4B;A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AmB,GAAA,EAAqC;AAC/D,IAAA,MAAM,QAAkB,EAAC;AACzB,IAAA,MAAM,KAAA,GAAQ,CAAC,CAAA,KAAsB;AACnC,MAAA,KAAA,CAAM,KAAK,CAAC,CAAA;AACZ,MAAA,OAAO,CAAA;AAAA,IACT,CAAA;AAEA,IAAA,oBAAA,CAAqB,MAAA,EAAQ,KAAK,KAAK,CAAA;AAEvC,IAAA,OAAO,EAAE,KAAA,EAAO,SAAA,EAAW,EAAC,EAAG,OAAA,EAAS,EAAC,EAAE;AAAA,EAC7C;AACF,CAAA;AAEA,IAAO,eAAA,GAAQ","file":"index.js","sourcesContent":["export const GET_DEFAULT_BILLING_ACCOUNT = `\n query GetDefaultBillingAccount {\n getDefaultBillingAccount {\n id creditAmount currency\n }\n }\n`;\n\nexport const GET_ACTIVE_SUBSCRIPTIONS = `\n query GetActiveSubscriptions($billingAccountId: ID!) {\n getActiveSubscriptions(billingAccountId: $billingAccountId) {\n id status seatCount nextBillingDate\n plan { name price currency }\n }\n }\n`;\n\nexport const GET_SUBSCRIPTION = `\n query GetSubscription($id: ID!) {\n getSubscription(id: $id) {\n id status startDate endDate seatCount billingAccountId\n }\n }\n`;\n\nexport const UPDATE_SUBSCRIPTION_SEATS = `\n mutation UpdateSubscriptionSeats($input: UpdateSubscriptionSeatsInput!) {\n updateSubscriptionSeats(input: $input) {\n id seatCount lastSeatChangeAt\n }\n }\n`;\n\nexport const CANCEL_SUBSCRIPTION = `\n mutation CancelSubscription($input: CancelSubscriptionInput!) {\n cancelSubscription(input: $input) {\n id status canceledAt cancellationReason\n }\n }\n`;\n\nexport const GET_ALL_PLANS = `\n query GetAllPlans($filter: PlanFilterInput) {\n getAllPlans(filter: $filter) {\n id name price currency duration pricingModel\n }\n }\n`;\n\nexport const GET_PLAN = `\n query GetPlan($id: ID!) {\n getPlan(id: $id) {\n id name price pricePerSeat minSeats maxSeats isActive\n }\n }\n`;\n\nexport const GET_ALL_ADDONS = `\n query GetAllAddOns($filter: AddOnFilterInput, $limit: Int) {\n getAllAddOns(filter: $filter, limit: $limit) {\n id name price currency duration isActive\n }\n }\n`;\n\nexport const GET_PAGINATED_INVOICES = `\n query GetPaginatedInvoices($billingAccountId: ID!, $page: Int, $pageSize: Int) {\n getPaginatedInvoices(billingAccountId: $billingAccountId, page: $page, pageSize: $pageSize) {\n invoices { id invoiceNumber status total currency paidAt pdfUrl }\n totalCount hasMore\n }\n }\n`;\n\nexport const GET_INVOICE = `\n query GetInvoice($id: ID!) {\n getInvoice(id: $id) {\n id invoiceNumber status subtotal tax total\n items { description amount }\n }\n }\n`;\n\nexport const GET_PAYMENT_METHODS = `\n query GetPaymentMethods($billingAccountId: ID!) {\n getPaymentMethods(billingAccountId: $billingAccountId) {\n id type last4 expiryYear brand isDefault isVerified\n }\n }\n`;\n\nexport const ADD_PAYMENT_METHOD = `\n mutation AddPaymentMethod($input: AddPaymentMethodInput!) {\n addPaymentMethod(input: $input) {\n id type isDefault isVerified\n }\n }\n`;\n\nexport const DELETE_PAYMENT_METHOD = `\n mutation DeletePaymentMethod($id: ID!) {\n deletePaymentMethod(id: $id) { success }\n }\n`;\n\nexport const GRANT_CREDITS = `\n mutation GrantCredits($input: GrantCreditsInput!) {\n grantCredits(input: $input) {\n id amount status type\n }\n }\n`;\n\nexport const REQUEST_CREDIT_WITHDRAWAL = `\n mutation RequestCreditWithdrawal($input: RequestCreditWithdrawalInput!) {\n requestCreditWithdrawal(input: $input) {\n id status amount\n }\n }\n`;\n\nexport const GET_PENDING_REFUNDS = `\n query GetPendingRefunds($page: Int, $pageSize: Int) {\n getPendingRefunds(page: $page, pageSize: $pageSize) {\n records { id amount status source createdAt }\n totalCount\n }\n }\n`;\n\nexport const GET_QUOTAS_OF_SUB = `\n query GetQuotas($subscriptionId: ID!) {\n getAllQuotasOfSub(subscriptionId: $subscriptionId) {\n id name limits currentUsageSum reusable\n }\n }\n`;\n","/**\n * Billing module tools — subscriptions, plans, addons, invoices,\n * payment-methods, credits, refunds, quotas.\n *\n * Backend: ~/products/global/billing/global-billing-svc/.\n * Ported from cli-sdk/src/modules/billing/. The CLI's stdin/options become\n * MCP tool arguments. Browser-redirect commands (Stripe checkout) are not\n * present in the source; the closest analogue (`invoices download`) returns a\n * URL — exposed here as `billing_invoices_get_pdf_url`.\n */\n\nimport { z } from 'zod';\nimport { McpServer } from '@modelcontextprotocol/sdk/server/mcp.js';\nimport { jsonResult, errorResult, mcpToolName, type McpContext } from '../../core/index.js';\nimport {\n GET_DEFAULT_BILLING_ACCOUNT,\n GET_ACTIVE_SUBSCRIPTIONS,\n GET_SUBSCRIPTION,\n UPDATE_SUBSCRIPTION_SEATS,\n CANCEL_SUBSCRIPTION,\n GET_ALL_PLANS,\n GET_PLAN,\n GET_ALL_ADDONS,\n GET_PAGINATED_INVOICES,\n GET_INVOICE,\n GET_PAYMENT_METHODS,\n ADD_PAYMENT_METHOD,\n DELETE_PAYMENT_METHOD,\n GRANT_CREDITS,\n REQUEST_CREDIT_WITHDRAWAL,\n GET_PENDING_REFUNDS,\n GET_QUOTAS_OF_SUB,\n} from './operations.js';\n\ninterface SubRow {\n id: string;\n status?: string;\n seatCount?: number;\n nextBillingDate?: string;\n plan?: { name: string; price?: number; currency?: string };\n}\n\ninterface PlanRow {\n id: string;\n name: string;\n price?: number;\n currency?: string;\n duration?: string;\n pricingModel?: string;\n isActive?: boolean;\n}\n\ninterface InvoiceRow {\n id: string;\n invoiceNumber?: string;\n status?: string;\n total?: number;\n currency?: string;\n paidAt?: string;\n pdfUrl?: string;\n}\n\ninterface PaymentMethodRow {\n id: string;\n type: string;\n last4?: string;\n brand?: string;\n isDefault?: boolean;\n isVerified?: boolean;\n}\n\ninterface BillingAccountRow {\n id: string;\n creditAmount?: number;\n currency?: string;\n}\n\nasync function resolveBillingAccountId(\n ctx: McpContext,\n override: string | undefined,\n): Promise<string> {\n if (override !== undefined && override !== '') return override;\n const data = await ctx.gql.global.request<{\n getDefaultBillingAccount: BillingAccountRow | null;\n }>(GET_DEFAULT_BILLING_ACCOUNT);\n if (!data.getDefaultBillingAccount?.id) {\n throw new Error('No default billing account on file. Pass account explicitly.');\n }\n return data.getDefaultBillingAccount.id;\n}\n\nexport function registerBillingTools(\n server: McpServer,\n ctx: McpContext,\n track: (n: string) => string,\n): void {\n // ── Subscriptions ──────────────────────────────────────────────────────\n server.registerTool(\n track(mcpToolName(ctx.productName, 'billing_subscriptions_list')),\n {\n title: 'List Subscriptions',\n description: 'List active subscriptions on a billing account (defaults to current).',\n inputSchema: {\n account: z.string().optional().describe('Billing account ID (defaults to current)'),\n },\n },\n async ({ account }) => {\n try {\n const billingAccountId = await resolveBillingAccountId(ctx, account);\n const data = await ctx.gql.global.request<{ getActiveSubscriptions: SubRow[] }>(\n GET_ACTIVE_SUBSCRIPTIONS,\n { billingAccountId },\n );\n return jsonResult(data.getActiveSubscriptions);\n } catch (error) {\n ctx.logger.error('billing_subscriptions_list failed', { error: String(error) });\n return errorResult(\n `Failed to list subscriptions: ${error instanceof Error ? error.message : String(error)}`,\n );\n }\n },\n );\n\n server.registerTool(\n track(mcpToolName(ctx.productName, 'billing_subscriptions_get')),\n {\n title: 'Get Subscription',\n description: 'Get a subscription by ID.',\n inputSchema: { id: z.string().describe('Subscription ID') },\n },\n async ({ id }) => {\n try {\n const data = await ctx.gql.global.request<{ getSubscription: SubRow | null }>(\n GET_SUBSCRIPTION,\n { id },\n );\n if (!data.getSubscription) return errorResult(`Subscription ${id} not found`);\n return jsonResult(data.getSubscription);\n } catch (error) {\n ctx.logger.error('billing_subscriptions_get failed', { error: String(error) });\n return errorResult(\n `Failed to get subscription: ${error instanceof Error ? error.message : String(error)}`,\n );\n }\n },\n );\n\n server.registerTool(\n track(mcpToolName(ctx.productName, 'billing_subscriptions_upgrade')),\n {\n title: 'Update Subscription Seats',\n description: 'Change the seat count on a subscription.',\n inputSchema: {\n id: z.string().describe('Subscription ID'),\n seats: z.number().describe('Target seat count'),\n },\n },\n async ({ id, seats }) => {\n try {\n const input: Record<string, unknown> = { subscriptionId: id, seatCount: seats };\n const data = await ctx.gql.global.request<{ updateSubscriptionSeats: SubRow }>(\n UPDATE_SUBSCRIPTION_SEATS,\n { input },\n );\n return jsonResult(data.updateSubscriptionSeats);\n } catch (error) {\n ctx.logger.error('billing_subscriptions_upgrade failed', { error: String(error) });\n return errorResult(\n `Failed to update seats: ${error instanceof Error ? error.message : String(error)}`,\n );\n }\n },\n );\n\n server.registerTool(\n track(mcpToolName(ctx.productName, 'billing_subscriptions_cancel')),\n {\n title: 'Cancel Subscription',\n description: 'Cancel a subscription with an optional reason.',\n inputSchema: {\n id: z.string().describe('Subscription ID'),\n reason: z.string().optional().describe('Cancellation reason'),\n },\n },\n async ({ id, reason }) => {\n try {\n const input: Record<string, unknown> = { subscriptionId: id };\n if (reason !== undefined) input.reason = reason;\n const data = await ctx.gql.global.request<{ cancelSubscription: SubRow }>(\n CANCEL_SUBSCRIPTION,\n { input },\n );\n return jsonResult(data.cancelSubscription);\n } catch (error) {\n ctx.logger.error('billing_subscriptions_cancel failed', { error: String(error) });\n return errorResult(\n `Failed to cancel subscription: ${error instanceof Error ? error.message : String(error)}`,\n );\n }\n },\n );\n\n // ── Plans ──────────────────────────────────────────────────────────────\n server.registerTool(\n track(mcpToolName(ctx.productName, 'billing_plans_list')),\n {\n title: 'List Plans',\n description: 'List available plans, optionally filtered by product.',\n inputSchema: {\n product: z.string().optional().describe('Product ID filter'),\n },\n },\n async ({ product }) => {\n try {\n const filter: Record<string, unknown> = {};\n if (product !== undefined) filter.productId = product;\n const data = await ctx.gql.global.request<{ getAllPlans: PlanRow[] }>(GET_ALL_PLANS, {\n filter: Object.keys(filter).length ? filter : undefined,\n });\n return jsonResult(data.getAllPlans);\n } catch (error) {\n ctx.logger.error('billing_plans_list failed', { error: String(error) });\n return errorResult(\n `Failed to list plans: ${error instanceof Error ? error.message : String(error)}`,\n );\n }\n },\n );\n\n server.registerTool(\n track(mcpToolName(ctx.productName, 'billing_plans_get')),\n {\n title: 'Get Plan',\n description: 'Get a plan by ID.',\n inputSchema: { id: z.string().describe('Plan ID') },\n },\n async ({ id }) => {\n try {\n const data = await ctx.gql.global.request<{ getPlan: PlanRow | null }>(GET_PLAN, { id });\n if (!data.getPlan) return errorResult(`Plan ${id} not found`);\n return jsonResult(data.getPlan);\n } catch (error) {\n ctx.logger.error('billing_plans_get failed', { error: String(error) });\n return errorResult(\n `Failed to get plan: ${error instanceof Error ? error.message : String(error)}`,\n );\n }\n },\n );\n\n // ── Addons ─────────────────────────────────────────────────────────────\n server.registerTool(\n track(mcpToolName(ctx.productName, 'billing_addons_list')),\n {\n title: 'List Addons',\n description: 'List addons, optionally filtered by product.',\n inputSchema: {\n product: z.string().optional().describe('Product ID filter'),\n limit: z.number().optional().describe('Page size (default 50)'),\n },\n },\n async ({ product, limit }) => {\n try {\n const filter: Record<string, unknown> = {};\n if (product !== undefined) filter.productId = product;\n const data = await ctx.gql.global.request<{ getAllAddOns: PlanRow[] }>(GET_ALL_ADDONS, {\n filter: Object.keys(filter).length ? filter : undefined,\n limit,\n });\n return jsonResult(data.getAllAddOns);\n } catch (error) {\n ctx.logger.error('billing_addons_list failed', { error: String(error) });\n return errorResult(\n `Failed to list addons: ${error instanceof Error ? error.message : String(error)}`,\n );\n }\n },\n );\n\n // ── Invoices ───────────────────────────────────────────────────────────\n server.registerTool(\n track(mcpToolName(ctx.productName, 'billing_invoices_list')),\n {\n title: 'List Invoices',\n description: 'Paginated list of invoices on a billing account.',\n inputSchema: {\n account: z.string().optional().describe('Billing account ID (defaults to current)'),\n page: z.number().optional().describe('Page number (default 1)'),\n pageSize: z.number().optional().describe('Page size (default 20)'),\n },\n },\n async ({ account, page, pageSize }) => {\n try {\n const billingAccountId = await resolveBillingAccountId(ctx, account);\n const data = await ctx.gql.global.request<{\n getPaginatedInvoices: { invoices: InvoiceRow[]; totalCount: number };\n }>(GET_PAGINATED_INVOICES, { billingAccountId, page, pageSize });\n return jsonResult(data.getPaginatedInvoices);\n } catch (error) {\n ctx.logger.error('billing_invoices_list failed', { error: String(error) });\n return errorResult(\n `Failed to list invoices: ${error instanceof Error ? error.message : String(error)}`,\n );\n }\n },\n );\n\n server.registerTool(\n track(mcpToolName(ctx.productName, 'billing_invoices_get')),\n {\n title: 'Get Invoice',\n description: 'Get an invoice by ID.',\n inputSchema: { id: z.string().describe('Invoice ID') },\n },\n async ({ id }) => {\n try {\n const data = await ctx.gql.global.request<{ getInvoice: InvoiceRow | null }>(GET_INVOICE, {\n id,\n });\n if (!data.getInvoice) return errorResult(`Invoice ${id} not found`);\n return jsonResult(data.getInvoice);\n } catch (error) {\n ctx.logger.error('billing_invoices_get failed', { error: String(error) });\n return errorResult(\n `Failed to get invoice: ${error instanceof Error ? error.message : String(error)}`,\n );\n }\n },\n );\n\n // Browser-redirect analogue: returns the PDF URL for the LLM to share.\n server.registerTool(\n track(mcpToolName(ctx.productName, 'billing_invoices_get_pdf_url')),\n {\n title: 'Get Invoice PDF URL',\n description:\n 'Return the invoice PDF download URL. The actual PDF must be opened in a browser by the user.',\n inputSchema: { id: z.string().describe('Invoice ID') },\n },\n async ({ id }) => {\n try {\n const data = await ctx.gql.global.request<{ getInvoice: InvoiceRow | null }>(GET_INVOICE, {\n id,\n });\n if (!data.getInvoice?.pdfUrl) return errorResult(`Invoice ${id} has no pdfUrl`);\n return jsonResult({ url: data.getInvoice.pdfUrl });\n } catch (error) {\n ctx.logger.error('billing_invoices_get_pdf_url failed', { error: String(error) });\n return errorResult(\n `Failed to fetch invoice URL: ${error instanceof Error ? error.message : String(error)}`,\n );\n }\n },\n );\n\n // ── Payment methods ────────────────────────────────────────────────────\n server.registerTool(\n track(mcpToolName(ctx.productName, 'billing_payment_methods_list')),\n {\n title: 'List Payment Methods',\n description: 'List payment methods on a billing account.',\n inputSchema: {\n account: z.string().optional().describe('Billing account ID (defaults to current)'),\n },\n },\n async ({ account }) => {\n try {\n const billingAccountId = await resolveBillingAccountId(ctx, account);\n const data = await ctx.gql.global.request<{ getPaymentMethods: PaymentMethodRow[] }>(\n GET_PAYMENT_METHODS,\n { billingAccountId },\n );\n return jsonResult(data.getPaymentMethods);\n } catch (error) {\n ctx.logger.error('billing_payment_methods_list failed', { error: String(error) });\n return errorResult(\n `Failed to list payment methods: ${error instanceof Error ? error.message : String(error)}`,\n );\n }\n },\n );\n\n server.registerTool(\n track(mcpToolName(ctx.productName, 'billing_payment_methods_add')),\n {\n title: 'Add Payment Method',\n description:\n 'Add a payment method (card metadata only — provider handles secrets). Use the provider checkout URL elsewhere for full card capture.',\n inputSchema: {\n type: z.enum(['CREDIT_CARD', 'BANK', 'UPI']).describe('Payment method type'),\n last4: z.string().describe('Last 4 digits / identifier'),\n brand: z.string().optional().describe('Brand (Visa, MasterCard, etc.)'),\n expiryMonth: z.number().optional().describe('Expiry month (1-12)'),\n expiryYear: z.number().optional().describe('Expiry year (4 digits)'),\n account: z.string().optional().describe('Billing account ID (defaults to current)'),\n isDefault: z.boolean().optional().describe('Make it the default'),\n },\n },\n async ({ type, last4, brand, expiryMonth, expiryYear, account, isDefault }) => {\n try {\n const billingAccountId = await resolveBillingAccountId(ctx, account);\n const input: Record<string, unknown> = {\n billingAccountId,\n type,\n last4,\n isDefault: isDefault === true,\n };\n if (brand !== undefined) input.brand = brand;\n if (expiryMonth !== undefined) input.expiryMonth = expiryMonth;\n if (expiryYear !== undefined) input.expiryYear = expiryYear;\n\n const data = await ctx.gql.global.request<{ addPaymentMethod: PaymentMethodRow }>(\n ADD_PAYMENT_METHOD,\n { input },\n );\n return jsonResult(data.addPaymentMethod);\n } catch (error) {\n ctx.logger.error('billing_payment_methods_add failed', { error: String(error) });\n return errorResult(\n `Failed to add payment method: ${error instanceof Error ? error.message : String(error)}`,\n );\n }\n },\n );\n\n server.registerTool(\n track(mcpToolName(ctx.productName, 'billing_payment_methods_remove')),\n {\n title: 'Remove Payment Method',\n description: 'Delete a payment method by ID.',\n inputSchema: { id: z.string().describe('Payment method ID') },\n },\n async ({ id }) => {\n try {\n await ctx.gql.global.request<{ deletePaymentMethod: { success: boolean } }>(\n DELETE_PAYMENT_METHOD,\n { id },\n );\n return jsonResult({ status: 'success', message: 'Payment method removed', id });\n } catch (error) {\n ctx.logger.error('billing_payment_methods_remove failed', { error: String(error) });\n return errorResult(\n `Failed to remove payment method: ${error instanceof Error ? error.message : String(error)}`,\n );\n }\n },\n );\n\n // ── Credits ────────────────────────────────────────────────────────────\n server.registerTool(\n track(mcpToolName(ctx.productName, 'billing_credits_balance')),\n {\n title: 'Credit Balance',\n description: 'Show current credit balance on the default billing account.',\n inputSchema: {},\n },\n async () => {\n try {\n const data = await ctx.gql.global.request<{\n getDefaultBillingAccount: BillingAccountRow | null;\n }>(GET_DEFAULT_BILLING_ACCOUNT);\n return jsonResult(data.getDefaultBillingAccount);\n } catch (error) {\n ctx.logger.error('billing_credits_balance failed', { error: String(error) });\n return errorResult(\n `Failed to read balance: ${error instanceof Error ? error.message : String(error)}`,\n );\n }\n },\n );\n\n server.registerTool(\n track(mcpToolName(ctx.productName, 'billing_credits_grant')),\n {\n title: 'Grant Credits',\n description: 'Grant credits to a billing account (admin only).',\n inputSchema: {\n account: z.string().describe('Billing account ID'),\n amount: z.number().describe('Amount to grant'),\n reason: z.string().optional().describe('Reason for grant'),\n },\n },\n async ({ account, amount, reason }) => {\n try {\n const input: Record<string, unknown> = {\n billingAccountId: account,\n amount,\n reason: reason ?? 'mcp-grant',\n };\n await ctx.gql.global.request(GRANT_CREDITS, { input });\n return jsonResult({ status: 'success', message: 'Credits granted', amount, account });\n } catch (error) {\n ctx.logger.error('billing_credits_grant failed', { error: String(error) });\n return errorResult(\n `Failed to grant credits: ${error instanceof Error ? error.message : String(error)}`,\n );\n }\n },\n );\n\n server.registerTool(\n track(mcpToolName(ctx.productName, 'billing_credits_withdraw')),\n {\n title: 'Withdraw Credits',\n description: 'Request a credit withdrawal to a payout account.',\n inputSchema: {\n account: z.string().describe('Billing account ID'),\n amount: z.number().describe('Amount to withdraw'),\n payout: z.string().describe('Payout account ID'),\n },\n },\n async ({ account, amount, payout }) => {\n try {\n const input: Record<string, unknown> = {\n billingAccountId: account,\n creditAmount: amount,\n payoutAccountId: payout,\n };\n await ctx.gql.global.request(REQUEST_CREDIT_WITHDRAWAL, { input });\n return jsonResult({ status: 'success', message: 'Withdrawal requested', amount, account });\n } catch (error) {\n ctx.logger.error('billing_credits_withdraw failed', { error: String(error) });\n return errorResult(\n `Failed to request withdrawal: ${error instanceof Error ? error.message : String(error)}`,\n );\n }\n },\n );\n\n // ── Refunds ────────────────────────────────────────────────────────────\n server.registerTool(\n track(mcpToolName(ctx.productName, 'billing_refunds_list')),\n {\n title: 'List Pending Refunds',\n description: 'List pending refund records (paginated).',\n inputSchema: {\n page: z.number().optional().describe('Page number (default 0)'),\n pageSize: z.number().optional().describe('Page size (default 20)'),\n },\n },\n async ({ page, pageSize }) => {\n try {\n const data = await ctx.gql.global.request<{\n getPendingRefunds: { records: Array<Record<string, unknown>>; totalCount: number };\n }>(GET_PENDING_REFUNDS, { page, pageSize });\n return jsonResult(data.getPendingRefunds);\n } catch (error) {\n ctx.logger.error('billing_refunds_list failed', { error: String(error) });\n return errorResult(\n `Failed to list refunds: ${error instanceof Error ? error.message : String(error)}`,\n );\n }\n },\n );\n\n // ── Quota ──────────────────────────────────────────────────────────────\n server.registerTool(\n track(mcpToolName(ctx.productName, 'billing_quota_list')),\n {\n title: 'List Subscription Quotas',\n description: 'Get all quotas for a subscription.',\n inputSchema: {\n subscriptionId: z.string().describe('Subscription ID'),\n },\n },\n async ({ subscriptionId }) => {\n try {\n const data = await ctx.gql.global.request<{\n getAllQuotasOfSub: Array<Record<string, unknown>>;\n }>(GET_QUOTAS_OF_SUB, { subscriptionId });\n return jsonResult(data.getAllQuotasOfSub);\n } catch (error) {\n ctx.logger.error('billing_quota_list failed', { error: String(error) });\n return errorResult(\n `Failed to list quotas: ${error instanceof Error ? error.message : String(error)}`,\n );\n }\n },\n );\n}\n","/**\n * Billing module — subscriptions, plans, addons, invoices, payment-methods,\n * credits, refunds, quotas. Backend: ~/products/global/billing/global-billing-svc/.\n * Ported from cli-sdk/src/modules/billing/.\n */\n\nimport type { McpServer } from '@modelcontextprotocol/sdk/server/mcp.js';\nimport type { McpContext, McpModule, ModuleRegistration } from '../../core/index.js';\nimport { registerBillingTools } from './tools.js';\n\nconst billingModule: McpModule = {\n id: 'billing',\n version: '0.0.1',\n displayName: 'Billing',\n dependsOn: ['auth'],\n capabilities: { tools: {} },\n\n register(server: McpServer, ctx: McpContext): ModuleRegistration {\n const tools: string[] = [];\n const track = (n: string): string => {\n tools.push(n);\n return n;\n };\n\n registerBillingTools(server, ctx, track);\n\n return { tools, resources: [], prompts: [] };\n },\n};\n\nexport default billingModule;\n"]}
1
+ {"version":3,"sources":["../../../src/modules/billing/operations.ts","../../../src/modules/billing/tools.ts","../../../src/modules/billing/index.ts"],"names":[],"mappings":";;;;AAAO,IAAM,2BAAA,GAA8B;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,CAAA;AAQpC,IAAM,wBAAA,GAA2B;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,CAAA;AASjC,IAAM,gBAAA,GAAmB;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,CAAA;AAQzB,IAAM,yBAAA,GAA4B;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,CAAA;AAQlC,IAAM,mBAAA,GAAsB;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,CAAA;AAY5B,IAAM,aAAA,GAAgB;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,CAAA;AAQtB,IAAM,QAAA,GAAW;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,CAAA;AAWjB,IAAM,cAAA,GAAiB;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,CAAA;AAQvB,IAAM,sBAAA,GAAyB;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,CAAA;AAS/B,IAAM,WAAA,GAAc;AAAA;AAAA;AAAA;AAAA;AAAA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;AAAA,EAClB,YAAA,EAAc,EAAE,KAAA,EAAO,EAAC,EAAE;AAAA,EAE1B,QAAA,CAAS,QAAmB,GAAA,EAAqC;AAC/D,IAAA,MAAM,QAAkB,EAAC;AACzB,IAAA,MAAM,KAAA,GAAQ,CAAC,CAAA,KAAsB;AACnC,MAAA,KAAA,CAAM,KAAK,CAAC,CAAA;AACZ,MAAA,OAAO,CAAA;AAAA,IACT,CAAA;AAEA,IAAA,oBAAA,CAAqB,MAAA,EAAQ,KAAK,KAAK,CAAA;AAEvC,IAAA,OAAO,EAAE,KAAA,EAAO,SAAA,EAAW,EAAC,EAAG,OAAA,EAAS,EAAC,EAAE;AAAA,EAC7C;AACF,CAAA;AAEA,IAAO,eAAA,GAAQ","file":"index.js","sourcesContent":["export const GET_DEFAULT_BILLING_ACCOUNT = `\n query GetDefaultBillingAccount {\n getDefaultBillingAccount {\n id creditAmount currency\n }\n }\n`;\n\nexport const GET_ACTIVE_SUBSCRIPTIONS = `\n query GetActiveSubscriptions($billingAccountId: ID!) {\n getActiveSubscriptions(billingAccountId: $billingAccountId) {\n id status seatCount nextBillingDate\n plan { name price currency }\n }\n }\n`;\n\nexport const GET_SUBSCRIPTION = `\n query GetSubscription($billingAccountId: ID!, $id: ID!) {\n getSubscription(billingAccountId: $billingAccountId, id: $id) {\n id status startDate endDate seatCount billingAccountId\n }\n }\n`;\n\nexport const UPDATE_SUBSCRIPTION_SEATS = `\n mutation UpdateSubscriptionSeats($input: UpdateSubscriptionSeatsInput!) {\n updateSubscriptionSeats(input: $input) {\n id seatCount lastSeatChangeAt\n }\n }\n`;\n\nexport const CANCEL_SUBSCRIPTION = `\n mutation CancelSubscription($input: CancelSubscriptionInput!) {\n cancelSubscription(input: $input) {\n id status canceledAt cancellationReason\n }\n }\n`;\n\n// BOFF-8183: the live supergraph exposes `PlansFilter` (no \"Input\" suffix);\n// `PlanFilterInput` is an mcp-libs artifact that the gateway rejects with\n// `Unknown type \"PlanFilterInput\"`. The filter is optional — we forward\n// it only when the caller actually provides one.\nexport const GET_ALL_PLANS = `\n query GetAllPlans($filter: PlansFilter) {\n getAllPlans(filter: $filter) {\n id name price currency duration pricingModel\n }\n }\n`;\n\nexport const GET_PLAN = `\n query GetPlan($id: ID!) {\n getPlan(id: $id) {\n id name price pricePerSeat minSeats maxSeats isActive\n }\n }\n`;\n\n// BOFF-8183 follow-up: same family as the plan filter — the live type is\n// `AddonsFilter` (no \"Input\" suffix). The `$limit` arg is supported and\n// forwarded as a connection-style cap.\nexport const GET_ALL_ADDONS = `\n query GetAllAddOns($filter: AddonsFilter, $limit: Int) {\n getAllAddOns(filter: $filter, limit: $limit) {\n id name price currency duration isActive\n }\n }\n`;\n\nexport const GET_PAGINATED_INVOICES = `\n query GetPaginatedInvoices($billingAccountId: ID!, $page: Int, $pageSize: Int) {\n getPaginatedInvoices(billingAccountId: $billingAccountId, page: $page, pageSize: $pageSize) {\n invoices { id invoiceNumber status total currency paidAt pdfUrl }\n totalCount hasMore\n }\n }\n`;\n\nexport const GET_INVOICE = `\n query GetInvoice($id: ID!) {\n getInvoice(id: $id) {\n id invoiceNumber status subtotal tax total\n items { description amount }\n }\n }\n`;\n\nexport const GET_PAYMENT_METHODS = `\n query GetPaymentMethods($billingAccountId: ID!) {\n getPaymentMethods(billingAccountId: $billingAccountId) {\n id type last4 expiryYear brand isDefault isVerified\n }\n }\n`;\n\nexport const ADD_PAYMENT_METHOD = `\n mutation AddPaymentMethod($input: AddPaymentMethodInput!) {\n addPaymentMethod(input: $input) {\n id type isDefault isVerified\n }\n }\n`;\n\nexport const DELETE_PAYMENT_METHOD = `\n mutation DeletePaymentMethod($id: ID!) {\n deletePaymentMethod(id: $id) { success }\n }\n`;\n\nexport const GRANT_CREDITS = `\n mutation GrantCredits($input: GrantCreditsInput!) {\n grantCredits(input: $input) {\n id amount status type\n }\n }\n`;\n\nexport const REQUEST_CREDIT_WITHDRAWAL = `\n mutation RequestCreditWithdrawal($input: RequestCreditWithdrawalInput!) {\n requestCreditWithdrawal(input: $input) {\n id status amount\n }\n }\n`;\n\nexport const GET_PENDING_REFUNDS = `\n query GetPendingRefunds($page: Int, $pageSize: Int) {\n getPendingRefunds(page: $page, pageSize: $pageSize) {\n records { id amount status source createdAt }\n totalCount\n }\n }\n`;\n\n// Live alpha requires BOTH `billingAccountId` and `subscriptionId` for\n// `getAllQuotasOfSub`; passing only `subscriptionId` returned\n// \"Field getAllQuotasOfSub argument billingAccountId of type ID! is\n// required\". The MCP tool already takes `billingAccountId` as a required\n// arg — we just need to forward it.\nexport const GET_QUOTAS_OF_SUB = `\n query GetQuotas($billingAccountId: ID!, $subscriptionId: ID!) {\n getAllQuotasOfSub(billingAccountId: $billingAccountId, subscriptionId: $subscriptionId) {\n id name limits currentUsageSum reusable\n }\n }\n`;\n","/**\n * Billing module tools — subscriptions, plans, addons, invoices,\n * payment-methods, credits, refunds, quotas.\n *\n * Backend: ~/products/global/billing/global-billing-svc/.\n * Ported from cli-sdk/src/modules/billing/. The CLI's stdin/options become\n * MCP tool arguments. Browser-redirect commands (Stripe checkout) are not\n * present in the source; the closest analogue (`invoices download`) returns a\n * URL — exposed here as `billing_invoices_get_pdf_url`.\n */\n\nimport { z } from 'zod';\nimport { McpServer } from '@modelcontextprotocol/sdk/server/mcp.js';\nimport { jsonResult, errorResult, mcpToolName, type McpContext } from '../../core/index.js';\nimport {\n GET_DEFAULT_BILLING_ACCOUNT,\n GET_ACTIVE_SUBSCRIPTIONS,\n GET_SUBSCRIPTION,\n UPDATE_SUBSCRIPTION_SEATS,\n CANCEL_SUBSCRIPTION,\n GET_ALL_PLANS,\n GET_PLAN,\n GET_ALL_ADDONS,\n GET_PAGINATED_INVOICES,\n GET_INVOICE,\n GET_PAYMENT_METHODS,\n ADD_PAYMENT_METHOD,\n DELETE_PAYMENT_METHOD,\n GRANT_CREDITS,\n REQUEST_CREDIT_WITHDRAWAL,\n GET_PENDING_REFUNDS,\n GET_QUOTAS_OF_SUB,\n} from './operations.js';\n\ninterface SubRow {\n id: string;\n status?: string;\n seatCount?: number;\n nextBillingDate?: string;\n plan?: { name: string; price?: number; currency?: string };\n}\n\ninterface PlanRow {\n id: string;\n name: string;\n price?: number;\n currency?: string;\n duration?: string;\n pricingModel?: string;\n isActive?: boolean;\n}\n\ninterface InvoiceRow {\n id: string;\n invoiceNumber?: string;\n status?: string;\n total?: number;\n currency?: string;\n paidAt?: string;\n pdfUrl?: string;\n}\n\ninterface PaymentMethodRow {\n id: string;\n type: string;\n last4?: string;\n brand?: string;\n isDefault?: boolean;\n isVerified?: boolean;\n}\n\ninterface BillingAccountRow {\n id: string;\n creditAmount?: number;\n currency?: string;\n}\n\nasync function resolveBillingAccountId(\n ctx: McpContext,\n override: string | undefined,\n): Promise<string> {\n if (override !== undefined && override !== '') return override;\n const data = await ctx.gql.global.request<{\n getDefaultBillingAccount: BillingAccountRow | null;\n }>(GET_DEFAULT_BILLING_ACCOUNT);\n if (!data.getDefaultBillingAccount?.id) {\n throw new Error('No default billing account on file. Pass account explicitly.');\n }\n return data.getDefaultBillingAccount.id;\n}\n\nexport function registerBillingTools(\n server: McpServer,\n ctx: McpContext,\n track: (n: string) => string,\n): void {\n // ── Subscriptions ──────────────────────────────────────────────────────\n server.registerTool(\n track(mcpToolName(ctx.productName, 'billing_subscriptions_list')),\n {\n title: 'List Subscriptions',\n description: 'List active subscriptions on a billing account (defaults to current).',\n inputSchema: {\n account: z.string().optional().describe('Billing account ID (defaults to current)'),\n },\n },\n async ({ account }) => {\n try {\n const billingAccountId = await resolveBillingAccountId(ctx, account);\n const data = await ctx.gql.global.request<{ getActiveSubscriptions: SubRow[] }>(\n GET_ACTIVE_SUBSCRIPTIONS,\n { billingAccountId },\n );\n return jsonResult(data.getActiveSubscriptions);\n } catch (error) {\n ctx.logger.error('billing_subscriptions_list failed', { error: String(error) });\n return errorResult(\n `Failed to list subscriptions: ${error instanceof Error ? error.message : String(error)}`,\n );\n }\n },\n );\n\n server.registerTool(\n track(mcpToolName(ctx.productName, 'billing_subscriptions_get')),\n {\n title: 'Get Subscription',\n description:\n 'Get a subscription by ID. Live alpha requires BOTH `billingAccountId` and `id`; the missing `billingAccountId` was rejected with \"argument billingAccountId of type ID! is required\". The MCP tool forwards the default billing account id when the caller omits one.',\n inputSchema: {\n id: z.string().describe('Subscription ID'),\n billingAccountId: z\n .string()\n .optional()\n .describe(\n \"Billing account ID (defaults to the caller's default billing account when omitted)\",\n ),\n },\n },\n async ({ id, billingAccountId }) => {\n try {\n const accountId =\n billingAccountId ?? (await resolveBillingAccountId(ctx, billingAccountId));\n if (!accountId) {\n return errorResult(\n 'No billing account id; pass `billingAccountId` or ensure `getDefaultBillingAccount` is callable for the caller.',\n );\n }\n const data = await ctx.gql.global.request<{ getSubscription: SubRow | null }>(\n GET_SUBSCRIPTION,\n { billingAccountId: accountId, id },\n );\n if (!data.getSubscription) return errorResult(`Subscription ${id} not found`);\n return jsonResult(data.getSubscription);\n } catch (error) {\n ctx.logger.error('billing_subscriptions_get failed', { error: String(error) });\n return errorResult(\n `Failed to get subscription: ${error instanceof Error ? error.message : String(error)}`,\n );\n }\n },\n );\n\n server.registerTool(\n track(mcpToolName(ctx.productName, 'billing_subscriptions_upgrade')),\n {\n title: 'Update Subscription Seats',\n description: 'Change the seat count on a subscription.',\n inputSchema: {\n id: z.string().describe('Subscription ID'),\n seats: z.number().describe('Target seat count'),\n },\n },\n async ({ id, seats }) => {\n try {\n const input: Record<string, unknown> = { subscriptionId: id, seatCount: seats };\n const data = await ctx.gql.global.request<{ updateSubscriptionSeats: SubRow }>(\n UPDATE_SUBSCRIPTION_SEATS,\n { input },\n );\n return jsonResult(data.updateSubscriptionSeats);\n } catch (error) {\n ctx.logger.error('billing_subscriptions_upgrade failed', { error: String(error) });\n return errorResult(\n `Failed to update seats: ${error instanceof Error ? error.message : String(error)}`,\n );\n }\n },\n );\n\n server.registerTool(\n track(mcpToolName(ctx.productName, 'billing_subscriptions_cancel')),\n {\n title: 'Cancel Subscription',\n description: 'Cancel a subscription with an optional reason.',\n inputSchema: {\n id: z.string().describe('Subscription ID'),\n reason: z.string().optional().describe('Cancellation reason'),\n },\n },\n async ({ id, reason }) => {\n try {\n const input: Record<string, unknown> = { subscriptionId: id };\n if (reason !== undefined) input.reason = reason;\n const data = await ctx.gql.global.request<{ cancelSubscription: SubRow }>(\n CANCEL_SUBSCRIPTION,\n { input },\n );\n return jsonResult(data.cancelSubscription);\n } catch (error) {\n ctx.logger.error('billing_subscriptions_cancel failed', { error: String(error) });\n return errorResult(\n `Failed to cancel subscription: ${error instanceof Error ? error.message : String(error)}`,\n );\n }\n },\n );\n\n // ── Plans ──────────────────────────────────────────────────────────────\n server.registerTool(\n track(mcpToolName(ctx.productName, 'billing_plans_list')),\n {\n title: 'List Plans',\n description: 'List available plans, optionally filtered by product.',\n inputSchema: {\n product: z.string().optional().describe('Product ID filter'),\n },\n },\n async ({ product }) => {\n try {\n const filter: Record<string, unknown> = {};\n if (product !== undefined) filter.productId = product;\n const data = await ctx.gql.global.request<{ getAllPlans: PlanRow[] }>(GET_ALL_PLANS, {\n filter: Object.keys(filter).length ? filter : undefined,\n });\n return jsonResult(data.getAllPlans);\n } catch (error) {\n ctx.logger.error('billing_plans_list failed', { error: String(error) });\n return errorResult(\n `Failed to list plans: ${error instanceof Error ? error.message : String(error)}`,\n );\n }\n },\n );\n\n server.registerTool(\n track(mcpToolName(ctx.productName, 'billing_plans_get')),\n {\n title: 'Get Plan',\n description: 'Get a plan by ID.',\n inputSchema: { id: z.string().describe('Plan ID') },\n },\n async ({ id }) => {\n try {\n const data = await ctx.gql.global.request<{ getPlan: PlanRow | null }>(GET_PLAN, { id });\n if (!data.getPlan) return errorResult(`Plan ${id} not found`);\n return jsonResult(data.getPlan);\n } catch (error) {\n ctx.logger.error('billing_plans_get failed', { error: String(error) });\n return errorResult(\n `Failed to get plan: ${error instanceof Error ? error.message : String(error)}`,\n );\n }\n },\n );\n\n // ── Addons ─────────────────────────────────────────────────────────────\n server.registerTool(\n track(mcpToolName(ctx.productName, 'billing_addons_list')),\n {\n title: 'List Addons',\n description: 'List addons, optionally filtered by product.',\n inputSchema: {\n product: z.string().optional().describe('Product ID filter'),\n limit: z.number().optional().describe('Page size (default 50)'),\n },\n },\n async ({ product, limit }) => {\n try {\n const filter: Record<string, unknown> = {};\n if (product !== undefined) filter.productId = product;\n const data = await ctx.gql.global.request<{ getAllAddOns: PlanRow[] }>(GET_ALL_ADDONS, {\n filter: Object.keys(filter).length ? filter : undefined,\n limit,\n });\n return jsonResult(data.getAllAddOns);\n } catch (error) {\n ctx.logger.error('billing_addons_list failed', { error: String(error) });\n return errorResult(\n `Failed to list addons: ${error instanceof Error ? error.message : String(error)}`,\n );\n }\n },\n );\n\n // ── Invoices ───────────────────────────────────────────────────────────\n server.registerTool(\n track(mcpToolName(ctx.productName, 'billing_invoices_list')),\n {\n title: 'List Invoices',\n description: 'Paginated list of invoices on a billing account.',\n inputSchema: {\n account: z.string().optional().describe('Billing account ID (defaults to current)'),\n page: z.number().optional().describe('Page number (default 1)'),\n pageSize: z.number().optional().describe('Page size (default 20)'),\n },\n },\n async ({ account, page, pageSize }) => {\n try {\n const billingAccountId = await resolveBillingAccountId(ctx, account);\n const data = await ctx.gql.global.request<{\n getPaginatedInvoices: { invoices: InvoiceRow[]; totalCount: number };\n }>(GET_PAGINATED_INVOICES, { billingAccountId, page, pageSize });\n return jsonResult(data.getPaginatedInvoices);\n } catch (error) {\n ctx.logger.error('billing_invoices_list failed', { error: String(error) });\n return errorResult(\n `Failed to list invoices: ${error instanceof Error ? error.message : String(error)}`,\n );\n }\n },\n );\n\n server.registerTool(\n track(mcpToolName(ctx.productName, 'billing_invoices_get')),\n {\n title: 'Get Invoice',\n description: 'Get an invoice by ID.',\n inputSchema: { id: z.string().describe('Invoice ID') },\n },\n async ({ id }) => {\n try {\n const data = await ctx.gql.global.request<{ getInvoice: InvoiceRow | null }>(GET_INVOICE, {\n id,\n });\n if (!data.getInvoice) return errorResult(`Invoice ${id} not found`);\n return jsonResult(data.getInvoice);\n } catch (error) {\n ctx.logger.error('billing_invoices_get failed', { error: String(error) });\n return errorResult(\n `Failed to get invoice: ${error instanceof Error ? error.message : String(error)}`,\n );\n }\n },\n );\n\n // Browser-redirect analogue: returns the PDF URL for the LLM to share.\n server.registerTool(\n track(mcpToolName(ctx.productName, 'billing_invoices_get_pdf_url')),\n {\n title: 'Get Invoice PDF URL',\n description:\n 'Return the invoice PDF download URL. The actual PDF must be opened in a browser by the user.',\n inputSchema: { id: z.string().describe('Invoice ID') },\n },\n async ({ id }) => {\n try {\n const data = await ctx.gql.global.request<{ getInvoice: InvoiceRow | null }>(GET_INVOICE, {\n id,\n });\n if (!data.getInvoice?.pdfUrl) return errorResult(`Invoice ${id} has no pdfUrl`);\n return jsonResult({ url: data.getInvoice.pdfUrl });\n } catch (error) {\n ctx.logger.error('billing_invoices_get_pdf_url failed', { error: String(error) });\n return errorResult(\n `Failed to fetch invoice URL: ${error instanceof Error ? error.message : String(error)}`,\n );\n }\n },\n );\n\n // ── Payment methods ────────────────────────────────────────────────────\n server.registerTool(\n track(mcpToolName(ctx.productName, 'billing_payment_methods_list')),\n {\n title: 'List Payment Methods',\n description: 'List payment methods on a billing account.',\n inputSchema: {\n account: z.string().optional().describe('Billing account ID (defaults to current)'),\n },\n },\n async ({ account }) => {\n try {\n const billingAccountId = await resolveBillingAccountId(ctx, account);\n const data = await ctx.gql.global.request<{ getPaymentMethods: PaymentMethodRow[] }>(\n GET_PAYMENT_METHODS,\n { billingAccountId },\n );\n return jsonResult(data.getPaymentMethods);\n } catch (error) {\n ctx.logger.error('billing_payment_methods_list failed', { error: String(error) });\n return errorResult(\n `Failed to list payment methods: ${error instanceof Error ? error.message : String(error)}`,\n );\n }\n },\n );\n\n server.registerTool(\n track(mcpToolName(ctx.productName, 'billing_payment_methods_add')),\n {\n title: 'Add Payment Method',\n description:\n 'Add a payment method (card metadata only — provider handles secrets). Use the provider checkout URL elsewhere for full card capture.',\n inputSchema: {\n type: z.enum(['CREDIT_CARD', 'BANK', 'UPI']).describe('Payment method type'),\n last4: z.string().describe('Last 4 digits / identifier'),\n brand: z.string().optional().describe('Brand (Visa, MasterCard, etc.)'),\n expiryMonth: z.number().optional().describe('Expiry month (1-12)'),\n expiryYear: z.number().optional().describe('Expiry year (4 digits)'),\n account: z.string().optional().describe('Billing account ID (defaults to current)'),\n isDefault: z.boolean().optional().describe('Make it the default'),\n },\n },\n async ({ type, last4, brand, expiryMonth, expiryYear, account, isDefault }) => {\n try {\n const billingAccountId = await resolveBillingAccountId(ctx, account);\n const input: Record<string, unknown> = {\n billingAccountId,\n type,\n last4,\n isDefault: isDefault === true,\n };\n if (brand !== undefined) input.brand = brand;\n if (expiryMonth !== undefined) input.expiryMonth = expiryMonth;\n if (expiryYear !== undefined) input.expiryYear = expiryYear;\n\n const data = await ctx.gql.global.request<{ addPaymentMethod: PaymentMethodRow }>(\n ADD_PAYMENT_METHOD,\n { input },\n );\n return jsonResult(data.addPaymentMethod);\n } catch (error) {\n ctx.logger.error('billing_payment_methods_add failed', { error: String(error) });\n return errorResult(\n `Failed to add payment method: ${error instanceof Error ? error.message : String(error)}`,\n );\n }\n },\n );\n\n server.registerTool(\n track(mcpToolName(ctx.productName, 'billing_payment_methods_remove')),\n {\n title: 'Remove Payment Method',\n description: 'Delete a payment method by ID.',\n inputSchema: { id: z.string().describe('Payment method ID') },\n },\n async ({ id }) => {\n try {\n await ctx.gql.global.request<{ deletePaymentMethod: { success: boolean } }>(\n DELETE_PAYMENT_METHOD,\n { id },\n );\n return jsonResult({ status: 'success', message: 'Payment method removed', id });\n } catch (error) {\n ctx.logger.error('billing_payment_methods_remove failed', { error: String(error) });\n return errorResult(\n `Failed to remove payment method: ${error instanceof Error ? error.message : String(error)}`,\n );\n }\n },\n );\n\n // ── Credits ────────────────────────────────────────────────────────────\n server.registerTool(\n track(mcpToolName(ctx.productName, 'billing_credits_balance')),\n {\n title: 'Credit Balance',\n description: 'Show current credit balance on the default billing account.',\n inputSchema: {},\n },\n async () => {\n try {\n const data = await ctx.gql.global.request<{\n getDefaultBillingAccount: BillingAccountRow | null;\n }>(GET_DEFAULT_BILLING_ACCOUNT);\n return jsonResult(data.getDefaultBillingAccount);\n } catch (error) {\n ctx.logger.error('billing_credits_balance failed', { error: String(error) });\n return errorResult(\n `Failed to read balance: ${error instanceof Error ? error.message : String(error)}`,\n );\n }\n },\n );\n\n server.registerTool(\n track(mcpToolName(ctx.productName, 'billing_credits_grant')),\n {\n title: 'Grant Credits',\n description: 'Grant credits to a billing account (admin only).',\n inputSchema: {\n account: z.string().describe('Billing account ID'),\n amount: z.number().describe('Amount to grant'),\n reason: z.string().optional().describe('Reason for grant'),\n },\n },\n async ({ account, amount, reason }) => {\n try {\n const input: Record<string, unknown> = {\n billingAccountId: account,\n amount,\n reason: reason ?? 'mcp-grant',\n };\n await ctx.gql.global.request(GRANT_CREDITS, { input });\n return jsonResult({ status: 'success', message: 'Credits granted', amount, account });\n } catch (error) {\n ctx.logger.error('billing_credits_grant failed', { error: String(error) });\n return errorResult(\n `Failed to grant credits: ${error instanceof Error ? error.message : String(error)}`,\n );\n }\n },\n );\n\n server.registerTool(\n track(mcpToolName(ctx.productName, 'billing_credits_withdraw')),\n {\n title: 'Withdraw Credits',\n description: 'Request a credit withdrawal to a payout account.',\n inputSchema: {\n account: z.string().describe('Billing account ID'),\n amount: z.number().describe('Amount to withdraw'),\n payout: z.string().describe('Payout account ID'),\n },\n },\n async ({ account, amount, payout }) => {\n try {\n const input: Record<string, unknown> = {\n billingAccountId: account,\n creditAmount: amount,\n payoutAccountId: payout,\n };\n await ctx.gql.global.request(REQUEST_CREDIT_WITHDRAWAL, { input });\n return jsonResult({ status: 'success', message: 'Withdrawal requested', amount, account });\n } catch (error) {\n ctx.logger.error('billing_credits_withdraw failed', { error: String(error) });\n return errorResult(\n `Failed to request withdrawal: ${error instanceof Error ? error.message : String(error)}`,\n );\n }\n },\n );\n\n // ── Refunds ────────────────────────────────────────────────────────────\n server.registerTool(\n track(mcpToolName(ctx.productName, 'billing_refunds_list')),\n {\n title: 'List Pending Refunds',\n description: 'List pending refund records (paginated).',\n inputSchema: {\n page: z.number().optional().describe('Page number (default 0)'),\n pageSize: z.number().optional().describe('Page size (default 20)'),\n },\n },\n async ({ page, pageSize }) => {\n try {\n const data = await ctx.gql.global.request<{\n getPendingRefunds: { records: Array<Record<string, unknown>>; totalCount: number };\n }>(GET_PENDING_REFUNDS, { page, pageSize });\n return jsonResult(data.getPendingRefunds);\n } catch (error) {\n ctx.logger.error('billing_refunds_list failed', { error: String(error) });\n return errorResult(\n `Failed to list refunds: ${error instanceof Error ? error.message : String(error)}`,\n );\n }\n },\n );\n\n // ── Quota ──────────────────────────────────────────────────────────────\n server.registerTool(\n track(mcpToolName(ctx.productName, 'billing_quota_list')),\n {\n title: 'List Subscription Quotas',\n description:\n 'Get all quotas for a subscription. Live alpha requires BOTH `billingAccountId` and `subscriptionId`; the missing `billingAccountId` was rejected with \"argument billingAccountId of type ID! is required\". The MCP tool falls back to the caller\\'s default billing account when the caller omits one.',\n inputSchema: {\n subscriptionId: z.string().describe('Subscription ID'),\n billingAccountId: z\n .string()\n .optional()\n .describe(\n \"Billing account ID (defaults to the caller's default billing account when omitted)\",\n ),\n },\n },\n async ({ subscriptionId, billingAccountId }) => {\n try {\n const accountId = await resolveBillingAccountId(ctx, billingAccountId);\n const data = await ctx.gql.global.request<{\n getAllQuotasOfSub: Array<Record<string, unknown>>;\n }>(GET_QUOTAS_OF_SUB, { billingAccountId: accountId, subscriptionId });\n return jsonResult(data.getAllQuotasOfSub);\n } catch (error) {\n ctx.logger.error('billing_quota_list failed', { error: String(error) });\n return errorResult(\n `Failed to list quotas: ${error instanceof Error ? error.message : String(error)}`,\n );\n }\n },\n );\n}\n","/**\n * Billing module — subscriptions, plans, addons, invoices, payment-methods,\n * credits, refunds, quotas. Backend: ~/products/global/billing/global-billing-svc/.\n * Ported from cli-sdk/src/modules/billing/.\n */\n\nimport type { McpServer } from '@modelcontextprotocol/sdk/server/mcp.js';\nimport type { McpContext, McpModule, ModuleRegistration } from '../../core/index.js';\nimport { registerBillingTools } from './tools.js';\n\nconst billingModule: McpModule = {\n id: 'billing',\n version: '0.0.1',\n displayName: 'Billing',\n dependsOn: ['auth'],\n capabilities: { tools: {} },\n\n register(server: McpServer, ctx: McpContext): ModuleRegistration {\n const tools: string[] = [];\n const track = (n: string): string => {\n tools.push(n);\n return n;\n };\n\n registerBillingTools(server, ctx, track);\n\n return { tools, resources: [], prompts: [] };\n },\n};\n\nexport default billingModule;\n"]}
@@ -1,6 +1,6 @@
1
- import { c as McpModule } from '../../module-DFQBZNK6.cjs';
1
+ import { c as McpModule } from '../../module-CfnM2XHg.cjs';
2
2
  import '@modelcontextprotocol/sdk/server/mcp.js';
3
- import '../../context-1jV4NsLv.cjs';
3
+ import '../../context-DGO4h-Pd.cjs';
4
4
  import 'graphql-request';
5
5
 
6
6
  declare const brainyrichModule: McpModule;
@@ -1,6 +1,6 @@
1
- import { c as McpModule } from '../../module-DBcfA-i3.js';
1
+ import { c as McpModule } from '../../module-VpgjAf8m.js';
2
2
  import '@modelcontextprotocol/sdk/server/mcp.js';
3
- import '../../context-1jV4NsLv.js';
3
+ import '../../context-DGO4h-Pd.js';
4
4
  import 'graphql-request';
5
5
 
6
6
  declare const brainyrichModule: McpModule;
@@ -1,4 +1,4 @@
1
- import { mcpToolName, errorResult, jsonResult, mcpResourceUri, mcpPromptName } from '../../chunk-BSNL65PZ.js';
1
+ import { mcpToolName, errorResult, jsonResult, mcpResourceUri, mcpPromptName } from '../../chunk-G76DKEPI.js';
2
2
  import { z } from 'zod';
3
3
 
4
4
  // src/modules/brainyrich/operations.ts
@@ -1,6 +1,6 @@
1
- import { c as McpModule } from '../../module-DFQBZNK6.cjs';
1
+ import { c as McpModule } from '../../module-CfnM2XHg.cjs';
2
2
  import '@modelcontextprotocol/sdk/server/mcp.js';
3
- import '../../context-1jV4NsLv.cjs';
3
+ import '../../context-DGO4h-Pd.cjs';
4
4
  import 'graphql-request';
5
5
 
6
6
  declare const buildmyiqModule: McpModule;
@@ -1,6 +1,6 @@
1
- import { c as McpModule } from '../../module-DBcfA-i3.js';
1
+ import { c as McpModule } from '../../module-VpgjAf8m.js';
2
2
  import '@modelcontextprotocol/sdk/server/mcp.js';
3
- import '../../context-1jV4NsLv.js';
3
+ import '../../context-DGO4h-Pd.js';
4
4
  import 'graphql-request';
5
5
 
6
6
  declare const buildmyiqModule: McpModule;
@@ -1,4 +1,4 @@
1
- import { mcpToolName, errorResult, jsonResult, mcpResourceUri, mcpPromptName } from '../../chunk-BSNL65PZ.js';
1
+ import { mcpToolName, errorResult, jsonResult, mcpResourceUri, mcpPromptName } from '../../chunk-G76DKEPI.js';
2
2
  import { z } from 'zod';
3
3
 
4
4
  // src/modules/buildmyiq/operations.ts
@@ -1,6 +1,6 @@
1
- import { c as McpModule } from '../../module-DFQBZNK6.cjs';
1
+ import { c as McpModule } from '../../module-CfnM2XHg.cjs';
2
2
  import '@modelcontextprotocol/sdk/server/mcp.js';
3
- import '../../context-1jV4NsLv.cjs';
3
+ import '../../context-DGO4h-Pd.cjs';
4
4
  import 'graphql-request';
5
5
 
6
6
  declare const channelsModule: McpModule;
@@ -1,6 +1,6 @@
1
- import { c as McpModule } from '../../module-DBcfA-i3.js';
1
+ import { c as McpModule } from '../../module-VpgjAf8m.js';
2
2
  import '@modelcontextprotocol/sdk/server/mcp.js';
3
- import '../../context-1jV4NsLv.js';
3
+ import '../../context-DGO4h-Pd.js';
4
4
  import 'graphql-request';
5
5
 
6
6
  declare const channelsModule: McpModule;
@@ -1,4 +1,4 @@
1
- import { mcpToolName, jsonResult, errorResult } from '../../chunk-BSNL65PZ.js';
1
+ import { mcpToolName, jsonResult, errorResult } from '../../chunk-G76DKEPI.js';
2
2
  import { z } from 'zod';
3
3
 
4
4
  // src/modules/channels/operations.ts
@@ -1,6 +1,6 @@
1
- import { c as McpModule } from '../../module-DFQBZNK6.cjs';
1
+ import { c as McpModule } from '../../module-CfnM2XHg.cjs';
2
2
  import '@modelcontextprotocol/sdk/server/mcp.js';
3
- import '../../context-1jV4NsLv.cjs';
3
+ import '../../context-DGO4h-Pd.cjs';
4
4
  import 'graphql-request';
5
5
 
6
6
  declare const collabkinModule: McpModule;
@@ -1,6 +1,6 @@
1
- import { c as McpModule } from '../../module-DBcfA-i3.js';
1
+ import { c as McpModule } from '../../module-VpgjAf8m.js';
2
2
  import '@modelcontextprotocol/sdk/server/mcp.js';
3
- import '../../context-1jV4NsLv.js';
3
+ import '../../context-DGO4h-Pd.js';
4
4
  import 'graphql-request';
5
5
 
6
6
  declare const collabkinModule: McpModule;
@@ -1,4 +1,4 @@
1
- import { mcpToolName, jsonResult, errorResult, mcpResourceUri, mcpPromptName } from '../../chunk-BSNL65PZ.js';
1
+ import { mcpToolName, jsonResult, errorResult, mcpResourceUri, mcpPromptName } from '../../chunk-G76DKEPI.js';
2
2
  import { z } from 'zod';
3
3
 
4
4
  // src/modules/collabkin/operations.ts
@@ -1,6 +1,6 @@
1
- import { c as McpModule } from '../../module-DFQBZNK6.cjs';
1
+ import { c as McpModule } from '../../module-CfnM2XHg.cjs';
2
2
  import '@modelcontextprotocol/sdk/server/mcp.js';
3
- import '../../context-1jV4NsLv.cjs';
3
+ import '../../context-DGO4h-Pd.cjs';
4
4
  import 'graphql-request';
5
5
 
6
6
  declare const comradecircleModule: McpModule;
@@ -1,6 +1,6 @@
1
- import { c as McpModule } from '../../module-DBcfA-i3.js';
1
+ import { c as McpModule } from '../../module-VpgjAf8m.js';
2
2
  import '@modelcontextprotocol/sdk/server/mcp.js';
3
- import '../../context-1jV4NsLv.js';
3
+ import '../../context-DGO4h-Pd.js';
4
4
  import 'graphql-request';
5
5
 
6
6
  declare const comradecircleModule: McpModule;
@@ -1,4 +1,4 @@
1
- import { mcpToolName, errorResult, jsonResult, mcpResourceUri, mcpPromptName } from '../../chunk-BSNL65PZ.js';
1
+ import { mcpToolName, errorResult, jsonResult, mcpResourceUri, mcpPromptName } from '../../chunk-G76DKEPI.js';
2
2
  import { z } from 'zod';
3
3
 
4
4
  // src/modules/comradecircle/operations.ts
@@ -1,6 +1,6 @@
1
- import { c as McpModule } from '../../module-DFQBZNK6.cjs';
1
+ import { c as McpModule } from '../../module-CfnM2XHg.cjs';
2
2
  import '@modelcontextprotocol/sdk/server/mcp.js';
3
- import '../../context-1jV4NsLv.cjs';
3
+ import '../../context-DGO4h-Pd.cjs';
4
4
  import 'graphql-request';
5
5
 
6
6
  declare const conversationsModule: McpModule;
@@ -1,6 +1,6 @@
1
- import { c as McpModule } from '../../module-DBcfA-i3.js';
1
+ import { c as McpModule } from '../../module-VpgjAf8m.js';
2
2
  import '@modelcontextprotocol/sdk/server/mcp.js';
3
- import '../../context-1jV4NsLv.js';
3
+ import '../../context-DGO4h-Pd.js';
4
4
  import 'graphql-request';
5
5
 
6
6
  declare const conversationsModule: McpModule;
@@ -1,4 +1,4 @@
1
- import { mcpToolName, jsonResult, errorResult } from '../../chunk-BSNL65PZ.js';
1
+ import { mcpToolName, jsonResult, errorResult } from '../../chunk-G76DKEPI.js';
2
2
  import { z } from 'zod';
3
3
 
4
4
  // src/modules/conversations/operations.ts
@@ -1,6 +1,6 @@
1
- import { c as McpModule } from '../../module-DFQBZNK6.cjs';
1
+ import { c as McpModule } from '../../module-CfnM2XHg.cjs';
2
2
  import '@modelcontextprotocol/sdk/server/mcp.js';
3
- import '../../context-1jV4NsLv.cjs';
3
+ import '../../context-DGO4h-Pd.cjs';
4
4
  import 'graphql-request';
5
5
 
6
6
  declare const coolandlovelyModule: McpModule;
@@ -1,6 +1,6 @@
1
- import { c as McpModule } from '../../module-DBcfA-i3.js';
1
+ import { c as McpModule } from '../../module-VpgjAf8m.js';
2
2
  import '@modelcontextprotocol/sdk/server/mcp.js';
3
- import '../../context-1jV4NsLv.js';
3
+ import '../../context-DGO4h-Pd.js';
4
4
  import 'graphql-request';
5
5
 
6
6
  declare const coolandlovelyModule: McpModule;
@@ -1,4 +1,4 @@
1
- import { mcpToolName, errorResult, jsonResult, mcpResourceUri, mcpPromptName } from '../../chunk-BSNL65PZ.js';
1
+ import { mcpToolName, errorResult, jsonResult, mcpResourceUri, mcpPromptName } from '../../chunk-G76DKEPI.js';
2
2
  import { z } from 'zod';
3
3
 
4
4
  // src/modules/coolandlovely/operations.ts
@@ -1,6 +1,6 @@
1
- import { c as McpModule } from '../../module-DFQBZNK6.cjs';
1
+ import { c as McpModule } from '../../module-CfnM2XHg.cjs';
2
2
  import '@modelcontextprotocol/sdk/server/mcp.js';
3
- import '../../context-1jV4NsLv.cjs';
3
+ import '../../context-DGO4h-Pd.cjs';
4
4
  import 'graphql-request';
5
5
 
6
6
  declare const cosmicintersectionModule: McpModule;
@@ -1,6 +1,6 @@
1
- import { c as McpModule } from '../../module-DBcfA-i3.js';
1
+ import { c as McpModule } from '../../module-VpgjAf8m.js';
2
2
  import '@modelcontextprotocol/sdk/server/mcp.js';
3
- import '../../context-1jV4NsLv.js';
3
+ import '../../context-DGO4h-Pd.js';
4
4
  import 'graphql-request';
5
5
 
6
6
  declare const cosmicintersectionModule: McpModule;
@@ -1,4 +1,4 @@
1
- import { mcpToolName, errorResult, jsonResult, mcpResourceUri, mcpPromptName } from '../../chunk-BSNL65PZ.js';
1
+ import { mcpToolName, errorResult, jsonResult, mcpResourceUri, mcpPromptName } from '../../chunk-G76DKEPI.js';
2
2
  import { z } from 'zod';
3
3
 
4
4
  // src/modules/cosmicintersection/operations.ts
@@ -1,6 +1,6 @@
1
- import { c as McpModule } from '../../module-DFQBZNK6.cjs';
1
+ import { c as McpModule } from '../../module-CfnM2XHg.cjs';
2
2
  import '@modelcontextprotocol/sdk/server/mcp.js';
3
- import '../../context-1jV4NsLv.cjs';
3
+ import '../../context-DGO4h-Pd.cjs';
4
4
  import 'graphql-request';
5
5
 
6
6
  declare const crewfoundryModule: McpModule;
@@ -1,6 +1,6 @@
1
- import { c as McpModule } from '../../module-DBcfA-i3.js';
1
+ import { c as McpModule } from '../../module-VpgjAf8m.js';
2
2
  import '@modelcontextprotocol/sdk/server/mcp.js';
3
- import '../../context-1jV4NsLv.js';
3
+ import '../../context-DGO4h-Pd.js';
4
4
  import 'graphql-request';
5
5
 
6
6
  declare const crewfoundryModule: McpModule;
@@ -1,4 +1,4 @@
1
- import { mcpToolName, jsonResult, errorResult, mcpResourceUri, mcpPromptName } from '../../chunk-BSNL65PZ.js';
1
+ import { mcpToolName, jsonResult, errorResult, mcpResourceUri, mcpPromptName } from '../../chunk-G76DKEPI.js';
2
2
  import { z } from 'zod';
3
3
 
4
4
  // src/modules/crewfoundry/operations.ts
@@ -1,6 +1,6 @@
1
- import { c as McpModule } from '../../module-DFQBZNK6.cjs';
1
+ import { c as McpModule } from '../../module-CfnM2XHg.cjs';
2
2
  import '@modelcontextprotocol/sdk/server/mcp.js';
3
- import '../../context-1jV4NsLv.cjs';
3
+ import '../../context-DGO4h-Pd.cjs';
4
4
  import 'graphql-request';
5
5
 
6
6
  declare const devportalModule: McpModule;
@@ -1,6 +1,6 @@
1
- import { c as McpModule } from '../../module-DBcfA-i3.js';
1
+ import { c as McpModule } from '../../module-VpgjAf8m.js';
2
2
  import '@modelcontextprotocol/sdk/server/mcp.js';
3
- import '../../context-1jV4NsLv.js';
3
+ import '../../context-DGO4h-Pd.js';
4
4
  import 'graphql-request';
5
5
 
6
6
  declare const devportalModule: McpModule;
@@ -1,4 +1,4 @@
1
- import { mcpToolName, jsonResult, errorResult } from '../../chunk-BSNL65PZ.js';
1
+ import { mcpToolName, jsonResult, errorResult } from '../../chunk-G76DKEPI.js';
2
2
  import { z } from 'zod';
3
3
 
4
4
  // src/modules/devportal/operations.ts
@@ -1,6 +1,6 @@
1
- import { c as McpModule } from '../../module-DFQBZNK6.cjs';
1
+ import { c as McpModule } from '../../module-CfnM2XHg.cjs';
2
2
  import '@modelcontextprotocol/sdk/server/mcp.js';
3
- import '../../context-1jV4NsLv.cjs';
3
+ import '../../context-DGO4h-Pd.cjs';
4
4
  import 'graphql-request';
5
5
 
6
6
  declare const ecoimpacthubModule: McpModule;
@@ -1,6 +1,6 @@
1
- import { c as McpModule } from '../../module-DBcfA-i3.js';
1
+ import { c as McpModule } from '../../module-VpgjAf8m.js';
2
2
  import '@modelcontextprotocol/sdk/server/mcp.js';
3
- import '../../context-1jV4NsLv.js';
3
+ import '../../context-DGO4h-Pd.js';
4
4
  import 'graphql-request';
5
5
 
6
6
  declare const ecoimpacthubModule: McpModule;
@@ -1,4 +1,4 @@
1
- import { mcpToolName, errorResult, jsonResult, mcpResourceUri, mcpPromptName } from '../../chunk-BSNL65PZ.js';
1
+ import { mcpToolName, errorResult, jsonResult, mcpResourceUri, mcpPromptName } from '../../chunk-G76DKEPI.js';
2
2
  import { z } from 'zod';
3
3
 
4
4
  // src/modules/ecoimpacthub/operations.ts
@@ -1,6 +1,6 @@
1
- import { c as McpModule } from '../../module-DFQBZNK6.cjs';
1
+ import { c as McpModule } from '../../module-CfnM2XHg.cjs';
2
2
  import '@modelcontextprotocol/sdk/server/mcp.js';
3
- import '../../context-1jV4NsLv.cjs';
3
+ import '../../context-DGO4h-Pd.cjs';
4
4
  import 'graphql-request';
5
5
 
6
6
  declare const eventfullymanagedModule: McpModule;
@@ -1,6 +1,6 @@
1
- import { c as McpModule } from '../../module-DBcfA-i3.js';
1
+ import { c as McpModule } from '../../module-VpgjAf8m.js';
2
2
  import '@modelcontextprotocol/sdk/server/mcp.js';
3
- import '../../context-1jV4NsLv.js';
3
+ import '../../context-DGO4h-Pd.js';
4
4
  import 'graphql-request';
5
5
 
6
6
  declare const eventfullymanagedModule: McpModule;
@@ -1,4 +1,4 @@
1
- import { mcpToolName, jsonResult, errorResult, mcpResourceUri, mcpPromptName } from '../../chunk-BSNL65PZ.js';
1
+ import { mcpToolName, jsonResult, errorResult, mcpResourceUri, mcpPromptName } from '../../chunk-G76DKEPI.js';
2
2
  import { z } from 'zod';
3
3
 
4
4
  // src/modules/eventfullymanaged/operations.ts
@@ -1,6 +1,6 @@
1
- import { c as McpModule } from '../../module-DFQBZNK6.cjs';
1
+ import { c as McpModule } from '../../module-CfnM2XHg.cjs';
2
2
  import '@modelcontextprotocol/sdk/server/mcp.js';
3
- import '../../context-1jV4NsLv.cjs';
3
+ import '../../context-DGO4h-Pd.cjs';
4
4
  import 'graphql-request';
5
5
 
6
6
  declare const exportModule: McpModule;
@@ -1,6 +1,6 @@
1
- import { c as McpModule } from '../../module-DBcfA-i3.js';
1
+ import { c as McpModule } from '../../module-VpgjAf8m.js';
2
2
  import '@modelcontextprotocol/sdk/server/mcp.js';
3
- import '../../context-1jV4NsLv.js';
3
+ import '../../context-DGO4h-Pd.js';
4
4
  import 'graphql-request';
5
5
 
6
6
  declare const exportModule: McpModule;
@@ -1,4 +1,4 @@
1
- import { mcpToolName, errorResult, jsonResult } from '../../chunk-BSNL65PZ.js';
1
+ import { mcpToolName, errorResult, jsonResult } from '../../chunk-G76DKEPI.js';
2
2
  import { writeFile } from 'fs/promises';
3
3
  import { z } from 'zod';
4
4
 
@@ -1,6 +1,6 @@
1
- import { c as McpModule } from '../../module-DFQBZNK6.cjs';
1
+ import { c as McpModule } from '../../module-CfnM2XHg.cjs';
2
2
  import '@modelcontextprotocol/sdk/server/mcp.js';
3
- import '../../context-1jV4NsLv.cjs';
3
+ import '../../context-DGO4h-Pd.cjs';
4
4
  import 'graphql-request';
5
5
 
6
6
  declare const filesModule: McpModule;
@@ -1,6 +1,6 @@
1
- import { c as McpModule } from '../../module-DBcfA-i3.js';
1
+ import { c as McpModule } from '../../module-VpgjAf8m.js';
2
2
  import '@modelcontextprotocol/sdk/server/mcp.js';
3
- import '../../context-1jV4NsLv.js';
3
+ import '../../context-DGO4h-Pd.js';
4
4
  import 'graphql-request';
5
5
 
6
6
  declare const filesModule: McpModule;