Generate Invoices with GitHub Copilot

Install the pmnt plugin in VS Code or in GitHub Copilot CLI. Both apps read the same Copilot configuration, so one setup can serve both. Ask Copilot for an invoice in plain words. Copilot returns a payment link with an NBU QR code.

MCP Server URL

https://mcp.pmnt.app

You need this URL only when you add the server by hand. Enter it exactly as shown, with no slash at the end.

IBAN payments with QR in GitHub Copilot

Works in
GitHub Copilot in VS Code 1.140 or later (Stable) and GitHub Copilot CLI 1.0.83 or later
Setup
The pmnt plugin, or one MCP server entry in the shared Copilot configuration
Sign-in
Your pmnt account, in the browser. One permission: create invoices.
Tools
create_invoice creates an invoice in your pmnt account. list_payees shows your businesses and bank accounts. list_payment_categories shows the payment categories.
You need
An active pmnt trial or subscription and a business with a bank account.

Requirements

You need a pmnt account with an active trial or subscription. Add at least one business with a bank account at app.pmnt.app. The 15-day free trial starts when you first sign in at app.pmnt.app.

GitHub Copilot: GitHub lists MCP in all Copilot plans. If your Copilot seat comes from an organization, an admin must allow MCP servers.

VS Code documentation: MCP servers GitHub Docs: MCP servers in Copilot CLI

VS Code and Copilot CLI share the MCP servers in ~/.copilot/mcp-config.json and the plugins that Copilot CLI installs. Set up pmnt once and use one way only. The plugin server has the name invoices. The manual server has the name pmnt.

Set up pmnt in VS Code

Add the MCP server in VS Code

  1. Run MCP: Add Server from the Command Palette (Cmd+Shift+P on macOS, Ctrl+Shift+P on Windows and Linux).

  2. Select HTTP (HTTP or Server-Sent Events) and enter https://mcp.pmnt.app. Enter pmnt as the server ID.

  3. Select Global, then Copilot Global. VS Code saves the server in ~/.copilot/mcp-config.json. This choice needs VS Code 1.140 or later.

  4. Accept the trust prompt. Then run MCP: List Servers, select pmnt, select Start Server and click Allow.

Use the Agent agent to create invoices. The Ask agent uses only read-only tools. VS Code asks you to approve create_invoice, because the tool is not read-only.

Install the pmnt plugin in VS Code

  1. Turn on agent plugins. In the VS Code settings, set chat.plugins.enabled to true. The setting is off by default.

    Open the setting in VS Code

  2. Open this link and let your browser open VS Code. The link needs VS Code 1.144 or later:

    Install pmnt in VS Code

    If the link does not work, use the steps in Add the MCP server in VS Code.

  3. In VS Code, approve the marketplace and the plugin. For a new marketplace, VS Code also asks you to trust its source.

  4. VS Code installs the plugin with one MCP server, invoices, and opens the Agent Customizations editor.

  5. Sign in before your first request. Run MCP: List Servers from the Command Palette, select invoices and select Start Server. In the dialog, click Allow.

If you installed the plugin with Copilot CLI, VS Code already shows it on the Plugins page.

Set up pmnt in Copilot CLI

Use Copilot CLI 1.0.83 or later. This version added the sign-in method that pmnt uses. Run copilot --version to see your version, and copilot update to update it.

Add the MCP server in Copilot CLI

  1. Run this command. It saves the server in ~/.copilot/mcp-config.json, but it does not sign you in:

    copilot mcp add --transport http pmnt https://mcp.pmnt.app
  2. Start copilot and type /mcp auth pmnt.

  3. Return to the terminal. The server connects again automatically.

You can also add this entry to ~/.copilot/mcp-config.json by hand:

{
  "mcpServers": {
    "pmnt": {
      "tools": ["*"],
      "type": "http",
      "url": "https://mcp.pmnt.app"
    }
  }
}

Install the pmnt plugin in Copilot CLI

  1. Add the pmnt marketplace:

    copilot plugin marketplace add pmnt-app/agent-plugins
  2. Install the plugin:

    copilot plugin install pmnt@pmnt-app

    copilot mcp list now shows invoices under Plugin servers:

    Expected output

    Plugin servers:
      invoices (http)
  3. Start copilot and type /mcp auth invoices.

  4. Return to the terminal. The server connects again automatically.

Check the connection

Send this request to Copilot:

Show my pmnt businesses and bank accounts

Copilot calls list_payees and shows the businesses and bank accounts from your pmnt account. If it asks you to sign in, see Troubleshooting.

In Copilot CLI, type /mcp show pmnt to see the server status and its tools. In VS Code, run MCP: List Servers.

