actual-mcp-server: Instructions file for GitHub Copilot

.github/copilot-instructions.md

actual-mcp-server copilot-instructions.md is an instructions file for GitHub Copilot from agigante80/actual-mcp-server. It costs 4,977 tokens per session, scanned A, original, MIT.

Project instructions for Actual MCP Server, a TypeScript service that lets AI assistants manage Actual Budget through the Model Context Protocol. Actual Budget is personal-finance software, and MCP is a way for AI tools to call external services.

In plain words
What is it for?
Use them when adding or reviewing tools, transports, and API operations in the Actual MCP Server codebase. They explain the required wrapper and tool-construction pattern.
Why use it?
They document the project's architecture and a required API wrapper that ensures financial changes are saved correctly.

Instructions file for GitHub Copilot

Written for GitHub Copilot: a Copilot instructions file. Also seen: reads .claude/ paths; mentions subagents; mentions Claude Code.

This is agigante80/actual-mcp-server's own configuration. It tells GitHub Copilot how to work on actual-mcp-server 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 actual-mcp-server configures →

Needs its repository: it reads a path above its own folder, which exists only inside the repository. The line is import { createTool } from '../lib/toolFactory.js';.

Reuse

Borrowing it

Nothing to install: this file belongs to agigante80/actual-mcp-server. 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/agigante80/actual-mcp-server/main/.github/copilot-instructions.md
Clone the repo
git clone --depth 1 https://github.com/agigante80/actual-mcp-server

Made for: GitHub Copilot.

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 actual-mcp-server copilot-instructions.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/agigante80/actual-mcp-server/copilot-instructions.svg)](https://agentmods.dev/instructions/agigante80/actual-mcp-server/copilot-instructions)
Your own site
<a href="https://agentmods.dev/instructions/agigante80/actual-mcp-server/copilot-instructions"><img src="https://agentmods.dev/badge/instructions/agigante80/actual-mcp-server/copilot-instructions.svg" alt="Measured on agentmods" height="20"></a>
Per session 4,977 This file is loaded in full into every session.
When invoked 4,977 The same file — it is already loaded in full.
Security scan A 0 findings. 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.04977 $0.04977
Opus 5 $0.02488 $0.02488
Sonnet 5 $0.00995 $0.00995
Haiku 4.5 $0.00498 $0.00498

Measured today against content hash deb9be8b8225, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-08, from the pricing page.

Security

Grade A, and why

actual-mcp-server copilot-instructions.md scanned grade A with 0 findings 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 today.

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.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.github/copilot-instructions.md · 469 lines

How it starts

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

Copilot Instructions for Actual MCP Server

Project Overview

Actual MCP Server bridges AI assistants with Actual Budget via the Model Context Protocol (MCP), providing 81 tools for conversational financial management. Supports two transports: HTTP (LibreChat/LobeChat/multi-user) and stdio (Claude Desktop/Claude Code).

Tech Stack: TypeScript (NodeNext/ESM), Node.js 22+, @actual-app/api v26, @modelcontextprotocol/sdk, Express 5, Zod v4, Playwright

Current Status: Production-ready, 81 tools implemented

Architecture Essentials

Critical Pattern: withActualApi Wrapper

Every Actual API operation MUST use withActualApi() wrapper from src/lib/actual-adapter.ts:

// ✅ CORRECT - ensures data persistence
await withActualApi(async () => {
  return await rawAddTransactions(data);
});

// ❌ WRONG - data won't persist (tombstone issue)
await rawAddTransactions(data);

Why: Actual Budget requires api.shutdown() after every operation to commit data. The withActualApi wrapper handles init/shutdown lifecycle automatically. Based on s-stefanov/actual-mcp pattern.

Tool Structure

New tools should use createTool() from src/lib/toolFactory.ts — it wires up error handling, logging, and observability automatically:

import { z } from 'zod';
import { createTool } from '../lib/toolFactory.js';
import { CommonSchemas } from '../lib/schemas/common.js';
import adapter from '../lib/actual-adapter.js';

export default createTool({
  name: 'actual_domain_action',      // naming: actual_{domain}_{action}
  description: '...',
  schema: z.object({
    account: CommonSchemas.accountId,
    amount: CommonSchemas.amountCents, // always in cents, integer
    date: CommonSchemas.date,          // YYYY-MM-DD
  }),
  handler: async (input) => {
    return await adapter.someMethod(input);
  },
});

Many existing tools use the legacy pattern (both work, but createTool() is preferred for new tools):

Read the full file on GitHub · 469 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. today Changed deb9be8b8225
  2. 2d ago Changed 4c1ee75e432a
  3. 3d ago Changed 1cb7d983d4d3
  4. 4d ago Changed 21101fbda3bc
  5. 8d ago First seen · 469 lines · 4,977 tokens per session scan A 1798b0287c4a

Subscribe to this mod's changes

actual-mcp-server copilot-instructions.md is an instructions file published in the GitHub repository agigante80/actual-mcp-server (50 stars, last pushed yesterday), licensed MIT. It adds 4,977 tokens to every session, about $0.0249 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other instructions, from other repositories

vibetags com-example-service-EvidenceBasedShowcase.instructions.md

Instructions for PIsberg/vibetags, covering copilot instructions for evidencebasedshowcase, generated — edit the source, rules for field settledorderids, rules for method totalwithtax and rules for method refreshcartbadge.

PIsberg/vibetags · 443 tokens

next.js AGENTS.md

AGENTS.md instructions for vercel/next.js, covering next.js development guide, codebase structure, monorepo overview, core package: packages/next and other important packages.

vercel/next.js · 7,296 tokens

codex AGENTS.md

AGENTS.md instructions for openai/codex, covering rust/codex-rs, the codex-core crate, code review rules, crate api surface and model visible context.

openai/codex · 5,153 tokens

vscode buildNext.instructions.md

Working notes and architecture documentation for the new esbuild-based build system in build/next. Use when making changes to the new build pipeline (transpile/bundle commands, NLS plugin, source-map handling, resource copying, or self-hosting watch tasks).

microsoft/vscode · 6,785 tokens

vscode oss-third-party-notices.instructions.md

Instructions for microsoft/vscode, covering vs code oss third-party-notices pipeline, architecture, pipeline flow in ci, applying the notice (cutover) and fallback chain (never fail the build).

microsoft/vscode · 5,001 tokens

langchain AGENTS.md

AGENTS.md instructions for langchain-ai/langchain, covering global development guidelines for the langchain monorepo, corridor security analysis, project architecture and context, monorepo structure and development tools & commands.

langchain-ai/langchain · 4,469 tokens