Command Palette

Search for a command to run...

UnylyUnyly
Весь каталог

LIMU Portal

БесплатноНе проверен

MCP server for LIMU Portal that provides read-only and controlled write access to operational and finance data, including clients, cargo, shipments, budgets, re

GitHubEmbed

Описание

MCP server for LIMU Portal that provides read-only and controlled write access to operational and finance data, including clients, cargo, shipments, budgets, requisitions, payment vouchers, and reports.

README

Model Context Protocol server for LIMU Portal operational and finance data. It supports the original local stdio/MySQL mode and a Vercel HTTP mode that authenticates with LIMU OAuth and calls LIMU Portal APIs.

Exposed Data

  • Clients, including editable profile records plus cargo, package, shipment, invoice, payment, order-form, lead, KYC, query, and mobile-account summaries.
  • Cargo records, tracking numbers, clients, shipment links, package totals, and cargo logs.
  • Cargo package groups, package units, and stage-check summaries.
  • Shipments, calendars, status updates, cargo totals, and budget summaries.
  • Monthly budgets, detailed budget entries, and controlled purchase scheduling.
  • Shipment customs budgets and shipping budgets, including income rows, expense rows, and budget logs.
  • Requisitions, requisition items, payment vouchers, voucher items, payment proofs, and controlled approval/payment actions.
  • Client profile reports, lead reports, order form reports, import product reports, leave applications, and timesheet reports.

Setup

cd /Applications/XAMPP/xamppfiles/htdocs/limu/mcp
cp .env.example .env
npm install
npm run smoke

Vercel HTTP MCP

The Vercel entrypoint is:

/api/mcp

It requires an OAuth bearer token issued by the LIMU Portal OAuth provider. The remote server validates tokens through:

GET /Api/v1/oauth/userinfo/

Then each tool forwards that same bearer token to the relevant LIMU Portal API endpoint, keeping portal permissions as the source of truth.

The server publishes OAuth Protected Resource Metadata at:

/.well-known/oauth-protected-resource

The portal publishes authorization server metadata and supports dynamic client registration, so Codex can register its temporary local callback automatically. Manual callback registration is not required.

Set this Vercel environment variable:

LIMU_PORTAL_BASE_URL=https://portal.limu.co.mw

Then deploy:

npm run build

Vercel will serve the MCP route over Streamable HTTP through mcp-handler.

Add the deployed server to Codex and authenticate it:

codex mcp add limu_mcp --url https://limu-mcp.vercel.app/api/mcp
codex mcp login limu_mcp

Run npm run smoke:oauth to verify protected-resource metadata and audience checks locally.

The remote migration currently covers OAuth-protected health/userinfo, clients, cargo, cargo packages, shipments, an imports-and-orders report, and the Import Product Report. The imports-and-orders report uses shipment arrival dates for imported cargo and order-form creation dates for ordered goods. The Import Product Report uses cargo import creation dates and returns category summaries, top importers, client-category rows, and trend data. Finance, budget, requisition, payment voucher, leave, and other report tools remain registered with explicit "portal endpoint pending" responses until their matching portal endpoints are added.

Local Stdio MCP

Use a least-privilege MySQL user. A read-only user is enough for reporting tools, but write tools need narrowly scoped UPDATE access for Clients, monthly_budget_entry, and leave_applications, INSERT/UPDATE/DELETE access for monthly budget schedule splits, UPDATE/INSERT access for leave logs, requisitions, requisition logs, payment vouchers, and budget spend tables, plus DELETE access for eligible requisitions, requisition items/logs, payment vouchers, voucher items, and voucher proof rows. Write tools require confirm: true; use dryRun: true first to preview the exact proposed change. Client auth secrets, token hashes, KYC link tokens, and government ID numbers are intentionally omitted from client tool responses.

Run

cd /Applications/XAMPP/xamppfiles/htdocs/limu/mcp
npm start

Most MCP clients should launch it over stdio. Example client config:

{
  "mcpServers": {
    "limu-portal": {
      "command": "node",
      "args": [
        "/Applications/XAMPP/xamppfiles/htdocs/limu/mcp/src/server.js"
      ],
      "env": {
        "LIMU_DB_HOST": "127.0.0.1",
        "LIMU_DB_PORT": "3306",
        "LIMU_DB_NAME": "limutradee",
        "LIMU_DB_USER": "root",
        "LIMU_DB_PASSWORD": ""
      }
    }
  }
}

Tools

  • limu_health
  • limu_get_clients
  • limu_get_client
  • limu_update_client
  • limu_list_cargo
  • limu_get_cargo
  • limu_list_packages
  • limu_get_package
  • limu_list_shipments
  • limu_get_shipment
  • limu_get_imports_and_orders_report
  • limu_get_import_product_report
  • limu_list_monthly_budgets
  • limu_get_monthly_budget
  • limu_list_purchase_schedule
  • limu_schedule_budget_purchase
  • limu_list_shipment_budgets
  • limu_get_shipment_budget
  • limu_list_customs_budgets
  • limu_get_customs_budget
  • limu_list_shipping_budgets
  • limu_get_shipping_budget
  • limu_list_requisitions
  • limu_get_requisition
  • limu_review_requisition
  • limu_delete_requisition
  • limu_list_payment_vouchers
  • limu_get_payment_voucher
  • limu_review_payment_voucher
  • limu_delete_payment_voucher
  • limu_mark_payment_voucher_paid
  • limu_list_client_profile_reports
  • limu_get_client_profile_report
  • limu_list_lead_reports
  • limu_get_lead_report
  • limu_list_order_form_reports
  • limu_get_order_form_report
  • limu_list_leave_applications
  • limu_review_leave_application
  • limu_list_timesheet_reports
  • limu_list_warehouse_timesheet_reports

All tools return JSON text payloads and list tools enforce a configurable limit cap.

from github.com/gochi20/limuMCP

Установка LIMU Portal

У этого сервера нет опубликованного пакета — он собирается из исходников. Открой репозиторий и следуй инструкции в README.

▸ github.com/gochi20/limuMCP

FAQ

LIMU Portal MCP бесплатный?

Да, LIMU Portal MCP бесплатный — установка в пару кликов через Unyly без оплаты.

Нужен ли API-ключ для LIMU Portal?

Нет, LIMU Portal работает без API-ключей и переменных окружения.

LIMU Portal — hosted или self-hosted?

Self-hosted: сервер запускается локально на твоей машине командой из раздела установки.

Как установить LIMU Portal в Claude Desktop, Claude Code или Cursor?

Открой LIMU Portal на unyly.org, выбери вкладку своего клиента (Claude Desktop, Claude Code, Cursor) и нажми Install — конфиг сгенерируется автоматически, без правки JSON.

Похожие MCP

Compare LIMU Portal with

Не уверен что выбрать?

Найди свой стек за 60 секунд

Автор?

Embed-бейдж для README

Похожее

Все в категории finance