mcp-server-memos: Instructions file for Codex

AGENTS.md

mcp-server-memos AGENTS.md is an instructions file for Codex, OpenCode from flyinglimao/mcp-server-memos. It costs 1,274 tokens per session, scanned B, original, MIT.

Project instructions for an MCP server that lets AI assistants work with Memos, a privacy-focused note-taking application.

In plain words
What is it for?
Use it to manage Memos connections and expose memo, attachment, and shortcut operations at user, administrator, or full-access levels.
Why use it?
They explain the server's structure, connection settings, and tool levels so an agent can work with one or more Memos installations without guessing.

Instructions file for CodexOpenCode

Written for Codex and OpenCode: the file is AGENTS.md.

This is flyinglimao/mcp-server-memos's own configuration. It tells Codex and OpenCode how to work on mcp-server-memos itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything mcp-server-memos configures →

Reuse

Borrowing it

Nothing to install: this file belongs to flyinglimao/mcp-server-memos. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/flyinglimao/mcp-server-memos/main/AGENTS.md
Clone the repo
git clone --depth 1 https://github.com/flyinglimao/mcp-server-memos

Made for: Codex, OpenCode.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for mcp-server-memos AGENTS.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/flyinglimao/mcp-server-memos/agents-md/github.svg)](https://agentmods.dev/instructions/flyinglimao/mcp-server-memos/agents-md)
Your own site
<a href="https://agentmods.dev/instructions/flyinglimao/mcp-server-memos/agents-md"><img src="https://agentmods.dev/badge/instructions/flyinglimao/mcp-server-memos/agents-md/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for mcp-server-memos AGENTS.md

Your own site · 80×15
<a href="https://agentmods.dev/instructions/flyinglimao/mcp-server-memos/agents-md"><img src="https://agentmods.dev/badge/instructions/flyinglimao/mcp-server-memos/agents-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 1,274 This file is loaded in full into every session.
When invoked 1,274 The same file — it is already loaded in full.
Security scan B 1 finding. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.01274 $0.01274
Opus 5.5 $0.00510 $0.00510
Sonnet 5.5 $0.00255 $0.00255
Haiku 4.5 $0.00127 $0.00127

Measured 2mo ago against content hash 4ce573e45f94, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade B, and why

mcp-server-memos AGENTS.md scanned grade B with 1 finding against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Unrestricted tool accessmediumExcessive agency

A wildcard tool grant or "run any command" leaves no least-privilege boundary at all.

| `--full-tools` | Enable all tools (Tier 1 + 2 + 3) |
AGENTS.md · 149 lines

How it starts

The opening of the file, as written. The whole thing — 149 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Agent Instructions for memos-mcp-server

This document provides context and instructions for AI agents working on this project.

Project Overview

This is a Model Context Protocol (MCP) Server for Memos, a privacy-focused note-taking application. The MCP server allows AI assistants to interact with Memos instances programmatically.

Key Features

  1. Multi-Instance Support: Connect to multiple Memos instances simultaneously
  2. Dynamic Instance Selection: Query specific instances or all instances at once
  3. Instance Management: Add, remove, and store connection credentials
  4. Three-Tier Tool Exposure: Control context usage with --user-tools, --admin-tools, or --full-tools

Architecture

src/
├── index.ts              # Entry point with CLI argument parsing
├── server.ts             # MCP server setup and tool registration
├── config/
│   └── store.ts          # Persistent storage for instance connections
├── api/
│   ├── client.ts         # Base API client for Memos
│   └── services/         # Individual API service implementations
│       ├── memo.ts       # Memo CRUD operations
│       ├── attachment.ts # Attachment management
│       ├── shortcut.ts   # Shortcuts (saved filters)
│       ├── pat.ts        # Personal Access Tokens (user-tools)
│       ├── webhook.ts    # Webhooks (user-tools)
│       ├── user.ts       # User management (admin-tools)
│       ├── instance.ts   # Instance info (admin-tools)
│       └── activity.ts   # Activity logs (admin-tools)
└── tools/
    ├── tier1/            # Default tools (notes)
    │   ├── instances.ts  # Instance connection tools
    │   ├── memos.ts      # Memo tools
    │   ├── tags.ts       # Tag tools
    │   ├── shortcuts.ts  # Shortcut tools
    │   └── attachments.ts# Attachment tools
    ├── tier2/            # User advanced tools (--user-tools)
    │   ├── pats.ts       # PAT tools
    │   ├── webhooks.ts   # Webhook tools
    │   ├── settings.ts   # User settings tools
    │   └── notifications.ts # Notification tools
    └── tier3/            # Admin tools (--admin-tools)
        ├── users.ts      # User management tools
        ├── instance.ts   # Instance settings tools
        └── activities.ts # Activity tools

Read the full file on GitHub · 149 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 2mo ago First seen · 149 lines · 1,274 tokens per session scan B 4ce573e45f94

Subscribe to this mod's changes

mcp-server-memos AGENTS.md is an instructions file published in the GitHub repository flyinglimao/mcp-server-memos (2 stars, last pushed 10mo ago), licensed MIT. It adds 1,274 tokens to every session, about $0.0051 per session on Opus 5.5. A static security scan graded it B with 1 finding (unrestricted tool access). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

mcp-server-memos AGENTS.md compared with instructions from other repositories

mcp-server-memos AGENTS.md next to 6 instructions from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
mcp-server-memos AGENTS.mdflyinglimao/mcp-server-memosInstructions file210mo agoMITB1,274Codex, OpenCode
vscode buildNext.instructions.mdmicrosoft/vscodeInstructions file195ktodayMITA9,719GitHub Copilot
next.js AGENTS.mdvercel/next.jsInstructions file143ktodayMITA7,461Codex, OpenCode
vscode oss-third-party-notices.instructions.mdmicrosoft/vscodeInstructions file195ktodayMITA5,516GitHub Copilot
langchain AGENTS.mdlangchain-ai/langchainInstructions file149ktodayMITA4,680Codex, OpenCode
vscode copilot-instructions.mdmicrosoft/vscodeInstructions file195ktodayMITA3,093GitHub Copilot
deepseek-harness AGENTS.mddeepseek-ai/deepseek-harnessInstructions file274k2d agoMITA4,313Codex, OpenCode