Skip to main content
Glama
EmjayAhn

Pensieve MCP Server

by EmjayAhn

append_to_conversation

Add messages to existing conversations in the Pensieve MCP Server to maintain continuity and build comprehensive dialogue histories across AI platforms.

Instructions

기존 대화에 메시지를 추가합니다

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
conversation_idYes대화 ID
messagesYes추가할 메시지 목록

Implementation Reference

  • The handler logic for 'append_to_conversation', which calls an external API to append messages to a conversation.
    elif name == "append_to_conversation":
        conversation_id = arguments["conversation_id"]
        messages = arguments["messages"]
        
        response = await client.post(
            f"/conversations/{conversation_id}/messages",
            json=messages
        )
        
        if response.status_code == 200:
            return [TextContent(
                type="text",
                text=f"대화에 {len(messages)}개의 메시지가 추가되었습니다."
            )]
        else:
            return [TextContent(
                type="text",
                text=f"메시지 추가 실패: {response.text}"
            )]
  • The MCP tool definition and registration for 'append_to_conversation'.
    Tool(
        name="append_to_conversation",
        description="기존 대화에 메시지를 추가합니다",
        inputSchema={
            "type": "object",
            "properties": {
                "conversation_id": {
                    "type": "string",
                    "description": "대화 ID"
                },
                "messages": {
                    "type": "array",
                    "description": "추가할 메시지 목록",
                    "items": {
                        "type": "object",
                        "properties": {

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/EmjayAhn/pensieve-mcp'

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