|
160 | 160 | ], |
161 | 161 | "title": "Provider", |
162 | 162 | "type": "string" |
| 163 | + }, |
| 164 | + "base_url": { |
| 165 | + "anyOf": [ |
| 166 | + { |
| 167 | + "type": "string" |
| 168 | + }, |
| 169 | + { |
| 170 | + "type": "null" |
| 171 | + } |
| 172 | + ], |
| 173 | + "default": null, |
| 174 | + "title": "Base Url" |
163 | 175 | } |
164 | 176 | }, |
165 | 177 | "title": "AnthropicSettings", |
|
741 | 753 | } |
742 | 754 | ], |
743 | 755 | "default": null, |
744 | | - "title": "Allowed Tools", |
745 | | - "description": "Allow list for tools of given server" |
| 756 | + "title": "Allowed Tools" |
746 | 757 | } |
747 | 758 | }, |
748 | 759 | "title": "MCPServerSettings", |
|
763 | 774 | "title": "MCPSettings", |
764 | 775 | "type": "object" |
765 | 776 | }, |
| 777 | + "OTelConsoleExporterSettings": { |
| 778 | + "additionalProperties": true, |
| 779 | + "properties": { |
| 780 | + "type": { |
| 781 | + "const": "console", |
| 782 | + "default": "console", |
| 783 | + "title": "Type", |
| 784 | + "type": "string" |
| 785 | + } |
| 786 | + }, |
| 787 | + "title": "OTelConsoleExporterSettings", |
| 788 | + "type": "object" |
| 789 | + }, |
| 790 | + "OTelFileExporterSettings": { |
| 791 | + "additionalProperties": true, |
| 792 | + "properties": { |
| 793 | + "type": { |
| 794 | + "const": "file", |
| 795 | + "default": "file", |
| 796 | + "title": "Type", |
| 797 | + "type": "string" |
| 798 | + }, |
| 799 | + "path": { |
| 800 | + "anyOf": [ |
| 801 | + { |
| 802 | + "type": "string" |
| 803 | + }, |
| 804 | + { |
| 805 | + "type": "null" |
| 806 | + } |
| 807 | + ], |
| 808 | + "default": null, |
| 809 | + "title": "Path" |
| 810 | + }, |
| 811 | + "path_settings": { |
| 812 | + "anyOf": [ |
| 813 | + { |
| 814 | + "$ref": "#/$defs/TracePathSettings" |
| 815 | + }, |
| 816 | + { |
| 817 | + "type": "null" |
| 818 | + } |
| 819 | + ], |
| 820 | + "default": null |
| 821 | + } |
| 822 | + }, |
| 823 | + "title": "OTelFileExporterSettings", |
| 824 | + "type": "object" |
| 825 | + }, |
| 826 | + "OTelOTLPExporterSettings": { |
| 827 | + "additionalProperties": true, |
| 828 | + "properties": { |
| 829 | + "type": { |
| 830 | + "const": "otlp", |
| 831 | + "default": "otlp", |
| 832 | + "title": "Type", |
| 833 | + "type": "string" |
| 834 | + }, |
| 835 | + "endpoint": { |
| 836 | + "anyOf": [ |
| 837 | + { |
| 838 | + "type": "string" |
| 839 | + }, |
| 840 | + { |
| 841 | + "type": "null" |
| 842 | + } |
| 843 | + ], |
| 844 | + "default": null, |
| 845 | + "title": "Endpoint" |
| 846 | + }, |
| 847 | + "headers": { |
| 848 | + "anyOf": [ |
| 849 | + { |
| 850 | + "additionalProperties": { |
| 851 | + "type": "string" |
| 852 | + }, |
| 853 | + "type": "object" |
| 854 | + }, |
| 855 | + { |
| 856 | + "type": "null" |
| 857 | + } |
| 858 | + ], |
| 859 | + "default": null, |
| 860 | + "title": "Headers" |
| 861 | + } |
| 862 | + }, |
| 863 | + "title": "OTelOTLPExporterSettings", |
| 864 | + "type": "object" |
| 865 | + }, |
766 | 866 | "OpenAISettings": { |
767 | 867 | "additionalProperties": true, |
768 | 868 | "description": "Settings for using OpenAI models in the MCP Agent application.", |
|
856 | 956 | "exporters": { |
857 | 957 | "default": [], |
858 | 958 | "items": { |
859 | | - "enum": [ |
860 | | - "console", |
861 | | - "file", |
862 | | - "otlp" |
863 | | - ], |
864 | | - "type": "string" |
| 959 | + "discriminator": { |
| 960 | + "mapping": { |
| 961 | + "console": "#/$defs/OTelConsoleExporterSettings", |
| 962 | + "file": "#/$defs/OTelFileExporterSettings", |
| 963 | + "otlp": "#/$defs/OTelOTLPExporterSettings" |
| 964 | + }, |
| 965 | + "propertyName": "type" |
| 966 | + }, |
| 967 | + "oneOf": [ |
| 968 | + { |
| 969 | + "$ref": "#/$defs/OTelConsoleExporterSettings" |
| 970 | + }, |
| 971 | + { |
| 972 | + "$ref": "#/$defs/OTelFileExporterSettings" |
| 973 | + }, |
| 974 | + { |
| 975 | + "$ref": "#/$defs/OTelOTLPExporterSettings" |
| 976 | + } |
| 977 | + ] |
865 | 978 | }, |
866 | 979 | "title": "Exporters", |
867 | | - "type": "array", |
868 | | - "description": "List of exporters to use (can enable multiple simultaneously)" |
| 980 | + "type": "array" |
869 | 981 | }, |
870 | 982 | "service_name": { |
871 | 983 | "default": "mcp-agent", |
|
912 | 1024 | } |
913 | 1025 | ], |
914 | 1026 | "default": null, |
915 | | - "description": "OTLP settings for OpenTelemetry tracing. Required if using otlp exporter." |
| 1027 | + "description": "Deprecated single OTLP settings. Prefer exporters list with type \"otlp\"." |
916 | 1028 | }, |
917 | 1029 | "path": { |
918 | 1030 | "anyOf": [ |
|
1165 | 1277 | "type": "null" |
1166 | 1278 | } |
1167 | 1279 | ], |
1168 | | - "default": { |
1169 | | - "servers": {} |
1170 | | - }, |
1171 | 1280 | "description": "MCP config, such as MCP servers" |
1172 | 1281 | }, |
1173 | 1282 | "execution_engine": { |
|
0 commit comments