SePay MCP permissions and security

SePay MCP permission groups, options to hide sensitive data, when a connection ends, and how to revoke your own and other user connections on my.sepay.vn.

||

When you grant access, you choose which data the AI app may read and can hide extra sensitive information. To change them later, see Edit permissions after connecting; to cut access, see Revoke connections.

SePay MCP permission groups

Each permission group is turned on or off separately under AI được phép xem (AI may view). SePay MCP is on for every company. A staff member with the Người dùng bình thường (regular user) role can connect only after a SuperAdmin or Admin grants them Cho phép kết nối AI qua MCP (allow AI connections through MCP), and sees only the groups matching the feature permissions they have (last column); SuperAdmin and Admin see every group. Which tool needs which group is in SePay MCP tools.

AI may view section of the SePay MCP access screen with the permission groups switched on or off separately
Click to expand
Turn on or off each data group the AI app may read.
Permission groupCodeTools that use itWhat the AI app can readFeature permission needed
Xem giao dịch (view transactions)mcp:transaction:readlist_transactions, get_transaction, get_transaction_summary, get_cashflow_report, get_einvoice_reconciliationTransactions and cash flow reportsXem danh sách giao dịch
Xem tài khoản ngân hàng (view bank accounts)mcp:bank-account:readlist_bank_accounts, get_bank_accountBank accounts, payment receiving infoXem danh sách tài khoản
Xem tài khoản ảo (VA) (view virtual accounts)mcp:va:readlist_virtual_accountsVirtual account list and detailsXem danh sách tài khoản
Xem hạn mức gói (view plan quota)mcp:quota:readget_plan_quotaSePay plan quota and e-invoice issuing quota: used and remainingSuperAdmin and Admin only
Xem lịch sử webhooks (view webhook history)mcp:webhook-log:readlist_webhook_logs, get_webhook_reportWebhook delivery history: event, status, timeXem nhật ký WebHooks
Xem webhooks đã cấu hình (view configured webhooks)mcp:webhook:readlist_webhooks, get_webhookWebhook list and details, without secret keysXem danh sách webhooks
Xem đơn cổng thanh toán (view payment gateway orders)mcp:pg-order:readlist_pg_orders, get_pg_orderPayment gateway order list and detailsCổng thanh toán → Xem danh sách đơn hàng
Xem hóa đơn điện tử (view e-invoices)mcp:einvoice-document:readlist_einvoices, get_einvoice, get_einvoice_reconciliationE-invoice list and details, reconciling money received with invoices (also needs the Xem giao dịch group)Hóa đơn điện tử (eInvoice) → Xem danh sách hóa đơn điện tử
Gửi lại webhook (có xác nhận) (resend webhooks, with approval)mcp:webhook-log:writereplay_webhookNo extra data; lets the AI app ask to resend one failed webhook delivery, sent only after you click Duyệt (Approve) on my.sepay.vn (details)SuperAdmin and Admin only
Tài liệu SePay (SePay docs; always on, no switch)mcp:docs:readlist_docs, fetch_contentPublic docs on developer.sepay.vnNone, no sign-in needed

The Gửi lại webhook (có xác nhận) group is the only write group: on the access screen it sits apart and is not switched on by default.

The Tài liệu SePay (SePay docs) group (mcp:docs:read) is always granted and has no switch: the AI app can always read the public docs on developer.sepay.vn.

Per-bank permissions still apply: if a user is assigned only some bank accounts, the AI app reads transactions of those accounts only.

Hide sensitive information

Ẩn bớt thông tin cho ứng dụng này (Hide more information for this app) has four switches, on the access screen and in the Chỉnh quyền (Edit permissions) window. They only hide more; they never open data outside the granted groups.

Hide more information for this app section of the SePay MCP access screen with four hide switches
Click to expand
Turn on the hide options for information you don't want the AI app to see.
OptionWhat the AI app gets
Ẩn tiền ra (hide money out)No outgoing transactions at all
Ẩn nội dung giao dịch (hide transfer content)Transfer content left empty
Ẩn mã tham chiếu (hide reference number)Reference number left empty
Ẩn số tài khoản (hide account number)Only the last 4 digits, as ****1234

Edit permissions after connecting