Create your first invoice

Ask for an invoice in plain words. For example:

Create a pmnt invoice for 500 UAH for consulting services, valid for 7 days

Create a pmnt invoice for a donation to the school fund. Let the payer enter the amount

The answer has a payment link (app.pmnt.app/pay/...). The payment page shows the invoice and an NBU-standard QR code. Send the link to your customer. The customer scans the QR code with a banking app and pays by bank transfer.

VS Code and Copilot CLI can ask you to approve each pmnt tool call. Check the amount and the purpose first.

Questions

Do VS Code and the CLI share setup?

Yes. Both read ~/.copilot/mcp-config.json and the plugins that Copilot CLI installs. If an app asks you to sign in, sign in there too.

Does pmnt work with copilot -p?

Yes, after you sign in once in an interactive session. In prompt mode (-p), Copilot CLI skips MCP servers that still need a sign-in.

Does the assistant get my password?

No. You sign in on the pmnt sign-in page, not in the chat. Copilot gets one permission, Create invoices. With it, the assistant can create invoices and read your businesses, bank accounts and payment categories in pmnt. You can cancel this access at any time.

Do I type my IBAN in the chat?

No. pmnt takes the business and the IBAN from your pmnt account. The tool result contains the business name, the IBAN and the payment link, so Copilot sees them.

How do I disconnect pmnt?

In Copilot CLI, run copilot plugin uninstall pmnt@pmnt-app for the plugin or copilot mcp remove pmnt for the manual server. In VS Code, run Chat: Open Customizations, open MCP Servers and select Uninstall in the menu of the server.

Troubleshooting

VS Code asks for authentication

MCP server "pmnt" requires authentication. Run /mcp auth pmnt to authenticate.
Some Copilot sessions in VS Code do not show the sign-in (VS Code issue #339960). Run MCP: List Servers, select the server, select Start Server and sign in. Then send your request again.

Copilot CLI asks for authentication

MCP server 'pmnt' requires authentication. Use /mcp auth pmnt to connect.
Type /mcp auth pmnt in an interactive session, or /mcp auth invoices for the plugin.

Sign-in: Client not found or inactive

Client not found or inactive
The pmnt sign-in accepts VS Code (Stable) and Copilot CLI 1.0.83 or later. Other apps can get this error, for example VS Code Insiders. The GitHub Copilot app reads the same MCP servers, but the pmnt sign-in does not accept this app. In the app, pmnt can show this error.

No plugin or mcp command

Your Copilot CLI is too old. Run copilot update. If this command does not exist, install Copilot CLI again, for example with npm install -g @github/copilot.

Your organization blocks MCP servers

For Copilot Business and Copilot Enterprise, the MCP servers policy is off by default. Ask your admin to turn it on. If your organization uses an allowlist, the admin must also allow https://mcp.pmnt.app. If the admin sets the registry policy to Registry only, Copilot can use only servers from the MCP registry.

Messages from the pmnt tools

When a pmnt tool fails, Copilot gets one of these messages. The assistant can show the message in other words.

Sign-in is required. Connect your pmnt account, then try again.
In Copilot CLI, type /mcp auth pmnt, or /mcp auth invoices for the plugin. In VS Code, start the server from MCP: List Servers and sign in.
No pmnt account is linked to this sign-in. Create an account or sign in at https://app.pmnt.app, then try again.
Sign in at app.pmnt.app with the same account, or create an account there. Then try again.
Your pmnt subscription or trial is not active, so invoices cannot be created from this assistant. Plan information: https://pmnt.app/pricing
Renew the subscription at app.pmnt.app. The 15-day free trial starts when you first sign in at app.pmnt.app. See plans and prices
Your pmnt account has no business with a bank account. Add one at https://app.pmnt.app, then try again.
Add a business and its bank account at app.pmnt.app. Then try again.
Too many invoices in a short time. Wait a minute and try again.
Wait one minute, then try again.
The pmnt service is not available now. Try again later.
Try again in a few minutes. If you see the message again, write to support@pmnt.app.

Privacy and security

  • To create an invoice, pmnt uses your pmnt user ID, the business and bank account of the invoice, the purpose and the amount.
  • The MCP server does not collect your chat history, your location, payment card data or your password. It does not store your sign-in token.
  • The invoice goes to your pmnt account at app.pmnt.app. Your AI assistant provider (for example Anthropic, OpenAI, Perplexity, Google or GitHub) gets the tool result. Its own privacy policy covers your chat.
  • Invoices stay in your pmnt account until you delete them.

For privacy-related questions or data deletion requests, contact us at: support+legal@pmnt.app

Read the full MCP Privacy Policy Read the MCP Terms of Service