{
  "openapi": "3.0.3",
  "info": {
    "title": "Nate Lubeck MCP API",
    "description": "AI-discoverable professional profile, services, projects, and case studies via MCP-compatible endpoints.",
    "version": "1.0.0"
  },
  "servers": [
    {
      "url": "https://natelubeck.com"
    }
  ],
  "paths": {
    "/api/mcp": {
      "get": {
        "summary": "MCP manifest",
        "description": "Returns the MCP manifest with resource endpoints and metadata.",
        "responses": {
          "200": {
            "description": "MCP manifest response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/McpManifest"
                }
              }
            }
          }
        }
      }
    },
    "/api/mcp/profile": {
      "get": {
        "summary": "Professional profile",
        "description": "Returns professional profile, expertise, and contact information.",
        "responses": {
          "200": {
            "description": "Profile payload",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProfileResponse"
                }
              }
            }
          }
        }
      }
    },
    "/api/mcp/services": {
      "get": {
        "summary": "Services offered",
        "description": "Returns structured service offerings and booking/contact links.",
        "responses": {
          "200": {
            "description": "Services payload",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ServicesResponse"
                }
              }
            }
          }
        }
      }
    },
    "/api/mcp/case-studies": {
      "get": {
        "summary": "Case studies with impact",
        "description": "Returns featured case studies and additional projects with measurable impact.",
        "responses": {
          "200": {
            "description": "Case studies payload",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CaseStudiesResponse"
                }
              }
            }
          }
        }
      }
    },
    "/api/mcp/skills": {
      "get": {
        "summary": "Technical skills",
        "description": "Returns technical competency areas, tools, and capabilities.",
        "responses": {
          "200": {
            "description": "Skills payload",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SkillsResponse"
                }
              }
            }
          }
        }
      }
    },
    "/api/mcp/projects": {
      "get": {
        "summary": "Project portfolio",
        "description": "Returns projects grouped by category and industry with impact notes.",
        "responses": {
          "200": {
            "description": "Projects payload",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProjectsResponse"
                }
              }
            }
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "McpManifest": {
        "type": "object",
        "required": [
          "name",
          "version",
          "description",
          "resources",
          "contact"
        ],
        "properties": {
          "name": {
            "type": "string"
          },
          "version": {
            "type": "string"
          },
          "description": {
            "type": "string"
          },
          "openapi_spec": {
            "type": "string",
            "format": "uri"
          },
          "resources": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/McpResource"
            }
          },
          "contact": {
            "type": "object",
            "additionalProperties": true
          }
        },
        "additionalProperties": true
      },
      "McpResource": {
        "type": "object",
        "required": [
          "uri",
          "name",
          "description",
          "mimeType"
        ],
        "properties": {
          "uri": {
            "type": "string",
            "format": "uri"
          },
          "name": {
            "type": "string"
          },
          "description": {
            "type": "string"
          },
          "mimeType": {
            "type": "string"
          },
          "tags": {
            "type": "array",
            "items": {
              "type": "string"
            }
          }
        },
        "additionalProperties": true
      },
      "ProfileResponse": {
        "type": "object",
        "required": [
          "name",
          "title",
          "summary",
          "contact"
        ],
        "properties": {
          "name": {
            "type": "string"
          },
          "title": {
            "type": "string"
          },
          "summary": {
            "type": "string"
          },
          "expertise": {
            "type": "object",
            "additionalProperties": true
          },
          "services": {
            "type": "array",
            "items": {
              "type": "object",
              "additionalProperties": true
            }
          },
          "contact": {
            "type": "object",
            "additionalProperties": true
          }
        },
        "additionalProperties": true
      },
      "ServicesResponse": {
        "type": "object",
        "required": [
          "provider",
          "services"
        ],
        "properties": {
          "provider": {
            "type": "string"
          },
          "tagline": {
            "type": "string"
          },
          "services": {
            "type": "array",
            "items": {
              "type": "object",
              "required": [
                "id",
                "name",
                "price",
                "description"
              ],
              "properties": {
                "id": {
                  "type": "string"
                },
                "name": {
                  "type": "string"
                },
                "price": {
                  "type": "string"
                },
                "description": {
                  "type": "string"
                }
              },
              "additionalProperties": true
            }
          },
          "contact": {
            "type": "object",
            "additionalProperties": true
          }
        },
        "additionalProperties": true
      },
      "CaseStudiesResponse": {
        "type": "object",
        "required": [
          "provider",
          "featured"
        ],
        "properties": {
          "provider": {
            "type": "string"
          },
          "description": {
            "type": "string"
          },
          "featured": {
            "type": "array",
            "items": {
              "type": "object",
              "required": [
                "id",
                "title",
                "description"
              ],
              "properties": {
                "id": {
                  "type": "string"
                },
                "title": {
                  "type": "string"
                },
                "subtitle": {
                  "type": "string"
                },
                "description": {
                  "type": "string"
                }
              },
              "additionalProperties": true
            }
          },
          "additionalProjects": {
            "type": "array",
            "items": {
              "type": "object",
              "additionalProperties": true
            }
          }
        },
        "additionalProperties": true
      },
      "SkillsResponse": {
        "type": "object",
        "required": [
          "provider",
          "coreCompetencies"
        ],
        "properties": {
          "provider": {
            "type": "string"
          },
          "experienceLevel": {
            "type": "string"
          },
          "coreCompetencies": {
            "type": "array",
            "items": {
              "type": "object",
              "required": [
                "area",
                "proficiency"
              ],
              "properties": {
                "area": {
                  "type": "string"
                },
                "proficiency": {
                  "type": "string"
                }
              },
              "additionalProperties": true
            }
          }
        },
        "additionalProperties": true
      },
      "ProjectsResponse": {
        "type": "object",
        "required": [
          "provider",
          "featured"
        ],
        "properties": {
          "provider": {
            "type": "string"
          },
          "totalProjects": {
            "type": "string"
          },
          "featured": {
            "type": "array",
            "items": {
              "type": "object",
              "required": [
                "id",
                "title",
                "description"
              ],
              "properties": {
                "id": {
                  "type": "string"
                },
                "title": {
                  "type": "string"
                },
                "description": {
                  "type": "string"
                },
                "impact": {
                  "type": "string"
                }
              },
              "additionalProperties": true
            }
          }
        },
        "additionalProperties": true
      }
    }
  }
}
