other
Prismic MCP Integration for Vercel AI SDK
Connect Prismic to Vercel AI SDK through the local KosmoKrator MCP gateway with scoped tools, credentials, and write policy.
Connect Prismic to Vercel AI SDK
Use KosmoKrator as a local integration gateway for Vercel AI SDK agents and scripts.
Create an MCP client that starts or connects to the KosmoKrator gateway for the selected integration. The gateway is local, scoped to this integration, and starts with
--write=deny so Vercel AI SDK can inspect read-capable tools without receiving write access by default.
Prismic MCP Config for Vercel AI SDK
Prefer CLI JSON calls when a workflow only needs one deterministic integration operation.
{
"mcpServers": {
"kosmokrator-prismic": {
"type": "stdio",
"command": "kosmo",
"args": [
"mcp:serve",
"--integration=prismic",
"--write=deny"
]
}
}
} Run the Gateway Manually
kosmokrator mcp:serve --integration=prismic --write=deny Why Use KosmoKrator Here
Expose only Prismic instead of a broad multi-service tool list.
Reuse credentials already configured for the KosmoKrator CLI and Lua runtime.
Start read-only, then opt into ask or allow for trusted workspaces.
Prismic Tools Visible to Vercel AI SDK
Vercel AI SDK sees stable MCP tool names generated from the Prismic integration catalog.
| MCP tool | Source function | Type | Description |
|---|---|---|---|
integration__prismic__prismic_list_documents | prismic.prismic_list_documents | Read | Search and list documents from the Prismic repository. Supports filtering with Prismic query predicates, pagination, ordering, and language selection. |
integration__prismic__prismic_get_document | prismic.prismic_get_document | Read | Retrieve a single document from the Prismic repository by its unique document ID. |
integration__prismic__prismic_list_types | prismic.prismic_list_types | Read | List all custom types defined in the Prismic repository. Returns type IDs and names that can be used for document queries. |
integration__prismic__prismic_get_tags | prismic.prismic_get_tags | Read | List all tags defined in the Prismic repository. Tags can be used to filter documents in search queries. |
integration__prismic__prismic_list_refs | prismic.prismic_list_refs | Read | List all refs (releases and drafts) for the Prismic repository. The master ref points to the published content; other refs point to drafts or releases in progress. |
integration__prismic__prismic_list_languages | prismic.prismic_list_languages | Read | List all languages configured in the Prismic repository. Returns language codes and names that can be used for querying content in specific locales. |
integration__prismic__prismic_get_current_user | prismic.prismic_get_current_user | Read | Verify the Prismic API connection is working by performing a minimal document search. Returns connection status and repository information. |