@bluehive/sdk-mcp 0.1.0-alpha.2

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 (139) hide show
  1. package/LICENSE +201 -0
  2. package/README.md +188 -0
  3. package/compat.d.mts +56 -0
  4. package/compat.d.mts.map +1 -0
  5. package/compat.d.ts +56 -0
  6. package/compat.d.ts.map +1 -0
  7. package/compat.js +382 -0
  8. package/compat.js.map +1 -0
  9. package/compat.mjs +373 -0
  10. package/compat.mjs.map +1 -0
  11. package/dynamic-tools.d.mts +12 -0
  12. package/dynamic-tools.d.mts.map +1 -0
  13. package/dynamic-tools.d.ts +12 -0
  14. package/dynamic-tools.d.ts.map +1 -0
  15. package/dynamic-tools.js +135 -0
  16. package/dynamic-tools.js.map +1 -0
  17. package/dynamic-tools.mjs +132 -0
  18. package/dynamic-tools.mjs.map +1 -0
  19. package/index.d.mts +3 -0
  20. package/index.d.mts.map +1 -0
  21. package/index.d.ts +3 -0
  22. package/index.d.ts.map +1 -0
  23. package/index.js +86 -0
  24. package/index.js.map +1 -0
  25. package/index.mjs +84 -0
  26. package/index.mjs.map +1 -0
  27. package/options.d.mts +14 -0
  28. package/options.d.mts.map +1 -0
  29. package/options.d.ts +14 -0
  30. package/options.d.ts.map +1 -0
  31. package/options.js +296 -0
  32. package/options.js.map +1 -0
  33. package/options.mjs +290 -0
  34. package/options.mjs.map +1 -0
  35. package/package.json +121 -0
  36. package/server.d.mts +47 -0
  37. package/server.d.mts.map +1 -0
  38. package/server.d.ts +47 -0
  39. package/server.d.ts.map +1 -0
  40. package/server.js +114 -0
  41. package/server.js.map +1 -0
  42. package/server.mjs +101 -0
  43. package/server.mjs.map +1 -0
  44. package/src/compat.ts +478 -0
  45. package/src/dynamic-tools.ts +153 -0
  46. package/src/index.ts +104 -0
  47. package/src/options.ts +319 -0
  48. package/src/server.ts +145 -0
  49. package/src/tools/database/check-health-database.ts +31 -0
  50. package/src/tools/fax/list-providers-fax.ts +31 -0
  51. package/src/tools/fax/retrieve-status-fax.ts +36 -0
  52. package/src/tools/fax/send-fax.ts +76 -0
  53. package/src/tools/health/check-health.ts +31 -0
  54. package/src/tools/index.ts +83 -0
  55. package/src/tools/providers/lookup-providers.ts +49 -0
  56. package/src/tools/types.ts +103 -0
  57. package/src/tools/version/retrieve-version.ts +31 -0
  58. package/src/tools.ts +1 -0
  59. package/src/tsconfig.json +11 -0
  60. package/tools/database/check-health-database.d.mts +45 -0
  61. package/tools/database/check-health-database.d.mts.map +1 -0
  62. package/tools/database/check-health-database.d.ts +45 -0
  63. package/tools/database/check-health-database.d.ts.map +1 -0
  64. package/tools/database/check-health-database.js +27 -0
  65. package/tools/database/check-health-database.js.map +1 -0
  66. package/tools/database/check-health-database.mjs +23 -0
  67. package/tools/database/check-health-database.mjs.map +1 -0
  68. package/tools/fax/list-providers-fax.d.mts +45 -0
  69. package/tools/fax/list-providers-fax.d.mts.map +1 -0
  70. package/tools/fax/list-providers-fax.d.ts +45 -0
  71. package/tools/fax/list-providers-fax.d.ts.map +1 -0
  72. package/tools/fax/list-providers-fax.js +27 -0
  73. package/tools/fax/list-providers-fax.js.map +1 -0
  74. package/tools/fax/list-providers-fax.mjs +23 -0
  75. package/tools/fax/list-providers-fax.mjs.map +1 -0
  76. package/tools/fax/retrieve-status-fax.d.mts +45 -0
  77. package/tools/fax/retrieve-status-fax.d.mts.map +1 -0
  78. package/tools/fax/retrieve-status-fax.d.ts +45 -0
  79. package/tools/fax/retrieve-status-fax.d.ts.map +1 -0
  80. package/tools/fax/retrieve-status-fax.js +32 -0
  81. package/tools/fax/retrieve-status-fax.js.map +1 -0
  82. package/tools/fax/retrieve-status-fax.mjs +28 -0
  83. package/tools/fax/retrieve-status-fax.mjs.map +1 -0
  84. package/tools/fax/send-fax.d.mts +45 -0
  85. package/tools/fax/send-fax.d.mts.map +1 -0
  86. package/tools/fax/send-fax.d.ts +45 -0
  87. package/tools/fax/send-fax.d.ts.map +1 -0
  88. package/tools/fax/send-fax.js +72 -0
  89. package/tools/fax/send-fax.js.map +1 -0
  90. package/tools/fax/send-fax.mjs +68 -0
  91. package/tools/fax/send-fax.mjs.map +1 -0
  92. package/tools/health/check-health.d.mts +45 -0
  93. package/tools/health/check-health.d.mts.map +1 -0
  94. package/tools/health/check-health.d.ts +45 -0
  95. package/tools/health/check-health.d.ts.map +1 -0
  96. package/tools/health/check-health.js +27 -0
  97. package/tools/health/check-health.js.map +1 -0
  98. package/tools/health/check-health.mjs +23 -0
  99. package/tools/health/check-health.mjs.map +1 -0
  100. package/tools/index.d.mts +10 -0
  101. package/tools/index.d.mts.map +1 -0
  102. package/tools/index.d.ts +10 -0
  103. package/tools/index.d.ts.map +1 -0
  104. package/tools/index.js +67 -0
  105. package/tools/index.js.map +1 -0
  106. package/tools/index.mjs +60 -0
  107. package/tools/index.mjs.map +1 -0
  108. package/tools/providers/lookup-providers.d.mts +45 -0
  109. package/tools/providers/lookup-providers.d.mts.map +1 -0
  110. package/tools/providers/lookup-providers.d.ts +45 -0
  111. package/tools/providers/lookup-providers.d.ts.map +1 -0
  112. package/tools/providers/lookup-providers.js +45 -0
  113. package/tools/providers/lookup-providers.js.map +1 -0
  114. package/tools/providers/lookup-providers.mjs +41 -0
  115. package/tools/providers/lookup-providers.mjs.map +1 -0
  116. package/tools/types.d.mts +51 -0
  117. package/tools/types.d.mts.map +1 -0
  118. package/tools/types.d.ts +51 -0
  119. package/tools/types.d.ts.map +1 -0
  120. package/tools/types.js +46 -0
  121. package/tools/types.js.map +1 -0
  122. package/tools/types.mjs +42 -0
  123. package/tools/types.mjs.map +1 -0
  124. package/tools/version/retrieve-version.d.mts +45 -0
  125. package/tools/version/retrieve-version.d.mts.map +1 -0
  126. package/tools/version/retrieve-version.d.ts +45 -0
  127. package/tools/version/retrieve-version.d.ts.map +1 -0
  128. package/tools/version/retrieve-version.js +27 -0
  129. package/tools/version/retrieve-version.js.map +1 -0
  130. package/tools/version/retrieve-version.mjs +23 -0
  131. package/tools/version/retrieve-version.mjs.map +1 -0
  132. package/tools.d.mts +2 -0
  133. package/tools.d.mts.map +1 -0
  134. package/tools.d.ts +2 -0
  135. package/tools.d.ts.map +1 -0
  136. package/tools.js +18 -0
  137. package/tools.js.map +1 -0
  138. package/tools.mjs +2 -0
  139. package/tools.mjs.map +1 -0
