fix: make JSON schema simpler to work with more MCP clients (#9257)

This commit is contained in:
Rubén De la Torre Vico
2025-11-18 13:35:11 +01:00
committed by GitHub
parent 0ba1226d88
commit ee31e82707
2 changed files with 7 additions and 3 deletions

View File

@@ -2,6 +2,11 @@
All notable changes to the **Prowler MCP Server** are documented in this file.
## [0.1.1] (Prowler UNRELEASED)
### Fixed
- Fix documentation MCP Server to return list of dictionaries [(#9205)](https://github.com/prowler-cloud/prowler/pull/9205)
## [0.1.0] (Prowler 5.13.0)
### Added

View File

@@ -1,9 +1,8 @@
from typing import List
from typing import Any, List
from fastmcp import FastMCP
from prowler_mcp_server.prowler_documentation.search_engine import (
ProwlerDocsSearchEngine,
SearchResult,
)
# Initialize FastMCP server
@@ -15,7 +14,7 @@ prowler_docs_search_engine = ProwlerDocsSearchEngine()
def search(
query: str,
page_size: int = 5,
) -> List[SearchResult]:
) -> List[dict[str, Any]]:
"""
Search in Prowler documentation.