Spaces:
Running
Running
Create tools/__init__.py
Browse files- tools/__init__.py +67 -0
tools/__init__.py
ADDED
|
@@ -0,0 +1,67 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
"""
|
| 2 |
+
LifeAdmin AI - MCP Tool Servers
|
| 3 |
+
|
| 4 |
+
Available tool servers:
|
| 5 |
+
- ocr_server: Text extraction from images and scanned documents
|
| 6 |
+
- pdf_server: PDF summarization and metadata extraction
|
| 7 |
+
- form_filler_server: Automatic form filling
|
| 8 |
+
- calendar_server: ICS calendar event generation
|
| 9 |
+
- email_server: Context-aware email drafting
|
| 10 |
+
- file_manager_server: File organization and management
|
| 11 |
+
- rag_server: Semantic document search
|
| 12 |
+
"""
|
| 13 |
+
|
| 14 |
+
# Tool imports for local execution
|
| 15 |
+
from .ocr_server import extract_text_ocr, extract_text_from_pdf_image
|
| 16 |
+
from .pdf_server import (
|
| 17 |
+
summarize_pdf,
|
| 18 |
+
extract_pdf_metadata,
|
| 19 |
+
extract_text_from_pdf
|
| 20 |
+
)
|
| 21 |
+
from .form_filler_server import fill_form, fill_docx_form, fill_excel_form
|
| 22 |
+
from .calendar_server import create_calendar_event, create_multiple_events
|
| 23 |
+
from .email_server import draft_email, draft_reply_email
|
| 24 |
+
from .file_manager_server import (
|
| 25 |
+
organize_files,
|
| 26 |
+
rename_file,
|
| 27 |
+
organize_by_type,
|
| 28 |
+
organize_by_date,
|
| 29 |
+
organize_by_size
|
| 30 |
+
)
|
| 31 |
+
from .rag_server import search_documents, add_document_to_rag
|
| 32 |
+
|
| 33 |
+
__all__ = [
|
| 34 |
+
# OCR
|
| 35 |
+
'extract_text_ocr',
|
| 36 |
+
'extract_text_from_pdf_image',
|
| 37 |
+
|
| 38 |
+
# PDF
|
| 39 |
+
'summarize_pdf',
|
| 40 |
+
'extract_pdf_metadata',
|
| 41 |
+
'extract_text_from_pdf',
|
| 42 |
+
|
| 43 |
+
# Forms
|
| 44 |
+
'fill_form',
|
| 45 |
+
'fill_docx_form',
|
| 46 |
+
'fill_excel_form',
|
| 47 |
+
|
| 48 |
+
# Calendar
|
| 49 |
+
'create_calendar_event',
|
| 50 |
+
'create_multiple_events',
|
| 51 |
+
|
| 52 |
+
# Email
|
| 53 |
+
'draft_email',
|
| 54 |
+
'draft_reply_email',
|
| 55 |
+
|
| 56 |
+
# File Manager
|
| 57 |
+
'organize_files',
|
| 58 |
+
'rename_file',
|
| 59 |
+
'organize_by_type',
|
| 60 |
+
'organize_by_date',
|
| 61 |
+
'organize_by_size',
|
| 62 |
+
|
| 63 |
+
# RAG
|
| 64 |
+
'search_documents',
|
| 65 |
+
'add_document_to_rag',
|
| 66 |
+
]
|
| 67 |
+
|