@@ -0,0 +1,76 @@
1
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+
3
+ import { asTextContentResult } from '@bluehive/sdk-mcp/tools/types';
4
+
5
+ import { Tool } from '@modelcontextprotocol/sdk/types.js';
6
+ import type { Metadata } from '../';
7
+ import BlueHive from '@bluehive/sdk';
8
+
9
+ export const metadata: Metadata = {
10
+ resource: 'fax',
11
+ operation: 'write',
12
+ tags: [],
13
+ httpMethod: 'post',
14
+ httpPath: '/v1/fax/send',
15
+ operationId: 'sendFax',
16
+ };
17
+
18
+ export const tool: Tool = {
19
+ name: 'send_fax',
20
+ description: 'Send a fax document to a specified number using the configured fax provider.',
21
+ inputSchema: {
22
+ type: 'object',
23
+ properties: {
24
+ document: {
25
+ type: 'object',
26
+ properties: {
27
+ content: {
28
+ type: 'string',
29
+ description: 'Base64 encoded document content',
30
+ },
31
+ contentType: {
32
+ type: 'string',
33
+ description: 'MIME type of the document',
34
+ enum: [
35
+ 'application/pdf',
36
+ 'image/tiff',
37
+ 'image/tif',
38
+ 'image/jpeg',
39
+ 'image/jpg',
40
+ 'image/png',
41
+ 'text/plain',
42
+ ],
43
+ },
44
+ filename: {
45
+ type: 'string',
46
+ description: 'Optional filename for the document',
47
+ },
48
+ },
49
+ required: ['content', 'contentType'],
50
+ },
51
+ to: {
52
+ type: 'string',
53
+ description: 'Recipient fax number (E.164 format preferred)',
54
+ },
55
+ from: {
56
+ type: 'string',
57
+ description: 'Sender fax number (optional, uses default if not provided)',
58
+ },
59
+ provider: {
60
+ type: 'string',
61
+ description: 'Optional provider override (uses default if not specified)',
62
+ },
63
+ subject: {
64
+ type: 'string',
65
+ description: 'Subject line for the fax',
66
+ },
67
+ },
68
+ },
69
+ };
70
+
71
+ export const handler = async (client: BlueHive, args: Record<string, unknown> | undefined) => {
72
+ const body = args as any;
73
+ return asTextContentResult(await client.fax.send(body));
74
+ };
75
+
76
+ export default { metadata, tool, handler };
@@ -0,0 +1,31 @@
1
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+
3
+ import { asTextContentResult } from '@bluehive/sdk-mcp/tools/types';
4
+
5
+ import { Tool } from '@modelcontextprotocol/sdk/types.js';
6
+ import type { Metadata } from '../';
7
+ import BlueHive from '@bluehive/sdk';
8
+
9
+ export const metadata: Metadata = {
10
+ resource: 'health',
11
+ operation: 'read',
12
+ tags: [],
13
+ httpMethod: 'get',
14
+ httpPath: '/v1/health',
15
+ operationId: 'healthCheck',
16
+ };
17
+
18
+ export const tool: Tool = {
19
+ name: 'check_health',
20
+ description: 'Check the service health and ensure the API is running properly.',
21
+ inputSchema: {
22
+ type: 'object',
23
+ properties: {},
24
+ },
25
+ };
26
+
27
+ export const handler = async (client: BlueHive, args: Record<string, unknown> | undefined) => {
28
+ return asTextContentResult(await client.health.check());
29
+ };
30
+
31
+ export default { metadata, tool, handler };
@@ -0,0 +1,83 @@
1
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+
3
+ import { Metadata, Endpoint, HandlerFunction } from './types';
4
+
5
+ export { Metadata, Endpoint, HandlerFunction };
6
+
7
+ import check_health from './health/check-health';
8
+ import retrieve_version from './version/retrieve-version';
9
+ import lookup_providers from './providers/lookup-providers';
10
+ import check_health_database from './database/check-health-database';
11
+ import list_providers_fax from './fax/list-providers-fax';
12
+ import retrieve_status_fax from './fax/retrieve-status-fax';
13
+ import send_fax from './fax/send-fax';
14
+
15
+ export const endpoints: Endpoint[] = [];
16
+
17
+ function addEndpoint(endpoint: Endpoint) {
18
+ endpoints.push(endpoint);
19
+ }
20
+
21
+ addEndpoint(check_health);
22
+ addEndpoint(retrieve_version);
23
+ addEndpoint(lookup_providers);
24
+ addEndpoint(check_health_database);
25
+ addEndpoint(list_providers_fax);
26
+ addEndpoint(retrieve_status_fax);
27
+ addEndpoint(send_fax);
28
+
29
+ export type Filter = {
30
+ type: 'resource' | 'operation' | 'tag' | 'tool';
31
+ op: 'include' | 'exclude';
32
+ value: string;
33
+ };
34
+
35
+ export function query(filters: Filter[], endpoints: Endpoint[]): Endpoint[] {
36
+ const allExcludes = filters.length > 0 && filters.every((filter) => filter.op === 'exclude');
37
+ const unmatchedFilters = new Set(filters);
38
+
39
+ const filtered = endpoints.filter((endpoint: Endpoint) => {
40
+ let included = false || allExcludes;
41
+
42
+ for (const filter of filters) {
43
+ if (match(filter, endpoint)) {
44
+ unmatchedFilters.delete(filter);
45
+ included = filter.op === 'include';
46
+ }
47
+ }
48
+
49
+ return included;
50
+ });
51
+
52
+ // Check if any filters didn't match
53
+ const unmatched = Array.from(unmatchedFilters).filter((f) => f.type === 'tool' || f.type === 'resource');
54
+ if (unmatched.length > 0) {
55
+ throw new Error(
56
+ `The following filters did not match any endpoints: ${unmatched
57
+ .map((f) => `${f.type}=${f.value}`)
58
+ .join(', ')}`,
59
+ );
60
+ }
61
+
62
+ return filtered;
63
+ }
64
+
65
+ function match({ type, value }: Filter, endpoint: Endpoint): boolean {
66
+ switch (type) {
67
+ case 'resource': {
68
+ const regexStr = '^' + normalizeResource(value).replace(/\*/g, '.*') + '$';
69
+ const regex = new RegExp(regexStr);
70
+ return regex.test(normalizeResource(endpoint.metadata.resource));
71
+ }
72
+ case 'operation':
73
+ return endpoint.metadata.operation === value;
74
+ case 'tag':
75
+ return endpoint.metadata.tags.includes(value);
76
+ case 'tool':
77
+ return endpoint.tool.name === value;
78
+ }
79
+ }
80
+
81
+ function normalizeResource(resource: string): string {
82
+ return resource.toLowerCase().replace(/[^a-z.*\-_]*/g, '');
83
+ }
@@ -0,0 +1,49 @@
1
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+
3
+ import { asTextContentResult } from '@bluehive/sdk-mcp/tools/types';
4
+
5
+ import { Tool } from '@modelcontextprotocol/sdk/types.js';
6
+ import type { Metadata } from '../';
7
+ import BlueHive from '@bluehive/sdk';
8
+
9
+ export const metadata: Metadata = {
10
+ resource: 'providers',
11
+ operation: 'read',
12
+ tags: [],
13
+ httpMethod: 'get',
14
+ httpPath: '/v1/providers/lookup',
15
+ operationId: 'searchProviders',
16
+ };
17
+
18
+ export const tool: Tool = {
19
+ name: 'lookup_providers',
20
+ description: 'Search for healthcare providers by NPI number, name, or location proximity.',
21
+ inputSchema: {
22
+ type: 'object',
23
+ properties: {
24
+ firstname: {
25
+ type: 'string',
26
+ description: 'Provider first name',
27
+ },
28
+ lastname: {
29
+ type: 'string',
30
+ description: 'Provider last name',
31
+ },
32
+ npi: {
33
+ type: 'string',
34
+ description: 'Provider NPI number',
35
+ },
36
+ zipcode: {
37
+ type: 'string',
38
+ description: 'ZIP code to filter results by proximity',
39
+ },
40
+ },
41
+ },
42
+ };
43
+
44
+ export const handler = async (client: BlueHive, args: Record<string, unknown> | undefined) => {
45
+ const body = args as any;
46
+ return asTextContentResult(await client.providers.lookup(body));
47
+ };
48
+
49
+ export default { metadata, tool, handler };
@@ -0,0 +1,103 @@
1
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+
3
+ import BlueHive from '@bluehive/sdk';
4
+ import { Tool } from '@modelcontextprotocol/sdk/types.js';
5
+
6
+ type TextContentBlock = {
7
+ type: 'text';
8
+ text: string;
9
+ };
10
+
11
+ type ImageContentBlock = {
12
+ type: 'image';
13
+ data: string;
14
+ mimeType: string;
15
+ };
16
+
17
+ type AudioContentBlock = {
18
+ type: 'audio';
19
+ data: string;
20
+ mimeType: string;
21
+ };
22
+
23
+ type ResourceContentBlock = {
24
+ type: 'resource';
25
+ resource:
26
+ | {
27
+ uri: string;
28
+ mimeType: string;
29
+ text: string;
30
+ }
31
+ | {
32
+ uri: string;
33
+ mimeType: string;
34
+ blob: string;
35
+ };
36
+ };
37
+
38
+ export type ContentBlock = TextContentBlock | ImageContentBlock | AudioContentBlock | ResourceContentBlock;
39
+
40
+ export type ToolCallResult = {
41
+ content: ContentBlock[];
42
+ isError?: boolean;
43
+ };
44
+
45
+ export type HandlerFunction = (
46
+ client: BlueHive,
47
+ args: Record<string, unknown> | undefined,
48
+ ) => Promise<ToolCallResult>;
49
+
50
+ export function asTextContentResult(result: Object): ToolCallResult {
51
+ return {
52
+ content: [
53
+ {
54
+ type: 'text',
55
+ text: JSON.stringify(result, null, 2),
56
+ },
57
+ ],
58
+ };
59
+ }
60
+
61
+ export async function asBinaryContentResult(response: Response): Promise<ToolCallResult> {
62
+ const blob = await response.blob();
63
+ const mimeType = blob.type;
64
+ const data = Buffer.from(await blob.arrayBuffer()).toString('base64');
65
+ if (mimeType.startsWith('image/')) {
66
+ return {
67
+ content: [{ type: 'image', mimeType, data }],
68
+ };
69
+ } else if (mimeType.startsWith('audio/')) {
70
+ return {
71
+ content: [{ type: 'audio', mimeType, data }],
72
+ };
73
+ } else {
74
+ return {
75
+ content: [
76
+ {
77
+ type: 'resource',
78
+ resource: {
79
+ // We must give a URI, even though this isn't actually an MCP resource.
80
+ uri: 'resource://tool-response',
81
+ mimeType,
82
+ blob: data,
83
+ },
84
+ },
85
+ ],
86
+ };
87
+ }
88
+ }
89
+
90
+ export type Metadata = {
91
+ resource: string;
92
+ operation: 'read' | 'write';
93
+ tags: string[];
94
+ httpMethod?: string;
95
+ httpPath?: string;
96
+ operationId?: string;
97
+ };
98
+
99
+ export type Endpoint = {
100
+ metadata: Metadata;
101
+ tool: Tool;
102
+ handler: HandlerFunction;
103
+ };
@@ -0,0 +1,31 @@
1
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+
3
+ import { asTextContentResult } from '@bluehive/sdk-mcp/tools/types';
4
+
5
+ import { Tool } from '@modelcontextprotocol/sdk/types.js';
6
+ import type { Metadata } from '../';
7
+ import BlueHive from '@bluehive/sdk';
8
+
9
+ export const metadata: Metadata = {
10
+ resource: 'version',
11
+ operation: 'read',
12
+ tags: [],
13
+ httpMethod: 'get',
14
+ httpPath: '/v1/version',
15
+ operationId: 'getApiVersion',
16
+ };
17
+
18
+ export const tool: Tool = {
19
+ name: 'retrieve_version',
20
+ description: 'Retrieve the current version of the BlueHive API.',
21
+ inputSchema: {
22
+ type: 'object',
23
+ properties: {},
24
+ },
25
+ };
26
+
27
+ export const handler = async (client: BlueHive, args: Record<string, unknown> | undefined) => {
28
+ return asTextContentResult(await client.version.retrieve());
29
+ };
30
+
31
+ export default { metadata, tool, handler };
package/src/tools.ts ADDED
@@ -0,0 +1 @@
1
+ export * from './tools/index';
@@ -0,0 +1,11 @@
1
+ {
2
+ // this config is included in the published src directory to prevent TS errors
3
+ // from appearing when users go to source, and VSCode opens the source .ts file
4
+ // via declaration maps
5
+ "include": ["index.ts"],
6
+ "compilerOptions": {
7
+ "target": "es2015",
8
+ "lib": ["DOM"],
9
+ "moduleResolution": "node"
10
+ }
11
+ }
@@ -0,0 +1,45 @@
1
+ import { Tool } from '@modelcontextprotocol/sdk/types.js';
2
+ import type { Metadata } from "..//index.mjs";
3
+ import BlueHive from '@bluehive/sdk';
4
+ export declare const metadata: Metadata;
5
+ export declare const tool: Tool;
6
+ export declare const handler: (client: BlueHive, args: Record<string, unknown> | undefined) => Promise<import("@bluehive/sdk-mcp/tools/types").ToolCallResult>;
7
+ declare const _default: {
8
+ metadata: Metadata;
9
+ tool: {
10
+ [x: string]: unknown;
11
+ name: string;
12
+ inputSchema: {
13
+ [x: string]: unknown;
14
+ type: "object";
15
+ properties?: {
16
+ [x: string]: unknown;
17
+ } | undefined;
18
+ required?: string[] | undefined;
19
+ };
20
+ title?: string | undefined;
21
+ description?: string | undefined;
22
+ outputSchema?: {
23
+ [x: string]: unknown;
24
+ type: "object";
25
+ properties?: {
26
+ [x: string]: unknown;
27
+ } | undefined;
28
+ required?: string[] | undefined;
29
+ } | undefined;
30
+ annotations?: {
31
+ [x: string]: unknown;
32
+ title?: string | undefined;
33
+ readOnlyHint?: boolean | undefined;
34
+ destructiveHint?: boolean | undefined;
35
+ idempotentHint?: boolean | undefined;
36
+ openWorldHint?: boolean | undefined;
37
+ } | undefined;
38
+ _meta?: {
39
+ [x: string]: unknown;
40
+ } | undefined;
41
+ };
42
+ handler: (client: BlueHive, args: Record<string, unknown> | undefined) => Promise<import("@bluehive/sdk-mcp/tools/types").ToolCallResult>;
43
+ };
44
+ export default _default;
45
+ //# sourceMappingURL=check-health-database.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"check-health-database.d.mts","sourceRoot":"","sources":["../../src/tools/database/check-health-database.ts"],"names":[],"mappings":"OAIO,EAAE,IAAI,EAAE,MAAM,oCAAoC;OAClD,KAAK,EAAE,QAAQ,EAAE;OACjB,QAAQ,MAAM,eAAe;AAEpC,eAAO,MAAM,QAAQ,EAAE,QAOtB,CAAC;AAEF,eAAO,MAAM,IAAI,EAAE,IAOlB,CAAC;AAEF,eAAO,MAAM,OAAO,GAAU,QAAQ,QAAQ,EAAE,MAAM,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,SAAS,oEAExF,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;sBAFoC,QAAQ,QAAQ,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,SAAS;;AAIzF,wBAA2C"}
@@ -0,0 +1,45 @@
1
+ import { Tool } from '@modelcontextprotocol/sdk/types.js';
2
+ import type { Metadata } from "..//index.js";
3
+ import BlueHive from '@bluehive/sdk';
4
+ export declare const metadata: Metadata;
5
+ export declare const tool: Tool;
6
+ export declare const handler: (client: BlueHive, args: Record<string, unknown> | undefined) => Promise<import("@bluehive/sdk-mcp/tools/types").ToolCallResult>;
7
+ declare const _default: {
8
+ metadata: Metadata;
9
+ tool: {
10
+ [x: string]: unknown;
11
+ name: string;
12
+ inputSchema: {
13
+ [x: string]: unknown;
14
+ type: "object";
15
+ properties?: {
16
+ [x: string]: unknown;
17
+ } | undefined;
18
+ required?: string[] | undefined;
19
+ };
20
+ title?: string | undefined;
21
+ description?: string | undefined;
22
+ outputSchema?: {
23
+ [x: string]: unknown;
24
+ type: "object";
25
+ properties?: {
26
+ [x: string]: unknown;
27
+ } | undefined;
28
+ required?: string[] | undefined;
29
+ } | undefined;
30
+ annotations?: {
31
+ [x: string]: unknown;
32
+ title?: string | undefined;
33
+ readOnlyHint?: boolean | undefined;
34
+ destructiveHint?: boolean | undefined;
35
+ idempotentHint?: boolean | undefined;
36
+ openWorldHint?: boolean | undefined;
37
+ } | undefined;
38
+ _meta?: {
39
+ [x: string]: unknown;
40
+ } | undefined;
41
+ };
42
+ handler: (client: BlueHive, args: Record<string, unknown> | undefined) => Promise<import("@bluehive/sdk-mcp/tools/types").ToolCallResult>;
43
+ };
44
+ export default _default;
45
+ //# sourceMappingURL=check-health-database.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"check-health-database.d.ts","sourceRoot":"","sources":["../../src/tools/database/check-health-database.ts"],"names":[],"mappings":"OAIO,EAAE,IAAI,EAAE,MAAM,oCAAoC;OAClD,KAAK,EAAE,QAAQ,EAAE;OACjB,QAAQ,MAAM,eAAe;AAEpC,eAAO,MAAM,QAAQ,EAAE,QAOtB,CAAC;AAEF,eAAO,MAAM,IAAI,EAAE,IAOlB,CAAC;AAEF,eAAO,MAAM,OAAO,GAAU,QAAQ,QAAQ,EAAE,MAAM,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,SAAS,oEAExF,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;sBAFoC,QAAQ,QAAQ,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,SAAS;;AAIzF,wBAA2C"}
@@ -0,0 +1,27 @@
1
+ "use strict";
2
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ exports.handler = exports.tool = exports.metadata = void 0;
5
+ const types_1 = require("@bluehive/sdk-mcp/tools/types");
6
+ exports.metadata = {
7
+ resource: 'database',
8
+ operation: 'read',
9
+ tags: [],
10
+ httpMethod: 'get',
11
+ httpPath: '/v1/database/health',
12
+ operationId: 'checkDatabaseHealth',
13
+ };
14
+ exports.tool = {
15
+ name: 'check_health_database',
16
+ description: 'Check MongoDB database connectivity and retrieve health statistics.',
17
+ inputSchema: {
18
+ type: 'object',
19
+ properties: {},
20
+ },
21
+ };
22
+ const handler = async (client, args) => {
23
+ return (0, types_1.asTextContentResult)(await client.database.checkHealth());
24
+ };
25
+ exports.handler = handler;
26
+ exports.default = { metadata: exports.metadata, tool: exports.tool, handler: exports.handler };
27
+ //# sourceMappingURL=check-health-database.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"check-health-database.js","sourceRoot":"","sources":["../../src/tools/database/check-health-database.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,yDAAoE;AAMvD,QAAA,QAAQ,GAAa;IAChC,QAAQ,EAAE,UAAU;IACpB,SAAS,EAAE,MAAM;IACjB,IAAI,EAAE,EAAE;IACR,UAAU,EAAE,KAAK;IACjB,QAAQ,EAAE,qBAAqB;IAC/B,WAAW,EAAE,qBAAqB;CACnC,CAAC;AAEW,QAAA,IAAI,GAAS;IACxB,IAAI,EAAE,uBAAuB;IAC7B,WAAW,EAAE,qEAAqE;IAClF,WAAW,EAAE;QACX,IAAI,EAAE,QAAQ;QACd,UAAU,EAAE,EAAE;KACf;CACF,CAAC;AAEK,MAAM,OAAO,GAAG,KAAK,EAAE,MAAgB,EAAE,IAAyC,EAAE,EAAE;IAC3F,OAAO,IAAA,2BAAmB,EAAC,MAAM,MAAM,CAAC,QAAQ,CAAC,WAAW,EAAE,CAAC,CAAC;AAClE,CAAC,CAAC;AAFW,QAAA,OAAO,WAElB;AAEF,kBAAe,EAAE,QAAQ,EAAR,gBAAQ,EAAE,IAAI,EAAJ,YAAI,EAAE,OAAO,EAAP,eAAO,EAAE,CAAC"}
@@ -0,0 +1,23 @@
1
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+ import { asTextContentResult } from '@bluehive/sdk-mcp/tools/types';
3
+ export const metadata = {
4
+ resource: 'database',
5
+ operation: 'read',
6
+ tags: [],
7
+ httpMethod: 'get',
8
+ httpPath: '/v1/database/health',
9
+ operationId: 'checkDatabaseHealth',
10
+ };
11
+ export const tool = {
12
+ name: 'check_health_database',
13
+ description: 'Check MongoDB database connectivity and retrieve health statistics.',
14
+ inputSchema: {
15
+ type: 'object',
16
+ properties: {},
17
+ },
18
+ };
19
+ export const handler = async (client, args) => {
20
+ return asTextContentResult(await client.database.checkHealth());
21
+ };
22
+ export default { metadata, tool, handler };
23
+ //# sourceMappingURL=check-health-database.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"check-health-database.mjs","sourceRoot":"","sources":["../../src/tools/database/check-health-database.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,mBAAmB,EAAE,MAAM,+BAA+B;AAMnE,MAAM,CAAC,MAAM,QAAQ,GAAa;IAChC,QAAQ,EAAE,UAAU;IACpB,SAAS,EAAE,MAAM;IACjB,IAAI,EAAE,EAAE;IACR,UAAU,EAAE,KAAK;IACjB,QAAQ,EAAE,qBAAqB;IAC/B,WAAW,EAAE,qBAAqB;CACnC,CAAC;AAEF,MAAM,CAAC,MAAM,IAAI,GAAS;IACxB,IAAI,EAAE,uBAAuB;IAC7B,WAAW,EAAE,qEAAqE;IAClF,WAAW,EAAE;QACX,IAAI,EAAE,QAAQ;QACd,UAAU,EAAE,EAAE;KACf;CACF,CAAC;AAEF,MAAM,CAAC,MAAM,OAAO,GAAG,KAAK,EAAE,MAAgB,EAAE,IAAyC,EAAE,EAAE;IAC3F,OAAO,mBAAmB,CAAC,MAAM,MAAM,CAAC,QAAQ,CAAC,WAAW,EAAE,CAAC,CAAC;AAClE,CAAC,CAAC;AAEF,eAAe,EAAE,QAAQ,EAAE,IAAI,EAAE,OAAO,EAAE,CAAC"}
@@ -0,0 +1,45 @@
1
+ import { Tool } from '@modelcontextprotocol/sdk/types.js';
2
+ import type { Metadata } from "..//index.mjs";
3
+ import BlueHive from '@bluehive/sdk';
4
+ export declare const metadata: Metadata;
5
+ export declare const tool: Tool;
6
+ export declare const handler: (client: BlueHive, args: Record<string, unknown> | undefined) => Promise<import("@bluehive/sdk-mcp/tools/types").ToolCallResult>;
7
+ declare const _default: {
8
+ metadata: Metadata;
9
+ tool: {
10
+ [x: string]: unknown;
11
+ name: string;
12
+ inputSchema: {
13
+ [x: string]: unknown;
14
+ type: "object";
15
+ properties?: {
16
+ [x: string]: unknown;
17
+ } | undefined;
18
+ required?: string[] | undefined;
19
+ };
20
+ title?: string | undefined;
21
+ description?: string | undefined;
22
+ outputSchema?: {
23
+ [x: string]: unknown;
24
+ type: "object";
25
+ properties?: {
26
+ [x: string]: unknown;
27
+ } | undefined;
28
+ required?: string[] | undefined;
29
+ } | undefined;
30
+ annotations?: {
31
+ [x: string]: unknown;
32
+ title?: string | undefined;
33
+ readOnlyHint?: boolean | undefined;
34
+ destructiveHint?: boolean | undefined;
35
+ idempotentHint?: boolean | undefined;
36
+ openWorldHint?: boolean | undefined;
37
+ } | undefined;
38
+ _meta?: {
39
+ [x: string]: unknown;
40
+ } | undefined;
41
+ };
42
+ handler: (client: BlueHive, args: Record<string, unknown> | undefined) => Promise<import("@bluehive/sdk-mcp/tools/types").ToolCallResult>;
43
+ };
44
+ export default _default;
45
+ //# sourceMappingURL=list-providers-fax.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"list-providers-fax.d.mts","sourceRoot":"","sources":["../../src/tools/fax/list-providers-fax.ts"],"names":[],"mappings":"OAIO,EAAE,IAAI,EAAE,MAAM,oCAAoC;OAClD,KAAK,EAAE,QAAQ,EAAE;OACjB,QAAQ,MAAM,eAAe;AAEpC,eAAO,MAAM,QAAQ,EAAE,QAOtB,CAAC;AAEF,eAAO,MAAM,IAAI,EAAE,IAOlB,CAAC;AAEF,eAAO,MAAM,OAAO,GAAU,QAAQ,QAAQ,EAAE,MAAM,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,SAAS,oEAExF,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;sBAFoC,QAAQ,QAAQ,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,SAAS;;AAIzF,wBAA2C"}
@@ -0,0 +1,45 @@
1
+ import { Tool } from '@modelcontextprotocol/sdk/types.js';
2
+ import type { Metadata } from "..//index.js";
3
+ import BlueHive from '@bluehive/sdk';
4
+ export declare const metadata: Metadata;
5
+ export declare const tool: Tool;
6
+ export declare const handler: (client: BlueHive, args: Record<string, unknown> | undefined) => Promise<import("@bluehive/sdk-mcp/tools/types").ToolCallResult>;
7
+ declare const _default: {
8
+ metadata: Metadata;
9
+ tool: {
10
+ [x: string]: unknown;
11
+ name: string;
12
+ inputSchema: {
13
+ [x: string]: unknown;
14
+ type: "object";
15
+ properties?: {
16
+ [x: string]: unknown;
17
+ } | undefined;
18
+ required?: string[] | undefined;
19
+ };
20
+ title?: string | undefined;
21
+ description?: string | undefined;
22
+ outputSchema?: {
23
+ [x: string]: unknown;
24
+ type: "object";
25
+ properties?: {
26
+ [x: string]: unknown;
27
+ } | undefined;
28
+ required?: string[] | undefined;
29
+ } | undefined;
30
+ annotations?: {
31
+ [x: string]: unknown;
32
+ title?: string | undefined;
33
+ readOnlyHint?: boolean | undefined;
34
+ destructiveHint?: boolean | undefined;
35
+ idempotentHint?: boolean | undefined;
36
+ openWorldHint?: boolean | undefined;
37
+ } | undefined;
38
+ _meta?: {
39
+ [x: string]: unknown;
40
+ } | undefined;
41
+ };
42
+ handler: (client: BlueHive, args: Record<string, unknown> | undefined) => Promise<import("@bluehive/sdk-mcp/tools/types").ToolCallResult>;
43
+ };
44
+ export default _default;
45
+ //# sourceMappingURL=list-providers-fax.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"list-providers-fax.d.ts","sourceRoot":"","sources":["../../src/tools/fax/list-providers-fax.ts"],"names":[],"mappings":"OAIO,EAAE,IAAI,EAAE,MAAM,oCAAoC;OAClD,KAAK,EAAE,QAAQ,EAAE;OACjB,QAAQ,MAAM,eAAe;AAEpC,eAAO,MAAM,QAAQ,EAAE,QAOtB,CAAC;AAEF,eAAO,MAAM,IAAI,EAAE,IAOlB,CAAC;AAEF,eAAO,MAAM,OAAO,GAAU,QAAQ,QAAQ,EAAE,MAAM,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,SAAS,oEAExF,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;sBAFoC,QAAQ,QAAQ,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,SAAS;;AAIzF,wBAA2C"}