@bodhiapp/ts-client 0.1.24 → 0.1.26

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.
@@ -242,7 +242,7 @@ export interface paths {
242
242
  patch?: never;
243
243
  trace?: never;
244
244
  };
245
- "/bodhi/v1/apps/mcps/{id}/tools/refresh": {
245
+ "/bodhi/v1/apps/mcps/{id}/mcp": {
246
246
  parameters: {
247
247
  query?: never;
248
248
  header?: never;
@@ -251,25 +251,11 @@ export interface paths {
251
251
  };
252
252
  get?: never;
253
253
  put?: never;
254
- /** Refresh tools for an MCP instance via external app */
255
- post: operations["appsRefreshMcpTools"];
256
- delete?: never;
257
- options?: never;
258
- head?: never;
259
- patch?: never;
260
- trace?: never;
261
- };
262
- "/bodhi/v1/apps/mcps/{id}/tools/{tool_name}/execute": {
263
- parameters: {
264
- query?: never;
265
- header?: never;
266
- path?: never;
267
- cookie?: never;
268
- };
269
- get?: never;
270
- put?: never;
271
- /** Execute a tool on an MCP server via external app */
272
- post: operations["appsExecuteMcpTool"];
254
+ /**
255
+ * Transparent MCP proxy endpoint
256
+ * @description Forwards MCP Streamable HTTP requests (POST/GET/DELETE) to upstream MCP server with auth injection
257
+ */
258
+ post: operations["mcpProxy"];
273
259
  delete?: never;
274
260
  options?: never;
275
261
  head?: never;
@@ -504,23 +490,6 @@ export interface paths {
504
490
  patch?: never;
505
491
  trace?: never;
506
492
  };
507
- "/bodhi/v1/mcps/fetch-tools": {
508
- parameters: {
509
- query?: never;
510
- header?: never;
511
- path?: never;
512
- cookie?: never;
513
- };
514
- get?: never;
515
- put?: never;
516
- /** Fetch tools from an MCP server without creating an MCP instance */
517
- post: operations["fetchMcpTools"];
518
- delete?: never;
519
- options?: never;
520
- head?: never;
521
- patch?: never;
522
- trace?: never;
523
- };
524
493
  "/bodhi/v1/mcps/oauth-tokens/{token_id}": {
525
494
  parameters: {
526
495
  query?: never;
@@ -645,40 +614,6 @@ export interface paths {
645
614
  patch?: never;
646
615
  trace?: never;
647
616
  };
648
- "/bodhi/v1/mcps/{id}/tools/refresh": {
649
- parameters: {
650
- query?: never;
651
- header?: never;
652
- path?: never;
653
- cookie?: never;
654
- };
655
- get?: never;
656
- put?: never;
657
- /** Refresh tools by connecting to the MCP server */
658
- post: operations["refreshMcpTools"];
659
- delete?: never;
660
- options?: never;
661
- head?: never;
662
- patch?: never;
663
- trace?: never;
664
- };
665
- "/bodhi/v1/mcps/{id}/tools/{tool_name}/execute": {
666
- parameters: {
667
- query?: never;
668
- header?: never;
669
- path?: never;
670
- cookie?: never;
671
- };
672
- get?: never;
673
- put?: never;
674
- /** Execute a tool on an MCP server */
675
- post: operations["executeMcpTool"];
676
- delete?: never;
677
- options?: never;
678
- head?: never;
679
- patch?: never;
680
- trace?: never;
681
- };
682
617
  "/bodhi/v1/models": {
683
618
  parameters: {
684
619
  query?: never;
@@ -1606,7 +1541,8 @@ export interface components {
1606
1541
  * "mcps": [
1607
1542
  * {
1608
1543
  * "instance": {
1609
- * "id": "instance-uuid"
1544
+ * "id": "instance-uuid",
1545
+ * "path": "/bodhi/v1/apps/mcps/instance-uuid/mcp"
1610
1546
  * },
1611
1547
  * "status": "approved",
1612
1548
  * "url": "https://mcp.deepwiki.com/mcp"
@@ -2565,13 +2501,6 @@ export interface components {
2565
2501
  [key: string]: string;
2566
2502
  } | null;
2567
2503
  };
2568
- FetchMcpToolsRequest: {
2569
- mcp_server_id: string;
2570
- auth?: null | components["schemas"]["McpAuth"];
2571
- credentials?: components["schemas"]["McpAuthParamInput"][] | null;
2572
- auth_config_id?: string | null;
2573
- oauth_token_id?: string | null;
2574
- };
2575
2504
  /**
2576
2505
  * @description Request to fetch available models from provider
2577
2506
  * @example {
@@ -2703,7 +2632,7 @@ export interface components {
2703
2632
  };
2704
2633
  metadata?: null | components["schemas"]["ModelMetadata"];
2705
2634
  };
2706
- /** @description User-owned MCP server instance with tool caching and filtering. */
2635
+ /** @description User-owned MCP server instance. */
2707
2636
  Mcp: {
2708
2637
  /** @description Unique instance identifier (UUID) */
2709
2638
  id: string;
@@ -2717,10 +2646,8 @@ export interface components {
2717
2646
  description?: string | null;
2718
2647
  /** @description Whether this instance is enabled */
2719
2648
  enabled: boolean;
2720
- /** @description Cached tool schemas from the MCP server (JSON array) */
2721
- tools_cache?: components["schemas"]["McpTool"][] | null;
2722
- /** @description Whitelisted tool names (empty = block all) */
2723
- tools_filter?: string[] | null;
2649
+ /** @description MCP proxy path for this instance */
2650
+ path: string;
2724
2651
  auth_type: components["schemas"]["McpAuthType"];
2725
2652
  /** @description Reference to the auth config (mcp_auth_configs.id) */
2726
2653
  auth_config_id?: string | null;
@@ -2742,15 +2669,6 @@ export interface components {
2742
2669
  status: components["schemas"]["ApprovalStatus"];
2743
2670
  instance?: null | components["schemas"]["McpInstance"];
2744
2671
  };
2745
- McpAuth: {
2746
- /** @enum {string} */
2747
- type: "public";
2748
- } | {
2749
- header_key: string;
2750
- header_value: string;
2751
- /** @enum {string} */
2752
- type: "header";
2753
- };
2754
2672
  McpAuthConfigParam: {
2755
2673
  id: string;
2756
2674
  param_type: components["schemas"]["McpAuthParamType"];
@@ -2818,15 +2736,10 @@ export interface components {
2818
2736
  McpAuthParamType: "header" | "query";
2819
2737
  /** @enum {string} */
2820
2738
  McpAuthType: "public" | "header" | "oauth";
2821
- McpExecuteRequest: {
2822
- params: unknown;
2823
- };
2824
- McpExecuteResponse: {
2825
- result?: unknown;
2826
- error?: string | null;
2827
- };
2828
2739
  McpInstance: {
2829
2740
  id: string;
2741
+ /** @description MCP proxy path for this instance (e.g. `/bodhi/v1/apps/mcps/{id}/mcp`) */
2742
+ path: string;
2830
2743
  };
2831
2744
  /** @description Input for creating or updating an MCP instance. */
2832
2745
  McpRequest: {
@@ -2840,10 +2753,6 @@ export interface components {
2840
2753
  description?: string | null;
2841
2754
  /** @description Whether this instance is enabled */
2842
2755
  enabled: boolean;
2843
- /** @description Cached tool schemas from the MCP server (JSON array) */
2844
- tools_cache?: components["schemas"]["McpTool"][] | null;
2845
- /** @description Whitelisted tool names */
2846
- tools_filter?: string[] | null;
2847
2756
  /** @description Authentication type */
2848
2757
  auth_type?: components["schemas"]["McpAuthType"];
2849
2758
  /** @description Reference to auth config */
@@ -2916,18 +2825,6 @@ export interface components {
2916
2825
  /** @description User's MCP instances connected to this server URL */
2917
2826
  instances: components["schemas"]["Mcp"][];
2918
2827
  };
2919
- /** @description Tool schema cached from an MCP server's tools/list response. */
2920
- McpTool: {
2921
- /** @description Tool name as declared by the MCP server */
2922
- name: string;
2923
- /** @description Human-readable description of the tool */
2924
- description?: string | null;
2925
- /** @description JSON Schema for tool input parameters */
2926
- input_schema?: unknown;
2927
- };
2928
- McpToolsResponse: {
2929
- tools: components["schemas"]["McpTool"][];
2930
- };
2931
2828
  Message: {
2932
2829
  role: string;
2933
2830
  content: string;
@@ -4779,7 +4676,7 @@ export interface operations {
4779
4676
  };
4780
4677
  };
4781
4678
  };
4782
- appsRefreshMcpTools: {
4679
+ mcpProxy: {
4783
4680
  parameters: {
4784
4681
  query?: never;
4785
4682
  header?: never;
@@ -4791,87 +4688,13 @@ export interface operations {
4791
4688
  };
4792
4689
  requestBody?: never;
4793
4690
  responses: {
4794
- /** @description Refreshed list of tools */
4691
+ /** @description Upstream response forwarded */
4795
4692
  200: {
4796
- headers: {
4797
- [name: string]: unknown;
4798
- };
4799
- content: {
4800
- "application/json": components["schemas"]["McpToolsResponse"];
4801
- };
4802
- };
4803
- /** @description Invalid request parameters */
4804
- 400: {
4805
- headers: {
4806
- [name: string]: unknown;
4807
- };
4808
- content: {
4809
- "application/json": components["schemas"]["OpenAIApiError"];
4810
- };
4811
- };
4812
- /** @description Not authenticated */
4813
- 401: {
4814
- headers: {
4815
- [name: string]: unknown;
4816
- };
4817
- content: {
4818
- "application/json": components["schemas"]["OpenAIApiError"];
4819
- };
4820
- };
4821
- /** @description Insufficient permissions */
4822
- 403: {
4823
- headers: {
4824
- [name: string]: unknown;
4825
- };
4826
- content: {
4827
- "application/json": components["schemas"]["OpenAIApiError"];
4828
- };
4829
- };
4830
- /** @description MCP not found */
4831
- 404: {
4832
4693
  headers: {
4833
4694
  [name: string]: unknown;
4834
4695
  };
4835
4696
  content?: never;
4836
4697
  };
4837
- /** @description Internal server error */
4838
- 500: {
4839
- headers: {
4840
- [name: string]: unknown;
4841
- };
4842
- content: {
4843
- "application/json": components["schemas"]["OpenAIApiError"];
4844
- };
4845
- };
4846
- };
4847
- };
4848
- appsExecuteMcpTool: {
4849
- parameters: {
4850
- query?: never;
4851
- header?: never;
4852
- path: {
4853
- /** @description MCP instance UUID */
4854
- id: string;
4855
- /** @description Tool name to execute */
4856
- tool_name: string;
4857
- };
4858
- cookie?: never;
4859
- };
4860
- requestBody: {
4861
- content: {
4862
- "application/json": components["schemas"]["McpExecuteRequest"];
4863
- };
4864
- };
4865
- responses: {
4866
- /** @description Tool execution result */
4867
- 200: {
4868
- headers: {
4869
- [name: string]: unknown;
4870
- };
4871
- content: {
4872
- "application/json": components["schemas"]["McpExecuteResponse"];
4873
- };
4874
- };
4875
4698
  /** @description Invalid request parameters */
4876
4699
  400: {
4877
4700
  headers: {
@@ -4899,13 +4722,6 @@ export interface operations {
4899
4722
  "application/json": components["schemas"]["OpenAIApiError"];
4900
4723
  };
4901
4724
  };
4902
- /** @description MCP or tool not found */
4903
- 404: {
4904
- headers: {
4905
- [name: string]: unknown;
4906
- };
4907
- content?: never;
4908
- };
4909
4725
  /** @description Internal server error */
4910
4726
  500: {
4911
4727
  headers: {
@@ -5886,73 +5702,6 @@ export interface operations {
5886
5702
  };
5887
5703
  };
5888
5704
  };
5889
- fetchMcpTools: {
5890
- parameters: {
5891
- query?: never;
5892
- header?: never;
5893
- path?: never;
5894
- cookie?: never;
5895
- };
5896
- requestBody: {
5897
- content: {
5898
- "application/json": components["schemas"]["FetchMcpToolsRequest"];
5899
- };
5900
- };
5901
- responses: {
5902
- /** @description List of tools from MCP server */
5903
- 200: {
5904
- headers: {
5905
- [name: string]: unknown;
5906
- };
5907
- content: {
5908
- "application/json": components["schemas"]["McpToolsResponse"];
5909
- };
5910
- };
5911
- /** @description Invalid request parameters */
5912
- 400: {
5913
- headers: {
5914
- [name: string]: unknown;
5915
- };
5916
- content: {
5917
- "application/json": components["schemas"]["OpenAIApiError"];
5918
- };
5919
- };
5920
- /** @description Not authenticated */
5921
- 401: {
5922
- headers: {
5923
- [name: string]: unknown;
5924
- };
5925
- content: {
5926
- "application/json": components["schemas"]["OpenAIApiError"];
5927
- };
5928
- };
5929
- /** @description Insufficient permissions */
5930
- 403: {
5931
- headers: {
5932
- [name: string]: unknown;
5933
- };
5934
- content: {
5935
- "application/json": components["schemas"]["OpenAIApiError"];
5936
- };
5937
- };
5938
- /** @description MCP server not found */
5939
- 404: {
5940
- headers: {
5941
- [name: string]: unknown;
5942
- };
5943
- content?: never;
5944
- };
5945
- /** @description Internal server error */
5946
- 500: {
5947
- headers: {
5948
- [name: string]: unknown;
5949
- };
5950
- content: {
5951
- "application/json": components["schemas"]["OpenAIApiError"];
5952
- };
5953
- };
5954
- };
5955
- };
5956
5705
  getMcpOAuthToken: {
5957
5706
  parameters: {
5958
5707
  query?: never;
@@ -6732,144 +6481,6 @@ export interface operations {
6732
6481
  };
6733
6482
  };
6734
6483
  };
6735
- refreshMcpTools: {
6736
- parameters: {
6737
- query?: never;
6738
- header?: never;
6739
- path: {
6740
- /** @description MCP instance UUID */
6741
- id: string;
6742
- };
6743
- cookie?: never;
6744
- };
6745
- requestBody?: never;
6746
- responses: {
6747
- /** @description Refreshed list of tools */
6748
- 200: {
6749
- headers: {
6750
- [name: string]: unknown;
6751
- };
6752
- content: {
6753
- "application/json": components["schemas"]["McpToolsResponse"];
6754
- };
6755
- };
6756
- /** @description Invalid request parameters */
6757
- 400: {
6758
- headers: {
6759
- [name: string]: unknown;
6760
- };
6761
- content: {
6762
- "application/json": components["schemas"]["OpenAIApiError"];
6763
- };
6764
- };
6765
- /** @description Not authenticated */
6766
- 401: {
6767
- headers: {
6768
- [name: string]: unknown;
6769
- };
6770
- content: {
6771
- "application/json": components["schemas"]["OpenAIApiError"];
6772
- };
6773
- };
6774
- /** @description Insufficient permissions */
6775
- 403: {
6776
- headers: {
6777
- [name: string]: unknown;
6778
- };
6779
- content: {
6780
- "application/json": components["schemas"]["OpenAIApiError"];
6781
- };
6782
- };
6783
- /** @description MCP not found */
6784
- 404: {
6785
- headers: {
6786
- [name: string]: unknown;
6787
- };
6788
- content?: never;
6789
- };
6790
- /** @description Internal server error */
6791
- 500: {
6792
- headers: {
6793
- [name: string]: unknown;
6794
- };
6795
- content: {
6796
- "application/json": components["schemas"]["OpenAIApiError"];
6797
- };
6798
- };
6799
- };
6800
- };
6801
- executeMcpTool: {
6802
- parameters: {
6803
- query?: never;
6804
- header?: never;
6805
- path: {
6806
- /** @description MCP instance UUID */
6807
- id: string;
6808
- /** @description Tool name to execute */
6809
- tool_name: string;
6810
- };
6811
- cookie?: never;
6812
- };
6813
- requestBody: {
6814
- content: {
6815
- "application/json": components["schemas"]["McpExecuteRequest"];
6816
- };
6817
- };
6818
- responses: {
6819
- /** @description Tool execution result */
6820
- 200: {
6821
- headers: {
6822
- [name: string]: unknown;
6823
- };
6824
- content: {
6825
- "application/json": components["schemas"]["McpExecuteResponse"];
6826
- };
6827
- };
6828
- /** @description Invalid request parameters */
6829
- 400: {
6830
- headers: {
6831
- [name: string]: unknown;
6832
- };
6833
- content: {
6834
- "application/json": components["schemas"]["OpenAIApiError"];
6835
- };
6836
- };
6837
- /** @description Not authenticated */
6838
- 401: {
6839
- headers: {
6840
- [name: string]: unknown;
6841
- };
6842
- content: {
6843
- "application/json": components["schemas"]["OpenAIApiError"];
6844
- };
6845
- };
6846
- /** @description Insufficient permissions */
6847
- 403: {
6848
- headers: {
6849
- [name: string]: unknown;
6850
- };
6851
- content: {
6852
- "application/json": components["schemas"]["OpenAIApiError"];
6853
- };
6854
- };
6855
- /** @description MCP or tool not found */
6856
- 404: {
6857
- headers: {
6858
- [name: string]: unknown;
6859
- };
6860
- content?: never;
6861
- };
6862
- /** @description Internal server error */
6863
- 500: {
6864
- headers: {
6865
- [name: string]: unknown;
6866
- };
6867
- content: {
6868
- "application/json": components["schemas"]["OpenAIApiError"];
6869
- };
6870
- };
6871
- };
6872
- };
6873
6484
  listAllModels: {
6874
6485
  parameters: {
6875
6486
  query?: {