mcp-niubiz

v0.1.0
io.github.codespar/mcp-niubiz Checked 8 hours ago Published 5 months ago

MCP server for Niubiz — Peru card acquirer: security token, session, authorize, reverse

Has high-severity static-analysis findings pending human review.

Values you need

VariableWhat it is
NIUBIZ_USERrequired secret Niubiz API user
NIUBIZ_PASSWORDrequired secret Niubiz API password
NIUBIZ_MERCHANT_IDrequired Merchant id (código de comercio)
NIUBIZ_ENVoptional Environment: 'sandbox' or 'production'. Defaults to 'sandbox'.

npm (npx) verified

Requires Node.js 18+

Run in a terminal
claude mcp add mcp-niubiz -e 'NIUBIZ_MERCHANT_ID=<NIUBIZ_MERCHANT_ID>' -e 'NIUBIZ_PASSWORD=<NIUBIZ_PASSWORD>' -e 'NIUBIZ_USER=<NIUBIZ_USER>' -- npx -y @codespar/mcp-niubiz@0.1.0
Add to claude_desktop_config.json
{
  "mcpServers": {
    "mcp-niubiz": {
      "args": [
        "-y",
        "@codespar/mcp-niubiz@0.1.0"
      ],
      "command": "npx",
      "env": {
        "NIUBIZ_MERCHANT_ID": "<NIUBIZ_MERCHANT_ID>",
        "NIUBIZ_PASSWORD": "<NIUBIZ_PASSWORD>",
        "NIUBIZ_USER": "<NIUBIZ_USER>"
      }
    }
  }
}
Add to ~/.cursor/mcp.json
{
  "mcpServers": {
    "mcp-niubiz": {
      "args": [
        "-y",
        "@codespar/mcp-niubiz@0.1.0"
      ],
      "command": "npx",
      "env": {
        "NIUBIZ_MERCHANT_ID": "<NIUBIZ_MERCHANT_ID>",
        "NIUBIZ_PASSWORD": "<NIUBIZ_PASSWORD>",
        "NIUBIZ_USER": "<NIUBIZ_USER>"
      }
    }
  }
}
Add to .vscode/mcp.json
{
  "inputs": [
    {
      "description": "NIUBIZ_MERCHANT_ID",
      "id": "niubiz-merchant-id",
      "password": true,
      "type": "promptString"
    },
    {
      "description": "NIUBIZ_PASSWORD",
      "id": "niubiz-password",
      "password": true,
      "type": "promptString"
    },
    {
      "description": "NIUBIZ_USER",
      "id": "niubiz-user",
      "password": true,
      "type": "promptString"
    }
  ],
  "servers": {
    "mcp-niubiz": {
      "args": [
        "-y",
        "@codespar/mcp-niubiz@0.1.0"
      ],
      "command": "npx",
      "env": {
        "NIUBIZ_MERCHANT_ID": "${input:niubiz-merchant-id}",
        "NIUBIZ_PASSWORD": "${input:niubiz-password}",
        "NIUBIZ_USER": "${input:niubiz-user}"
      },
      "type": "stdio"
    }
  }
}
Add to ~/.codex/config.toml
[mcp_servers.mcp-niubiz]
command = "npx"
args = ["-y", "@codespar/mcp-niubiz@0.1.0"]
env = { "NIUBIZ_MERCHANT_ID" = "<NIUBIZ_MERCHANT_ID>", "NIUBIZ_PASSWORD" = "<NIUBIZ_PASSWORD>", "NIUBIZ_USER" = "<NIUBIZ_USER>" }

For AI agents

  1. Ask the user for: NIUBIZ_USER, NIUBIZ_PASSWORD, NIUBIZ_MERCHANT_ID. Never invent or guess these values; secrets go into the client config, not into chat logs.
  2. Pick the user's MCP client and apply the matching config from the first install method (it is the one verified by the smoke test when available).
  3. Restart or reload the client so it starts the server.
  4. Verify: the server should expose these tools: get_security_token, create_session_token, authorize_transaction, reverse_transaction.
  5. If it fails, check that the required runtime is installed (Node.js 18+) and that the values above are set.

Machine-readable: install.md · manifest.json