115e52dd-042f-444c-9ed4-9bfde9257c45

This commit is contained in:
Z User committed 2026-10-26 23:40:17 +00:00
1 parent 7640b78975
commit 37cb23d245
5 files changed
+388 -1

No files matched your search

+37
View File
@@ -378,6 +378,43 @@ const sig = createHmac('sha256', WEBHOOK_SECRET)
<li>• Alle API-Zugriffe werden im Audit-Log protokolliert</li>
</ul>
</div>
{/* MCP Server */}
<div className="space-y-2 border-t border-border pt-3">
<p className="font-semibold">MCP Server (Model Context Protocol)</p>
<p className="text-[11px] text-muted-foreground">
AOS exposes its data as MCP tools (PRD §8) so external agents (Claude Desktop, ZeroClaw) can read agency data and perform scoped actions.
</p>
<pre className="overflow-x-auto rounded-md border border-border bg-muted/30 p-3 text-[11px] leading-relaxed">{`# MCP endpoint (JSON-RPC 2.0)
POST /api/mcp
Authorization: Bearer aos_<token> # requires mcp:read or mcp:write scope
# Available MCP tools:
search_companies # crm.company:read — search CRM
get_pipeline # crm.deal:read — sales pipeline
get_invoice # finance.invoice:read — invoice by number
list_leads # leads:read — Leads Finder queue
get_dashboard # mcp:read — agency KPIs
list_tickets # support:read — support inbox
approve_lead # leads:write — approve a lead (write)
create_ticket # support:write — create ticket (write)`}</pre>
<pre className="overflow-x-auto rounded-md border border-border bg-muted/30 p-3 text-[11px] leading-relaxed">{`# Example: call search_companies via MCP
curl -X POST https://aos.nordlicht.digital/api/mcp \\
-H "Authorization: Bearer aos_<token>" \\
-H "Content-Type: application/json" \\
-d '{"jsonrpc":"2.0","method":"tools/call","params":{"name":"search_companies","arguments":{"query":"Hamburg"}},"id":1}'`}</pre>
<p className="text-[11px] text-muted-foreground">
Claude Desktop config (<code className="font-mono">claude_desktop_config.json</code>):
</p>
<pre className="overflow-x-auto rounded-md border border-border bg-muted/30 p-3 text-[11px] leading-relaxed">{`{
"mcpServers": {
"aos": {
"url": "https://aos.nordlicht.digital/api/mcp",
"headers": { "Authorization": "Bearer aos_<token>" }
}
}
}`}</pre>
</div>
</CardContent>
</Card>