Commit d9f28df
authored
Fix: Correct MCPServerConfig import to resolve Docker container crash (#20)
* fix: correct MCPServerConfig import to resolve Docker container crash
Fixes #19
The application was attempting to import MCPServerConfig from src.models,
but it's actually defined in src.mcp_client as a dataclass. Updated the
import statement to import from the correct module.
Changes:
- Remove MCPServerConfig from src.models import
- Add MCPServerConfig to src.mcp_client import
* fix: correct constants import in tool_manager.py
Also fixes import issue that would cause container to crash after the
MCPServerConfig fix. The import was missing the src. prefix.
* fix: correct rate_limit_endpoint decorator usage
Fixes incorrect parameter usage in rate_limit_endpoint decorators.
The decorator expects an endpoint category string (e.g., "general",
"chat") but was being called with numeric limit= parameters.
Changes:
- Replace @rate_limit_endpoint(limit=X) with @rate_limit_endpoint("general")
- Affects 9 endpoints: /v1/tools/* and /v1/mcp/* endpoints
- Also includes the tool_manager.py constants import fix
All import and decorator issues are now resolved. Docker container
starts successfully and all endpoints are properly configured.1 parent df65f01 commit d9f28df
2 files changed
Lines changed: 11 additions & 12 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
32 | 32 | | |
33 | 33 | | |
34 | 34 | | |
35 | | - | |
36 | 35 | | |
37 | 36 | | |
38 | 37 | | |
39 | 38 | | |
40 | 39 | | |
41 | 40 | | |
42 | 41 | | |
43 | | - | |
| 42 | + | |
44 | 43 | | |
45 | 44 | | |
46 | 45 | | |
| |||
897 | 896 | | |
898 | 897 | | |
899 | 898 | | |
900 | | - | |
| 899 | + | |
901 | 900 | | |
902 | 901 | | |
903 | 902 | | |
| |||
922 | 921 | | |
923 | 922 | | |
924 | 923 | | |
925 | | - | |
| 924 | + | |
926 | 925 | | |
927 | 926 | | |
928 | 927 | | |
| |||
944 | 943 | | |
945 | 944 | | |
946 | 945 | | |
947 | | - | |
| 946 | + | |
948 | 947 | | |
949 | 948 | | |
950 | 949 | | |
| |||
991 | 990 | | |
992 | 991 | | |
993 | 992 | | |
994 | | - | |
| 993 | + | |
995 | 994 | | |
996 | 995 | | |
997 | 996 | | |
| |||
1004 | 1003 | | |
1005 | 1004 | | |
1006 | 1005 | | |
1007 | | - | |
| 1006 | + | |
1008 | 1007 | | |
1009 | 1008 | | |
1010 | 1009 | | |
| |||
1040 | 1039 | | |
1041 | 1040 | | |
1042 | 1041 | | |
1043 | | - | |
| 1042 | + | |
1044 | 1043 | | |
1045 | 1044 | | |
1046 | 1045 | | |
| |||
1069 | 1068 | | |
1070 | 1069 | | |
1071 | 1070 | | |
1072 | | - | |
| 1071 | + | |
1073 | 1072 | | |
1074 | 1073 | | |
1075 | 1074 | | |
| |||
1100 | 1099 | | |
1101 | 1100 | | |
1102 | 1101 | | |
1103 | | - | |
| 1102 | + | |
1104 | 1103 | | |
1105 | 1104 | | |
1106 | 1105 | | |
| |||
1125 | 1124 | | |
1126 | 1125 | | |
1127 | 1126 | | |
1128 | | - | |
| 1127 | + | |
1129 | 1128 | | |
1130 | 1129 | | |
1131 | 1130 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
13 | | - | |
| 13 | + | |
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
| |||
0 commit comments