We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/timowhite88/Farnsworth'
If you have feedback or need assistance with the MCP directory API, please join our Discord server
"""
Farnsworth Auto-Docs
--------------------
"I'm documenting it as fast as I'm inventing it!"
Watches files and generates updated docstrings.
"""
from loguru import logger
import ast
class AutoDocs:
def scan_file(self, file_path: str):
"""Analyzes a python file and suggests docstrings."""
with open(file_path, "r") as f:
tree = ast.parse(f.read())
functions_missing_docs = []
for node in ast.walk(tree):
if isinstance(node, ast.FunctionDef):
if not ast.get_docstring(node):
functions_missing_docs.append(node.name)
if functions_missing_docs:
logger.info(f"📄 AutoDocs: {len(functions_missing_docs)} functions in {file_path} need documentation ({', '.join(functions_missing_docs)})")
# In full version, call LLM generator here
return functions_missing_docs
auto_docs = AutoDocs()