{
  "$schema": "https://static.modelcontextprotocol.io/schemas/mcp-server-card/v1.json",
  "version": "1.0",
  "protocolVersion": "2025-06-18",
  "serverInfo": {
    "name": "hugy",
    "title": "Hugy memory",
    "version": "0.1.0"
  },
  "description": "Portable, user-owned memory for AI agents, stored as markdown files the user can see, edit, export or delete. Encrypted in transit and at rest.",
  "websiteUrl": "https://hugy.ai/",
  "documentationUrl": "https://hugy.ai/AGENTS.md",
  "iconUrl": "https://hugy.ai/favicon.svg",
  "transport": {
    "type": "streamable-http",
    "endpoint": "https://hugy.ai/app/mcp"
  },
  "remotes": [
    {
      "type": "streamable-http",
      "url": "https://hugy.ai/app/mcp",
      "headers": [
        {
          "name": "Authorization",
          "value": "Bearer <YOUR_TOKEN>",
          "isRequired": true,
          "isSecret": true,
          "description": "Hugy token created by the user at https://hugy.ai/app/"
        }
      ]
    },
    {
      "type": "streamable-http",
      "url": "https://hugy.ai/app/mcp/<YOUR_TOKEN>",
      "description": "Token-in-URL form for clients without custom headers or OAuth. Keep this URL private."
    }
  ],
  "authentication": {
    "required": true,
    "schemes": [
      "bearer"
    ],
    "oauth": false,
    "tokenUrl": "https://hugy.ai/app/",
    "instructions": "No OAuth. Ask the user to create a named token at https://hugy.ai/app/ and paste it into your connector settings."
  },
  "capabilities": {
    "tools": {
      "listChanged": false
    }
  },
  "instructions": "Read USER.md and MEMORY.md at the start of a task. Save durable facts and preferences with append_memory.",
  "tools": [
    {
      "name": "list_files",
      "description": "List the user's Hugy memory files (markdown) with size and last update.",
      "inputSchema": {
        "type": "object",
        "properties": {},
        "required": []
      },
      "annotations": {
        "readOnlyHint": true
      }
    },
    {
      "name": "read_file",
      "description": "Read one Hugy markdown file, e.g. USER.md or MEMORY.md.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "description": "File name ending in .md"
          }
        },
        "required": [
          "name"
        ]
      },
      "annotations": {
        "readOnlyHint": true
      }
    },
    {
      "name": "write_file",
      "description": "Create or replace a Hugy markdown file with the full new content.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string"
          },
          "content": {
            "type": "string"
          }
        },
        "required": [
          "name",
          "content"
        ]
      },
      "annotations": {
        "destructiveHint": true
      }
    },
    {
      "name": "append_memory",
      "description": "Append one dated fact or preference you learned about the user to MEMORY.md (or another file).",
      "inputSchema": {
        "type": "object",
        "properties": {
          "text": {
            "type": "string"
          },
          "file": {
            "type": "string",
            "description": "Optional, defaults to MEMORY.md"
          }
        },
        "required": [
          "text"
        ]
      }
    },
    {
      "name": "search",
      "description": "Case-insensitive text search across all of the user's Hugy files. Returns matching lines.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "query": {
            "type": "string"
          }
        },
        "required": [
          "query"
        ]
      },
      "annotations": {
        "readOnlyHint": true
      }
    }
  ],
  "coordinationUrl": "https://hugy.ai/agents/coordination.md",
  "agentDocsUrl": "https://hugy.ai/agents/index.md"
}