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:
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:
Authorization: Bearer avsk_live_…Tools
whoami: Who am Isearch_customers: Search customerssearch_vendors: Search vendorssearch_items: Search itemslist_warehouses: List warehouseslist_tax_rates: List tax rateslist_records: List recordsget_record: Get a recordget_receivables_summary: Receivables summarylist_customer_balances: Customer balancesget_customer_ledger: Customer statementlist_vendor_balances: Vendor balancesget_vendor_ledger: Vendor statementlist_stock: Stock on handlist_approvals: Approval requestsget_invoice_payments: Invoice paymentscreate_invoice: Create invoicecreate_quote: Create quotecreate_sales_order: Create sales ordercreate_credit_note: Create credit notecreate_payment_received: Record payment receivedcreate_bill: Create billcreate_purchase_order: Create purchase ordercreate_debit_note: Create debit notecreate_payment_made: Record payment madecreate_expense: Create expensecreate_customer: Create customercreate_vendor: Create vendorcreate_item: Create itemfinalize_invoice: Finalize invoicevoid_invoice: Void invoiceupdate_invoice: Edit invoiceapprove_request: Approve requestreject_request: Reject requestupdate_customer: Edit customerupdate_vendor: Edit vendorupdate_item: Edit itemupdate_expense: Edit expenselist_leads: List leadsget_lead: Get leadcreate_lead: Create leadupdate_lead: Edit leadconvert_lead: Convert leadlist_deals: List dealsget_deal: Get deallist_deal_stages: Pipeline stageslist_lost_reasons: Lost reasonscreate_deal: Create dealupdate_deal: Edit dealmove_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:
https://invoice.avscorp.in/.well-known/oauth-protected-resource/mcp
https://invoice.avscorp.in/.well-known/oauth-authorization-serverA 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.