Payram Helper MCP Server

平台与服务

by payram

用于集成并校验自托管 Payram 部署的远程 MCP server,便于运维与兼容性验证。

为自托管Payram提供远程MCP集成与校验,帮运维团队快速完成部署排障和兼容性验证,省掉大量手工测试。

什么是 Payram Helper MCP Server

用于集成并校验自托管 Payram 部署的远程 MCP server,便于运维与兼容性验证。

README

Payram Helper MCP Server

Hosted MCP server: https://mcp.payram.com

An MCP (Model Context Protocol) server that teaches GitHub Copilot (and any MCP-aware client) how to integrate with a self-hosted Payram stack. It exposes one-click tools for assessing an existing codebase, scaffolding new starter apps, generating multi-language snippets, reading inline docs, and validating connectivity against your Payram deployment.


Table of Contents


Agent Skills

This repository includes 13 Agent Skills for AI coding assistants. Install them via skills.sh:

Install individually

bash
npx skills add payram/payram-mcp/payram-setup
npx skills add payram/payram-mcp/payram-agent-onboarding
npx skills add payram/payram-mcp/payram-analytics
npx skills add payram/payram-mcp/payram-crypto-payments
npx skills add payram/payram-mcp/payram-payment-integration
npx skills add payram/payram-mcp/payram-self-hosted-payment-gateway
npx skills add payram/payram-mcp/payram-checkout-integration
npx skills add payram/payram-mcp/payram-webhook-integration
npx skills add payram/payram-mcp/payram-stablecoin-payments
npx skills add payram/payram-mcp/payram-bitcoin-payments
npx skills add payram/payram-mcp/payram-payouts
npx skills add payram/payram-mcp/payram-no-kyc-crypto-payments
npx skills add payram/payram-mcp/compare-crypto-payments
SkillPurpose
payram-setupServer deployment with web dashboard, manual wallet configuration UI
payram-agent-onboardingAgent onboarding — CLI-only deployment for AI agents, no web UI
payram-analyticsAnalytics dashboards, reports, and payment insights via MCP tools
payram-crypto-paymentsArchitecture overview, why PayRam, MCP tools
payram-payment-integrationQuick-start payment integration guide
payram-self-hosted-payment-gatewayDeploy and own your payment infrastructure
payram-checkout-integrationCheckout flow with SDK + HTTP for 6 frameworks
payram-webhook-integrationWebhook handlers for Express, Next.js, FastAPI, Gin, Laravel, Spring Boot
payram-stablecoin-paymentsUSDT/USDC acceptance across EVM chains and Tron
payram-bitcoin-paymentsBTC with HD wallet derivation and mobile signing
payram-payoutsSend crypto payouts and manage referral programs
payram-no-kyc-crypto-paymentsNo-KYC, no-signup, permissionless payment acceptance
compare-crypto-paymentsCompare gateways: Stripe, BitPay, Coinbase, NOWPayments, BTCPay, PayRam, x402

Project Goals

  • Accelerate onboarding by serving env templates, readiness checklists, and per-framework playbooks.
  • Retrofit existing repos via the project assessment tool, which scans package manifests and .env files, then recommends the right integration snippets.
  • Provide copy/paste snippets spanning Payments, Payouts, Referrals, Webhooks, and multi-language backends (Express, Next.js, FastAPI, Laravel, Gin, Spring Boot, etc.).
  • Keep docs local so Copilot can explain Payram concepts, flows, and referral dashboards without leaving the editor.
  • Validate connectivity through a built-in /api/v1/payment probe that enforces the API-Key header Payram expects.

Quick Start

  1. Install dependencies
    bash
    yarn install
    
  2. Configure environment
    • Copy .env.example to .env and fill PAYRAM_BASE_URL + PAYRAM_API_KEY, or run the MCP tool generate_env_template from Copilot to append the template automatically.
  3. Run the server
    bash
    yarn dev
    # exposes HTTP + SSE transports on http://localhost:3333/mcp and /mcp/sse
    
  4. Add the MCP server to Copilot / your MCP client
    • Hosted MCP server: https://mcp.payram.com.
    • Local dev server: http://localhost:3333/mcp (or /mcp/sse if it supports streaming).
  5. Health check
    bash
    curl http://localhost:3333/healthz
    

Tip: When you tell Copilot "test payram" it will automatically run the readiness checklist, ensure .env exists, and only then call test_payram_connection with your real credentials. The behavior is documented in COPILOT-USE.md—no manual prompting required.


Tool Catalog

