other
Prismic MCP Integration for LangChain
Connect Prismic to LangChain through the local KosmoKrator MCP gateway with scoped tools, credentials, and write policy.
Connect Prismic to LangChain
Bridge LangChain agents to local KosmoKrator integration tools through MCP or headless CLI calls.
Use the MCP gateway when the agent should discover tools, or wrap kosmo integrations:call for fixed chains. The gateway is local, scoped to this integration, and starts with
--write=deny so LangChain can inspect read-capable tools without receiving write access by default.
Prismic MCP Config for LangChain
Keep the gateway scoped to the integration and operation class needed by the chain.
{
"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 LangChain
LangChain 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. |