On the AI Agent page, Ứng dụng đã kết nối (Connected apps) tab, open the connection's ⋮ menu and select Chỉnh quyền (Edit permissions). In the Chỉnh quyền cho (app name) window:

  1. Turn each permission group on or off. To hide more information, open Ẩn bớt thông tin cho ứng dụng này (Hide more information for this app) and turn on the options you need.
  2. Select Lưu thay đổi (Save changes). The change applies from the AI app's next access.

The Thu hồi quyền (Revoke access) button in this window disconnects the app, as in Revoke your own connections.

Chỉnh quyền cho Claude (Edit permissions for Claude) window on my.sepay.vn with the permission groups, the Hide more information for this app section and the Thu hồi quyền (Revoke access) and Lưu thay đổi (Save changes) buttons
Click to expand
Turn data groups or hide options on or off, then select Lưu thay đổi.

Changes apply from the next read, without reconnecting. If the AI app still answers the old way, start a new conversation.

Chỉnh quyền can only turn back on groups you approved when granting access. To add another group, reconnect from the AI app and turn that group on in the access screen.

When a connection ends

CaseConnections ended
You change your SePay password: yourself, via forgot password, in the mobile app, or by resetAll your MCP connections, in every company
A SuperAdmin or Admin turns off your Cho phép kết nối AI qua MCP permissionAll your MCP connections in that company
You connect the same AI app a sixth time in one company (each app keeps up to 5 sessions)That app's session unused the longest
You reconnect and select Tiếp tục phiên (Continue session) under Chọn phiên kết nốiThe old session is replaced by the new grant
A connection goes unused for a long timeIt expires and the AI app asks you to sign in again

These cases only end MCP connections, not other apps you authorized through OAuth2.

Losing a feature permission (for example Xem danh sách giao dịch) does not end the connection, but tools needing it are blocked from the next read.

Revoke connections on my.sepay.vn

Revoking takes effect at once: the AI app can no longer read SePay data, even if SePay is still added in the app. The log of a revoked connection stays for 90 days in the Nhật ký hoạt động (Activity log) tab.

Revoke your own connections

Sign in to my.sepay.vn; in the left menu, under Tích hợp & Thông báo, select AI Agent. On the Ứng dụng đã kết nối (Connected apps) tab:

  1. Open the ⋮ menu of the connection to revoke.
  2. Select Thu hồi (Revoke).
Connected apps tab on my.sepay.vn with a connection menu open and the Thu hồi (Revoke) option
Click to expand
Open the connection's ⋮ menu and select Thu hồi.

In the Thu hồi quyền truy cập? (Revoke access?) dialog, select Thu hồi.

Revoke access dialog on my.sepay.vn with the Thu hồi button
Click to expand
Select Thu hồi to end the connection at once.

To revoke several at once, tick the rows (or Chọn tất cả, select all), then select Thu hồi các mục đã chọn (Revoke selected).

Revoke other users' connections

SuperAdmin and Admin can revoke the MCP connections of any user in the company, for example when an employee leaves or loses a laptop:

  1. On the AI Agent page, open the Đang xem (Viewing) filter at the top right and pick the user.
  2. On the Ứng dụng đã kết nối tab, revoke one or several connections the same way as your own.
AI Agent page on my.sepay.vn showing another user's connections through the Đang xem filter, with a connection menu open on Thu hồi
Click to expand
Pick the user in the Đang xem filter, then revoke their connection.

To stop that person from connecting again, turn off their Cho phép kết nối AI qua MCP permission on the user permissions page.

Read limit

Each user gets 120 data reads per minute in one company, shared across all their AI apps. If the AI app reports the limit, wait about a minute and ask again.

Prompt injection risk and safety tips

Prompt injection is when content written by someone else contains instructions the AI app follows as if you gave them. With SePay MCP, a common source is transfer content: the payer types it, and the AI app reads it when listing transactions.

Read-only by default. Write actions run only when you grant access and confirm each one.

Even so, the AI app may have other tools. The risk is the AI app being led to send SePay data out through another tool in the same conversation, for example a tool that sends email, posts messages or opens URLs.

To lower the risk:

  • Turn on only the groups you need for what you ask. Turn on Ẩn nội dung giao dịch if you don't need transfer content.
  • Set the AI app to ask you before using tools, especially tools that send data out (for example Claude's Tool permissions).
  • Revoke connections on old computers or apps you no longer use from time to time.
  • Open the Nhật ký hoạt động (Activity log) tab when the AI app reads data unusually or from an unknown IP.
  • If you suspect your account is compromised, change your SePay password: all your MCP connections end at once.

Next steps