We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/ilvolodel/iris-legacy'
If you have feedback or need assistance with the MCP directory API, please join our Discord server
extract_acn_pdf.py•834 B
#!/usr/bin/env python3
"""
Script temporaneo per estrarre il PDF dalla PEC ACN.
Questo script deve essere eseguito sul droplet.
"""
import sys
import os
# Aggiungi il path per importare file_utils
sys.path.insert(0, '/opt/iris/src/mcp_servers/microsoft/operations')
from file_utils import extract_pdf_from_eml
def main():
eml_path = "/app/attachments/20251023_052953_postacert.eml"
if not os.path.exists(eml_path):
print(f"❌ File EML non trovato: {eml_path}")
return 1
print(f"📄 Estrazione PDF da: {eml_path}")
pdf_path = extract_pdf_from_eml(eml_path)
if pdf_path:
print(f"✅ PDF estratto con successo: {pdf_path}")
return 0
else:
print(f"❌ Nessun PDF trovato nell'EML")
return 1
if __name__ == "__main__":
sys.exit(main())