Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

MCP server: per-merchant authorization window (maxTimeoutSeconds)

Đã đóng
#15 3 bình luận 0 reaction 0 người được giao Xem trên GitHub

@Priyadharshan2003 đang làm issue này rồi.

Từ ngày 7/10/2026.

  • #19 của @Priyadharshan2003 — đã đóng, không merge

Đánh giá

Độ khó
3/5
Thời gian dự kiến
1-2 ngày
Mức phù hợp với người mới
56/100
Loại issue
Tính năng
Độ rõ ràng
Đặc tả rõ ràng
Mức độ hoạt động
Đình trệ
Công nghệ
typescript
Lĩnh vực
api, backend

Hướng nghiên cứu

Start with integrations/mcp/src/config.ts and the existing configuration tests, then trace how the MCP server applies payment timeout bounds. Add coverage for the accepted and rejected maxTimeoutSeconds range and for a 3600-second 402 succeeding only for the configured merchant. Document the option in the MCP README; done when those tests pass and the README describes the setting.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

enhancement good first issue

Why

The SDK refuses 402s whose maxTimeoutSeconds is outside policy.timeoutBounds (default 10–300 s). Some merchants ask for longer windows: OneSource asks for 3600 s. SDK users can set timeoutBounds (see the OneSource guide), but the MCP server has no setting for it, so MCP users can't pay OneSource.

What

  • integrations/mcp/src/config.ts: optional maxTimeoutSeconds per merchant (integer, 10–86400).
  • The server applies it only to that merchant; others keep the default bounds.
  • Document it in the MCP README.

Acceptance

  • Config tests: accepted range, rejected out of range.
  • A test where a 3600 s 402 is paid for the configured merchant and refused for another.
Ngôn ngữ chính
TypeScript
Star
0
Fork
0
Merge trung bình
3 giờ 51 phút
Pull request đã merge (30 ngày)
3

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của DeepFirstHQ/deepfirstsearch

Tất cả issue của DeepFirstHQ/deepfirstsearch

Issue tương tự

Thêm issue về TypeScript

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.