Upload mcp_server_fastmcp.py
Browse files
EasyReportDataMCP/mcp_server_fastmcp.py
CHANGED
|
@@ -110,6 +110,9 @@ def get_company_filings(cik: str, form_types: list[str] | None = None) -> dict:
|
|
| 110 |
- returned: Number of filings in response (max 20)
|
| 111 |
- filings: List of filing details with dates, form types, and document links
|
| 112 |
"""
|
|
|
|
|
|
|
|
|
|
| 113 |
result = edgar_client.get_company_filings(cik, form_types)
|
| 114 |
if result:
|
| 115 |
limited_result = result[:20]
|
|
|
|
| 110 |
- returned: Number of filings in response (max 20)
|
| 111 |
- filings: List of filing details with dates, form types, and document links
|
| 112 |
"""
|
| 113 |
+
# Convert list to tuple for caching compatibility
|
| 114 |
+
if form_types:
|
| 115 |
+
form_types = tuple(form_types)
|
| 116 |
result = edgar_client.get_company_filings(cik, form_types)
|
| 117 |
if result:
|
| 118 |
limited_result = result[:20]
|