---
title: "MCP authenticated test"
url: https://mdfy.app/GAaYIkii
updated: 2026-05-15T18:42:04.256Z
source: "mcp"
---
# MCP authenticated test

Created via `mcp__mdfy__mdfy_create` after `mdfy login`. The MCP server should now forward `hi@raymind.ai` as the owner via the `Authorization: Bearer` header read from `~/.mdfy/config.json`.

End-to-end expectation:
1. MCP → `POST mdfy.app/api/docs` with auth header → doc created with `user_id=14b7e152-...`
2. Postgres `documents` INSERT trigger fires
3. pg_net → `POST mdfy.app/api/hooks/doc-created` with webhook secret
4. Handler sees `user_id`, queues `/api/embed/{id}` (not skipped this time)
5. `embedding_updated_at` fills within ~3s

Verifying now.