Angaria

السجل الرسمي المالية والمدفوعات

Create, sign and download Turkish e-Arşiv invoices through the Angaria Mac app

التثبيت

أضف هذا إلى إعدادات MCP في عميلك (Claude Desktop: claude_desktop_config.json، وCursor: ‏.cursor/mcp.json، ويستخدم VS Code وغيره الصيغة نفسها «mcpServers»).

MCPB package https://github.com/vinenastudio/angaria-mcp/releases/download/v0.1.0/angaria-mcp.mcpb

التوثيق

مأخوذ من ملف README للمشروع على GitHub ويُحدَّث أسبوعيًا. تفتح الروابط على GitHub.

المحتويات
  1. Angaria MCP
  2. Requirements
  3. Setup
  4. Tools
  5. Example
  6. Safety
  7. Build from source
  8. License

Angaria MCP

English | Türkçe

Angaria is a Mac app for Turkish e-Arşiv invoicing. It replaces the web pages of GİB's e-Arşiv Portal (GİB is the Turkish tax authority): you create invoices, sign them with the SMS code GİB sends to your phone, and download them from one native app. While Angaria is open, it also runs an MCP server, so Claude, Cursor, Codex and other AI assistants can create, sign and download your invoices and manage your customers and services.

This repository holds angaria-mcp, a small open source program that connects MCP clients which only run local programs (Claude Desktop) to that server. It also holds the files MCP directories read. The MCP server itself lives inside the Angaria app and works only while the app is open. When Angaria is closed, nothing listens, and every request gets the error "Angaria’ya bağlanılamadı. Angaria’yı aç." ("Could not connect to Angaria. Open Angaria.").

Website: angaria.app/en

Requirements

  • A Mac with macOS 11 or later.
  • The Angaria app, installed and open, with a license or the 7-day free trial. Angaria is a paid app.
  • A GİB e-Arşiv Portal account (user code and password), saved in Angaria.
  • The phone registered with GİB. Signing an invoice needs the SMS code GİB sends to it.

The Angaria app is in Turkish. The tools answer in Turkish, and your assistant can translate.

Setup

The fastest way: open Angaria, go to the MCP page, and use Kurulum. Its Kurulum section lists 22 clients, among them Claude Code, Claude Desktop, Codex, Cursor, Gemini CLI, VS Code, Windsurf and Zed, and adds Angaria to each one with one click (Ekle).

By hand, every client gets the same address: http://127.0.0.1:41234/mcp (Streamable HTTP, no key).

Claude Code
claude mcp add --transport http --scope user angaria http://127.0.0.1:41234/mcp
Cursor

In ~/.cursor/mcp.json:

{"mcpServers":{"angaria":{"url":"http://127.0.0.1:41234/mcp"}}}
Codex

In ~/.codex/config.toml:

[mcp_servers.angaria]
url = "http://127.0.0.1:41234/mcp"
Other clients

A client that takes Streamable HTTP servers by type and URL gets this entry, named angaria:

{"type":"http","url":"http://127.0.0.1:41234/mcp"}
Claude Desktop

Claude Desktop runs only local programs (stdio servers), so it needs angaria-mcp. The Angaria app already contains it. In ~/Library/Application Support/Claude/claude_desktop_config.json:

{
  "mcpServers": {
    "angaria": {
      "command": "/Applications/Angaria.app/Contents/MacOS/angaria-mcp"
    }
  }
}

Keep Angaria in your Applications folder. If you open it from Downloads or from the disk image, macOS runs it from a temporary location, and that path stops working.

You can also build angaria-mcp from this repository and use the path of your build instead. When a release is published, its angaria-mcp.mcpb file installs the same program in Claude Desktop with a double click.

Tools

The tools in the order the server lists them. A tool marked "Yes" works only when "Ajanlar onaylayabilir ve silebilir" ("Agents can sign and delete") is on in Angaria's MCP page. That switch is off by default. While it is off, these tools stay in the list and answer with an error that names the switch, so your assistant can tell you what to turn on.

