File size: 559 Bytes
9ce984a
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
from __future__ import annotations

from typing import List, Dict

from mcp_server.loader import list_items_dict


__all__ = ["list_items"]


def list_items() -> List[Dict]:
    """
    Return all KB items with minimal metadata:
    [
      {
        "id": "nlp/text_classification_with_transformer.py",
        "category": "nlp",
        "filename": "text_classification_with_transformer.py",
        "path": "knowledge_base/nlp/text_classification_with_transformer.py",
        "summary": "...",
      },
      ...
    ]
    """
    return list_items_dict()