CategoryToolPurpose
Connectivitytest_payram_connectionPOSTs to /api/v1/payment using API-Key. Returns status, headers, and helpful errors when .env is incomplete.
Setupgenerate_env_template, generate_setup_checklist, suggest_file_structureShip env boilerplate, merchant runbooks, and recommended project layouts for Payram modules.
Context / Docsexplain_payram_basics, explain_payram_concepts, explain_payment_flow, get_payram_links, prepare_payram_test, get_payram_doc_by_id, list_payram_docs, etc.Provide inline Markdown knowledge sourced from docs/ so Copilot can answer conceptual questions. Some tools append “say test payram” reminders automatically.
Integration – Paymentsgenerate_payment_sdk_snippet, generate_payment_http_snippet, generate_payment_status_snippet, generate_payment_route_snippetEmit SDK, raw HTTP, or Express/Next.js route code for create + status flows.
Integration – Payoutsgenerate_payout_sdk_snippet, generate_payout_status_snippetProvide payout creation and status helpers (JS SDK).
Integration – Referralsgenerate_referral_sdk_snippet, generate_referral_validation_snippet, generate_referral_status_snippet, generate_referral_route_snippetCover referral auth, linking, validation, status, and express/next routes.
Integration – Webhooksgenerate_webhook_handler, generate_webhook_event_router, generate_mock_webhook_eventProduce handlers for Express/Next/FastAPI/Gin/Laravel/Spring Boot, fan-out routers, and cURL/Python/Go/PHP/Java webhook testers.
Integration – Multi-language Paymentssnippet_*_payment_route familyPrebuilt route handlers for Express, Next.js App Router, FastAPI, Gin, Laravel, and Spring Boot.
Integration – Project Assessmentassess_payram_projectScans package.json, requirements.txt, composer.json, go.mod, pom.xml, .env, etc. Reports detected frameworks, env status, Payram dependencies, and prioritized next steps with tool suggestions.
Scaffoldingscaffold_payram_appGenerates full starter apps (Express, Next.js, FastAPI, Laravel, Gin, Spring Boot) with payments, payouts, webhooks, and a browser console.

