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

Function _legacy_tools

codewiki/mcp/server.py:288–346  ·  view source on GitHub ↗

Return the legacy tools that require CodeWiki LLM configuration.

()

Source from the content-addressed store, hash-verified

286 "properties": {
287 "session_id": {
288 "type": "string",
289 "description": "Session ID to close",
290 },
291 },
292 "required": ["session_id"],
293 },
294 ),
295 ]
296
297
298def _legacy_tools() -> list[Tool]:
299 """Return the legacy tools that require CodeWiki LLM configuration."""
300 return [
301 Tool(
302 name="generate_docs",
303 description=(
304 "[LEGACY — requires 'codewiki config set' first] "
305 "Generate full documentation for a repository in one shot. "
306 "For IDE-driven generation, use the fine-grained tools instead."
307 ),
308 inputSchema={
309 "type": "object",
310 "properties": {
311 "repo_path": {
312 "type": "string",
313 "description": "Absolute path to the repository to document",
314 },
315 "output_dir": {
316 "type": "string",
317 "description": "Output directory for generated docs (default: ./docs)",
318 "default": "docs",
319 },
320 "doc_type": {
321 "type": "string",
322 "enum": ["api", "architecture", "user-guide", "developer"],
323 "description": "Type of documentation to generate",
324 },
325 "include_patterns": {
326 "type": "string",
327 "description": "Comma-separated file patterns to include",
328 },
329 "exclude_patterns": {
330 "type": "string",
331 "description": "Comma-separated patterns to exclude",
332 },
333 "use_gitignore": {
334 "type": "boolean",
335 "description": "Apply Git ignore rules before analysis (default: true)",
336 "default": True,
337 },
338 },
339 "required": ["repo_path"],
340 },
341 ),
342 Tool(
343 name="get_module_tree",
344 description="Get the existing module clustering tree for a repository.",
345 inputSchema={

Callers 1

list_toolsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected