{
  "name": "alextech-mcp",
  "version": "1.0.0",
  "description": "Server MCP (Model Context Protocol) per AlexTech. Espone strumenti di ricerca semantica sugli articoli del blog e sulle tech news pubblicate su alextech.ai, con supporto bilingue italiano/inglese.",
  "author": {
    "name": "AlexTech Labs",
    "url": "https://www.alextech.ai"
  },
  "license": "https://www.alextech.ai/license.xml",
  "homepage": "https://www.alextech.ai",
  "documentation": "https://www.alextech.ai/llms.txt",
  "transport": {
    "type": "http",
    "endpoint": "https://www.alextech.ai/mcp",
    "contentType": "application/json"
  },
  "tools": [
    {
      "name": "search_articles",
      "description": "Cerca articoli del blog AlexTech per query fulltext. Restituisce slug, titolo, descrizione, excerpt, URL e lingua.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "query": {
            "type": "string",
            "description": "Testo della ricerca (fulltext MATCH su titolo + descrizione + body + categoria)."
          },
          "lang": {
            "type": "string",
            "enum": ["it", "en"],
            "default": "it",
            "description": "Filtra per lingua."
          },
          "limit": {
            "type": "integer",
            "minimum": 1,
            "maximum": 50,
            "default": 10,
            "description": "Numero massimo di risultati."
          }
        },
        "required": ["query"]
      },
      "endpoint": {
        "method": "GET",
        "url": "https://www.alextech.ai/search.php",
        "queryParams": {
          "q": "{{query}}",
          "lang": "{{lang}}"
        }
      }
    },
    {
      "name": "list_recent_news",
      "description": "Elenca le ultime tech news pubblicate su AlexTech.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "lang": {
            "type": "string",
            "enum": ["it", "en"],
            "default": "it"
          },
          "limit": {
            "type": "integer",
            "minimum": 1,
            "maximum": 50,
            "default": 20
          }
        }
      },
      "endpoint": {
        "method": "GET",
        "url": "https://www.alextech.ai/news/"
      }
    },
    {
      "name": "list_recent_blog_posts",
      "description": "Elenca gli ultimi articoli del blog AlexTech.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "lang": {
            "type": "string",
            "enum": ["it", "en"],
            "default": "it"
          },
          "limit": {
            "type": "integer",
            "minimum": 1,
            "maximum": 50,
            "default": 20
          }
        }
      },
      "endpoint": {
        "method": "GET",
        "url": "https://www.alextech.ai/blog/"
      }
    },
    {
      "name": "fetch_article",
      "description": "Recupera il contenuto completo di un articolo (blog) o di una news specifica per slug.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "type": {
            "type": "string",
            "enum": ["blog", "news"],
            "description": "Tipo di contenuto."
          },
          "slug": {
            "type": "string",
            "description": "Slug URL-safe dell'articolo."
          },
          "lang": {
            "type": "string",
            "enum": ["it", "en"],
            "default": "it"
          }
        },
        "required": ["type", "slug"]
      },
      "endpoint": {
        "method": "GET",
        "url": "https://www.alextech.ai/{{type}}/{{slug}}/"
      }
    },
    {
      "name": "list_trending",
      "description": "Elenca gli articoli trending su AlexTech nelle ultime 24/72 ore.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "window": {
            "type": "string",
            "enum": ["24h", "72h"],
            "default": "72h"
          }
        }
      },
      "endpoint": {
        "method": "GET",
        "url": "https://www.alextech.ai/trending.php"
      }
    }
  ],
  "resources": [
    {
      "uri": "alextech://llms.txt",
      "name": "LLM manifest",
      "mimeType": "text/plain",
      "description": "Manifest leggibile da LLM con descrizione del sito."
    },
    {
      "uri": "alextech://sitemap",
      "name": "Sitemap index",
      "mimeType": "application/xml",
      "description": "Indice sitemap completo del sito."
    }
  ],
  "prompts": [
    {
      "name": "summarize-article",
      "description": "Riassumi un articolo AlexTech per un pubblico tecnico."
    },
    {
      "name": "extract-sources",
      "description": "Estrai e verifica le fonti citate in un articolo."
    }
  ],
  "errors": {
    "RATE_LIMITED": "Troppe richieste. Riprovare dopo 60 secondi.",
    "NOT_FOUND": "Articolo non trovato per slug fornito.",
    "INVALID_LANG": "Lingua non supportata. Usare 'it' o 'en'."
  }
}