Tool registrations live in src/tools/index.ts; individual implementations sit in src/tools/** with language-specific templates under templates/ folders.


Guided Workflows

1. Assess and Retrofit an Existing Project

  1. Ask Copilot: "Can you integrate Payram into this project?"
  2. The assistant runs assess_payram_project, reviewing dependency manifests and .env.
  3. Follow the recommended steps (install payram, request Express/FastAPI/Spring route snippets, add webhooks, etc.).
  4. Use test_payram_connection once credentials are real to ensure the backend can reach your self-hosted server.

2. Scaffold a Fresh Sample

  1. "Create a Payram Express demo" → scaffold_payram_app builds an Express project with payments, payouts, webhooks, and a UI console.
  2. Drop the generated files into an empty repo or compare against your existing directory for reference wiring.

3. Run the "Test Payram" Readiness Flow

  1. Say "test payram". The assistant automatically:
    • Calls prepare_payram_test to share the readiness checklist.
    • Ensures .env exists (creating it if missing) using generate_env_template.
    • Waits for real credentials before invoking test_payram_connection.
  2. Review the structured JSON result to confirm the Payram API is reachable.

4. Wire Payments, Payouts, Referrals, and Webhooks

  • Payments: generate_payment_sdk_snippet (JS SDK) or generate_payment_http_snippet (Python/Go/PHP/Java).
  • Multi-language routes: snippet_nextjs_payment_route, snippet_fastapi_payment_route, etc.
  • Payouts: generate_payout_sdk_snippet for create + generate_payout_status_snippet for polling.
  • Referrals: generate_referral_route_snippet, generate_referral_validation_snippet.
  • Webhooks: generate_webhook_handler plus generate_webhook_event_router for fan-out + generate_mock_webhook_event to test each status.

Skills vs. MCP Tools

This repository provides two integration paths for AI agents:

FeatureMCP Server (Tools)Agent Skills (skills.sh)
Client RequirementsMCP-aware (GitHub Copilot, etc.)Any AI agent (Claude, GPT, etc.)
Dynamic Capabilities✅ Generate code, assess projects❌ Static instructions only
Connectivity Testing✅ Live API validation❌ Instructions for manual testing
Code Generation✅ Framework-specific templates✅ Copy-paste code examples
Documentation Access✅ Query Payram docs dynamically✅ Inline references to docs
Best ForInteractive development with CopilotAI chat interfaces, non-MCP environments

Recommended workflow with skills:

  1. Start with payram-setup to configure your server, API keys, and wallets
  2. Use payram-payment-integration or payram-crypto-payments for integration overview
  3. Follow payram-checkout-integration for payment flow implementation
  4. Add payram-webhook-integration for real-time event handling
  5. Use payram-payouts for outbound payments and affiliate tracking

Docs & Specs

  • Local references live under docs/:
    • docs/js-sdk.md – expanded guide for the TypeScript SDK.
    • docs/payram-external.yaml, docs/payram-webhook.yaml – OpenAPI specs.
    • docs/referrals.md – referral FAQs and workflows.
  • MCP doc tools (get_payram_doc_by_id, list_payram_docs) read files from docs/payram-docs-live/** via src/utils/markdownLoader.ts.
  • For future updates, run make fetch-docs to sync the latest documentation from docs.payram.com into docs/payram-docs-live/.

Development

CommandDescription
yarn devRun the MCP server with hot reload via tsx.
yarn buildCompile TypeScript to dist/.
yarn lint / yarn formatESLint + Prettier across the repo.
yarn testExecutes the Vitest suite (tests/health.test.ts).
make precommit-testRuns format → lint → test → build sequentially.

Project is TypeScript-first (ESM). Prettier config lives in .prettierrc.json; ESLint is configured via eslint.config.mjs. Smooth contributions follow the commit helper in Makefilemake commit.


Troubleshooting

  • Copilot doesn’t call the right tool: Check COPILOT-USE.md and ensure your MCP client loaded the server. Re-run "test payram" or "assess my project" to trigger the expected automation.
  • test_payram_connection fails with 401: Confirm .env uses the API-Key header, not Authorization. The tool echoes the missing fields when placeholders are detected.
  • Docs tool says a file is missing: Verify your local docs/payram-docs-live/ tree contains the requested markdown (get_payram_doc_by_id rejects paths with ..).
  • Server won’t start: Check .env for PAYRAM_BASE_URL/PAYRAM_API_KEY, ensure Node 18+, and run yarn install to grab the MCP SDK.

For anything else, inspect the structured logs emitted from src/utils/logger.ts (set LOG_LEVEL=debug) and open an issue/PR with reproduction details.

常见问题

Payram Helper MCP Server 是什么?

用于集成并校验自托管 Payram 部署的远程 MCP server,便于运维与兼容性验证。

相关 Skills

MCP构建

by anthropics

Universal
热门

聚焦高质量 MCP Server 开发,覆盖协议研究、工具设计、错误处理与传输选型,适合用 FastMCP 或 MCP SDK 对接外部 API、封装服务能力。

想让 LLM 稳定调用外部 API,就用 MCP构建:从 Python 到 Node 都有成熟指引,帮你更快做出高质量 MCP 服务器。

平台与服务
未扫描109.6k

Slack动图

by anthropics

Universal
热门

面向Slack的动图制作Skill,内置emoji/消息GIF的尺寸、帧率和色彩约束、校验与优化流程,适合把创意或上传图片快速做成可直接发送的Slack动画。

帮你快速做出适配 Slack 的动图,内置约束规则和校验工具,少踩上传与播放坑,做表情包和演示都更省心。

平台与服务
未扫描109.6k

接口设计评审

by alirezarezvani

Universal
热门

审查 REST API 设计是否符合行业规范,自动检查命名、HTTP 方法、状态码与文档覆盖,识别破坏性变更并给出设计评分,适合评审接口方案和版本迭代前把关。

做API和架构方案时,它能帮你提前揪出接口设计问题并对齐最佳实践,评审视角系统,团队协作更省心。

平台与服务
未扫描9.0k

相关 MCP Server

Slack 消息

编辑精选

by Anthropic

热门

Slack 是让 AI 助手直接读写你的 Slack 频道和消息的 MCP 服务器。

这个服务器解决了团队协作中需要 AI 实时获取 Slack 信息的痛点,特别适合开发团队让 Claude 帮忙汇总频道讨论或发送通知。不过,它目前只是参考实现,文档有限,不建议在生产环境直接使用——更适合开发者学习 MCP 如何集成第三方服务。

平台与服务
82.9k

by netdata

热门

io.github.netdata/mcp-server 是让 AI 助手实时监控服务器指标和日志的 MCP 服务器。

这个工具解决了运维人员需要手动检查系统状态的痛点,最适合 DevOps 团队让 Claude 自动分析性能数据。不过,它依赖 NetData 的现有部署,如果你没用过这个监控平台,得先花时间配置。

平台与服务
78.3k

by d4vinci

热门

Scrapling MCP Server 是专为现代网页设计的智能爬虫工具,支持绕过 Cloudflare 等反爬机制。

这个工具解决了爬取动态网页和反爬网站时的头疼问题,特别适合需要批量采集电商价格或新闻数据的开发者。不过,它依赖外部浏览器引擎,资源消耗较大,不适合轻量级任务。

平台与服务
34.5k

评论