prismic_get_repository_context
Retrieve repository and API metadata to identify the active Prismic repository and confirm authentication before executing content workflows.
Instructions
Get active repository context for this MCP server.
Returns repository and API base URL metadata (no secrets) so agents can identify which Prismic repository they are operating on. Recommended first call in a session to confirm repository and auth posture before running read/write workflows.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- prismic_content_mcp/server.py:162-171 (handler)The core logic function 'handle_prismic_get_repository_context' which executes the service logic.
async def handle_prismic_get_repository_context( *, service_factory: ServiceFactory = _build_service, ) -> dict[str, Any]: """Return active Prismic repository/context metadata for this MCP runtime.""" async with service_factory() as service: context = service.get_repository_context() return {"context": context} - prismic_content_mcp/server.py:536-546 (registration)Tool registration for 'prismic_get_repository_context' using @server.tool decorator.
@server.tool(name="prismic_get_repository_context") async def prismic_get_repository_context() -> dict[str, Any]: """Get active repository context for this MCP server. Returns repository and API base URL metadata (no secrets) so agents can identify which Prismic repository they are operating on. Recommended first call in a session to confirm repository and auth posture before running read/write workflows. """ return await handle_prismic_get_repository_context()