Skip to main content
Glama
mtct

MCP Journaling Server

by mtct

record_interaction

Save user and assistant messages to create continuous journaling sessions for tracking daily activities and conversation history.

Instructions

Record both the user's message and assistant's response.

Args: user_message: The user's message assistant_message: The assistant's response

Returns: str: Confirmation message

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
user_messageYes
assistant_messageYes

Implementation Reference

  • The main handler function for the 'record_interaction' tool, decorated with @mcp.tool() for registration. It appends both user and assistant messages to the global conversation_log with timestamps and returns a confirmation.
    @mcp.tool() async def record_interaction(user_message: str, assistant_message: str) -> str: """ Record both the user's message and assistant's response. Args: user_message: The user's message assistant_message: The assistant's response Returns: str: Confirmation message """ # Add user message first conversation_log.append({ "speaker": "user", "message": user_message, "timestamp": datetime.now().isoformat() }) # Then add assistant message conversation_log.append({ "speaker": "assistant", "message": assistant_message, "timestamp": datetime.now().isoformat() }) return "Conversation updated"

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/mtct/journaling_mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server