MCPcopy Create free account
hub / github.com/FSoft-AI4Code/CodeWiki / main

Function main

codewiki/mcp/server.py:603–610  ·  view source on GitHub ↗

Run the MCP server with stdio transport.

()

Source from the content-addressed store, hash-verified

601
602 module_tree = json.loads(module_tree_path.read_text(encoding="utf-8"))
603
604 def _summarize_tree(tree, depth=0):
605 lines = []
606 for name, info in tree.items():
607 indent = " " * depth
608 comp_count = len(info.get("components", []))
609 children = info.get("children", {})
610 child_count = len(children) if isinstance(children, dict) else 0
611 lines.append(f"{indent}- {name} ({comp_count} components, {child_count} children)")
612 if isinstance(children, dict) and children:
613 lines.extend(_summarize_tree(children, depth + 1))

Callers 1

server.pyFile · 0.70

Calls 1

runMethod · 0.80

Tested by

no test coverage detected