MCP

The avs. MCP server lets AI apps such as ChatGPT and Claude look up customers, vendors and items and create sales and purchase documents in your organization: invoices, quotes, sales orders, credit notes, payments, bills, purchase orders, debit notes and expenses. New documents are saved as drafts unless you ask the app to send or confirm them.

It can also answer questions (who owes you money, a customer's statement, stock on hand, what's waiting for approval), edit records, finalize and void invoices, approve or reject requests, and work your leads and pipeline. Edits change only the fields you mention. Finalizing and voiding are marked so the app asks you first, and nothing can be deleted through MCP.

Connect an AI app

Add a custom connector (or custom MCP server) in the app and use this URL:

text
https://invoice.avscorp.in/mcp
  • ChatGPT: Settings → Apps & Connectors → Create (developer mode). Choose OAuth for authentication.
  • Claude: Settings → Connectors → Add custom connector.

The app sends you to an avs. consent screen. Sign in, choose the organization and the access level, and click Allow.

Sign-in and access

A connected app acts as you. It can never do more than your role allows in the organization you picked, and Read only limits it further. See and disconnect connected apps in Settings → API access; a disconnected app loses access immediately.

Clients that can't do OAuth can send a personal access token instead:

HTTP
Authorization: Bearer avsk_live_…

Tools

  • whoami: Who am I
  • search_customers: Search customers
  • search_vendors: Search vendors
  • search_items: Search items
  • list_warehouses: List warehouses
  • list_tax_rates: List tax rates
  • list_records: List records
  • get_record: Get a record
  • get_receivables_summary: Receivables summary
  • list_customer_balances: Customer balances
  • get_customer_ledger: Customer statement
  • list_vendor_balances: Vendor balances
  • get_vendor_ledger: Vendor statement
  • list_stock: Stock on hand
  • list_approvals: Approval requests
  • get_invoice_payments: Invoice payments
  • create_invoice: Create invoice
  • create_quote: Create quote
  • create_sales_order: Create sales order
  • create_credit_note: Create credit note
  • create_payment_received: Record payment received
  • create_bill: Create bill
  • create_purchase_order: Create purchase order
  • create_debit_note: Create debit note
  • create_payment_made: Record payment made
  • create_expense: Create expense
  • create_customer: Create customer
  • create_vendor: Create vendor
  • create_item: Create item
  • finalize_invoice: Finalize invoice
  • void_invoice: Void invoice
  • update_invoice: Edit invoice
  • approve_request: Approve request
  • reject_request: Reject request
  • update_customer: Edit customer
  • update_vendor: Edit vendor
  • update_item: Edit item
  • update_expense: Edit expense
  • list_leads: List leads
  • get_lead: Get lead
  • create_lead: Create lead
  • update_lead: Edit lead
  • convert_lead: Convert lead
  • list_deals: List deals
  • get_deal: Get deal
  • list_deal_stages: Pipeline stages
  • list_lost_reasons: Lost reasons
  • create_deal: Create deal
  • update_deal: Edit deal
  • move_deal_stage: Move deal stage

For client developers

avs. implements the MCP authorization spec: OAuth 2.1 authorization code with PKCE (S256 only), dynamic client registration (RFC 7591), and discovery through:

text
https://invoice.avscorp.in/.well-known/oauth-protected-resource/mcp
https://invoice.avscorp.in/.well-known/oauth-authorization-server

A request to /mcp without a token gets 401 with a WWW-Authenticate header naming the resource metadata. Access tokens last one hour; refresh tokens rotate on every use, and reusing an authorization code revokes the tokens it produced.