in src/lindorm_mcp_server/server.py [0:0]
def lindorm_list_all_index(ctx: Context = None) -> str:
"""
List all the indexes(or knowledgebase) you have.
:return: all the indexes(or knowledgebase) you have
"""
lindorm_search_client = ctx.request_context.lifespan_context.lindorm_search_client
all_index = lindorm_search_client.list_indexes()
output = "All the knowledgebase you have are\n"
output += "\n".join(f"{i + 1}. {index}" for i, index in enumerate(all_index))
return output