Files
Agent Zero cd465e0564 feat: add MCP server with resources, tools, auth, and Traefik routing
- Add backend/app/mcp_server.py with FastMCP server (hms-cms)
- Resources: design-rules, page-structure, sync-status
- Tools: trigger_sync, get_sync_log, set_rentman_token, read_file,
  write_file, create_page, deploy, git_commit, git_status
- Bearer token auth via MCP_AUTH_TOKEN env var
- Mount MCP at /mcp with streamable HTTP transport
- Integrate session manager in FastAPI lifespan
- Add Traefik labels for external /mcp route on hms.media-on.de
- Add git, docker.io, curl to backend Dockerfile
- Mount repo root + docker socket in backend container
- Add mcp>=1.0.0 to requirements.txt
2026-07-12 15:58:22 +02:00

30 lines
922 B
Vue

<template>
<div class="max-w-3xl mx-auto">
<!-- Loading State -->
<div v-if="loading" class="space-y-4">
<div class="skeleton-shimmer rounded-md" style="height: 32px; width: 60%" />
<div class="skeleton-shimmer rounded-md" style="height: 20px" />
<div class="skeleton-shimmer rounded-md" style="height: 20px; width: 90%" />
<div class="skeleton-shimmer rounded-md" style="height: 20px" />
<div class="skeleton-shimmer rounded-md" style="height: 20px; width: 80%" />
</div>
<!-- Content State -->
<article v-else>
<h1 class="text-3xl font-bold text-text mb-6">{{ title }}</h1>
<div class="prose prose-invert max-w-none text-text-muted" v-html="content" />
</article>
</div>
</template>
<script setup lang="ts">
withDefaults(defineProps<{
title: string;
content?: string;
loading?: boolean;
}>(), {
content: "",
loading: false,
});
</script>