{
  "$schema": "https://modelcontextprotocol.io/schemas/server-card/v1.json",
  "name": "Agenda Runner MCP Server",
  "version": "1.0.0",
  "description": "Model Context Protocol server for running, trail, and hybrid races in the Spanish Levante (Valencia, Alicante, Murcia, Almería).",
  "homepage": "https://agenda-runner.com",
  "endpoint": "https://agenda-runner.com/api/mcp",
  "capabilities": {
    "tools": {
      "listChanged": false
    },
    "resources": {
      "subscribe": false,
      "listChanged": false
    },
    "prompts": {
      "listChanged": false
    }
  },
  "tools": [
    {
      "name": "get_upcoming_races",
      "description": "Retrieve upcoming running, trail, marathon, and hybrid races in Valencia, Alicante, Murcia, and Almería with official registration URLs.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "province": {
            "type": "string",
            "description": "Filter by province (todas, valencia, alicante, murcia, almeria)",
            "enum": ["todas", "valencia", "alicante", "murcia", "almeria"],
            "default": "todas"
          },
          "limit": {
            "type": "integer",
            "description": "Maximum number of races to return",
            "default": 30
          }
        }
      }
    },
    {
      "name": "search_races",
      "description": "Search races by keyword (e.g. municipality, distance like 10k, trail, or race name).",
      "inputSchema": {
        "type": "object",
        "properties": {
          "query": {
            "type": "string",
            "description": "Search keyword (e.g. 'maratón', 'trail', 'Elche', '10k')"
          }
        },
        "required": ["query"]
      }
    }
  ],
  "resources": [
    {
      "uri": "https://agenda-runner.com/llms.txt",
      "name": "Site Summary for LLMs",
      "mimeType": "text/markdown"
    },
    {
      "uri": "https://agenda-runner.com/index.md",
      "name": "Upcoming Races (Markdown)",
      "mimeType": "text/markdown"
    },
    {
      "uri": "https://agenda-runner.com/calendarios/todas-las-carreras.ics",
      "name": "All Races iCalendar Feed",
      "mimeType": "text/calendar"
    },
    {
      "uri": "https://agenda-runner.com/sitemap.xml",
      "name": "Sitemap XML",
      "mimeType": "application/xml"
    }
  ]
}