ToolWhat it doesNeeds the switch
list_invoicesLists invoices between two dates (31 days at most), filtered by status and recipient.
get_invoiceGets an invoice's recipient, lines and totals, or GİB's own view of the invoice.
create_invoiceCreates an unsigned draft invoice with the same rules as the app's New invoice form.
duplicate_invoiceCreates a new draft from an existing invoice, dated today.
download_invoiceSaves the Angaria PDF, the e-Arşiv PDF or GİB's ZIP file to your Downloads folder.
request_signing_smsAsks GİB to send an SMS code to your phone so drafts can be signed.Yes
sign_invoicesSigns drafts with the SMS code you give the agent. A signed invoice is final.Yes
delete_draftDeletes an unsigned draft from GİB. Never touches signed invoices.Yes
list_customersLists saved customers and their invoice defaults.
get_customerGets a customer's details and invoice defaults.
create_customerSaves a new customer.
update_customerChanges a customer's details or invoice defaults.
delete_customerDeletes a saved customer. Invoices you already issued do not change.Yes
list_servicesLists saved services with their prices, currencies and VAT rates.
get_serviceGets a service's price, unit and VAT rate.
create_serviceSaves a new service.
update_serviceChanges a service's name, price or VAT rate.
delete_serviceDeletes a saved service. Invoices you already issued do not change.Yes
list_companiesLists the companies in Angaria and which one is selected.
get_company_detailsGets the company and bank details printed on the PDF, and the PDF design.
update_company_detailsChanges the company and bank details printed on the PDF, including the IBAN.Yes
rename_companyChanges the company name shown in Angaria's company list.Yes
set_company_logoReplaces the PDF logo with an image file on your Mac, or removes it.Yes
get_exchange_rateGets the Turkish central bank (TCMB) buying rate for an invoice date.
check_gib_connectionLogs in to GİB with the saved user code, then logs out. The password never goes to the agent.
lookup_taxpayerGets the registered name and tax office for a Turkish tax ID (VKN or TCKN) from GİB.
close_gib_sessionCloses a session that is still open on the e-Arşiv Portal.Yes
scan_gib_importFinds customers and services to save from your signed invoices.
apply_gib_importSaves the customers and services you chose from the scan. Never changes saved ones.
get_app_settingsGets the theme, the color palette and Angaria's version.
update_app_settingsChanges the theme or the color palette.

Example

Invoice Apple for $5,000, service export

The assistant finds Apple in your saved customers (or adds it), then creates a draft in US dollars as an İstisna invoice (exempt from VAT, as services sold abroad are), with the TCMB buying rate for the invoice date. You see the draft in Angaria. To sign it from the chat, turn on the switch, ask the assistant to sign, and give it the SMS code GİB sends to your phone.

Safety

  • The server listens only on this Mac (127.0.0.1). It refuses a request whose Host is not a local address on its port, and any request with an Origin header, so web pages cannot reach it.
  • There is no key. While Angaria is open, any program on this Mac can reach the server. When Angaria is closed, nothing listens.
  • Signing always needs the SMS code GİB sends to your phone. The assistant cannot sign without the code you give it.
  • Signing, deleting and changing company details (the IBAN on every PDF) work only when "Ajanlar onaylayabilir ve silebilir" is on. It is off by default.
  • Your GİB password stays in the macOS Keychain. No tool reads or writes it.
  • Angaria has no account and no cloud storage. Your invoices, customers and services stay on your Mac. The app talks only to GİB, TCMB (for exchange rates), Polar (for the license) and Angaria's update server.
  • Angaria's MCP page lists every tool call in an activity log, with SMS codes and passwords masked.

Build from source

You need macOS and Rust. rust-toolchain.toml installs both Mac targets.

cargo test
cargo build --release

The program is at target/release/angaria-mcp. To build the universal binary for Apple silicon and Intel and pack dist/angaria-mcp.mcpb (packing needs Node with npx):

./scripts/build.sh

SKIP_PACK=1 ./scripts/build.sh builds only the universal binary, at dist/angaria-mcp.

angaria-mcp reads JSON-RPC messages from standard input, one per line, sends each to http://127.0.0.1:41234/mcp, and writes each answer to standard output. It reads no file and never opens Angaria.

License

The code in this repository is under the MIT License. The Angaria app itself is proprietary and paid; its source is not public.

الأسئلة الشائعة

ما هو Angaria؟

Create, sign and download Turkish e-Arşiv invoices through the Angaria Mac app

كيف أثبّت Angaria؟

اتبع خطوات التثبيت في توثيقه المعروض في هذه الصفحة وفي مستودعه.

هل يحتاج Angaria إلى مفتاح API؟

لا يذكر إدراجه في السجل أي مفتاح أو سر إلزامي. قد تتطلب بعض الميزات حسابًا لدى الخدمة التي يتصل بها.

هل Angaria مفتوح المصدر؟

نعم. شيفرته متاحة على GitHub بترخيص MIT.

من يصون Angaria؟

ينشره vinenastudio. يدرجه AI.tn لكنه لا يصونه ولا يوصي به.

من سجل MCP الرسمي. الإدراج ليس توصية: راجع شيفرة الخادم وصلاحياته قبل منحه الوصول إلى بياناتك.