diff --git a/mcp/leadtech_bmad_mcp/src/leadtech_bmad_mcp/knowledge.py b/mcp/leadtech_bmad_mcp/src/leadtech_bmad_mcp/knowledge.py index bc89b60..7eabd18 100644 --- a/mcp/leadtech_bmad_mcp/src/leadtech_bmad_mcp/knowledge.py +++ b/mcp/leadtech_bmad_mcp/src/leadtech_bmad_mcp/knowledge.py @@ -306,7 +306,7 @@ def _validate_slug(slug: str) -> str: return slug -def search_knowledge(domain: str, query: str, bucket: str | None = None, max_items: int = 12) -> list[dict[str, str]]: +def search_knowledge(domain: str, query: str, bucket: str | None = None, max_items: int = 6) -> list[dict[str, str]]: paths = get_paths() buckets = [bucket] if bucket else ["patterns", "risques"] tokens = [t.strip().lower() for t in query.split() if t.strip()] diff --git a/mcp/leadtech_bmad_mcp/src/leadtech_bmad_mcp/server.py b/mcp/leadtech_bmad_mcp/src/leadtech_bmad_mcp/server.py index 11bdf7d..34433dc 100644 --- a/mcp/leadtech_bmad_mcp/src/leadtech_bmad_mcp/server.py +++ b/mcp/leadtech_bmad_mcp/src/leadtech_bmad_mcp/server.py @@ -74,7 +74,7 @@ def resource_conventions() -> str: @mcp.tool(description="Retourne patterns + risques utiles pour une story BMAD") -def get_guidance(domain: Domain, task_type: TaskType, story_text: str = "", keywords: list[str] | None = None, max_items: int = 12) -> dict: +def get_guidance(domain: Domain, task_type: TaskType, story_text: str = "", keywords: list[str] | None = None, max_items: int = 6) -> dict: out = _base_output() query = " ".join(keywords or []) or story_text or task_type matches = search_knowledge(domain=domain, query=query, max_items=max_items)