communication
Front MCP Integration for LangChain
Connect Front to LangChain through the local KosmoKrator MCP gateway with scoped tools, credentials, and write policy.
Connect Front 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.
Front MCP Config for LangChain
Keep the gateway scoped to the integration and operation class needed by the chain.
{
"mcpServers": {
"kosmokrator-front": {
"type": "stdio",
"command": "kosmo",
"args": [
"mcp:serve",
"--integration=front",
"--write=deny"
]
}
}
} Run the Gateway Manually
kosmokrator mcp:serve --integration=front --write=deny Why Use KosmoKrator Here
Expose only Front 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.
Front Tools Visible to LangChain
LangChain sees stable MCP tool names generated from the Front integration catalog.
| MCP tool | Source function | Type | Description |
|---|---|---|---|
integration__front__front_get_contact | front.front_get_contact | Read | Get details of a specific Front contact by ID, including name, emails, phone numbers, and custom fields. |
integration__front__front_get_conversation | front.front_get_conversation | Read | Get details of a specific Front conversation by ID, including subject, participants, status, tags, and metadata. |
integration__front__front_get_current_user | front.front_get_current_user | Read | Get the profile of the currently authenticated Front user. Returns name, email, and account details. |
integration__front__front_list_contacts | front.front_list_contacts | Read | List and search contacts in Front. Search by name, email, or other identifiers. Returns paginated contact details. |
integration__front__front_list_conversations | front.front_list_conversations | Read | List and search conversations in Front. Filter by status or search by keyword. Returns paginated results with conversation IDs, subjects, and metadata. |
integration__front__front_list_messages | front.front_list_messages | Read | List all messages in a Front conversation. Returns paginated message details including sender, body, and timestamps. |
integration__front__front_send_message | front.front_send_message | Write | Send a reply message to an existing Front conversation. Supports HTML and plain-text bodies, and explicit TO/CC recipients. |