Labsco
Hyeongseob91 logo

WRG MCP Server

from Hyeongseob91

A server providing tools for weapon recoil generation and visualization via HTTP endpoints.

πŸ”₯πŸ”₯βœ“ VerifiedFreeQuick setup

logo Weapon Recoil Generator – build your own recoil MCP

  • We released a versatile MCP server that lets FPS game developers generate and visualize weapon recoil patterns via simple API calls.
  • FPS κ²Œμž„ κ°œλ°œμžκ°€ κ°„λ‹¨ν•œ API 호좜만으둜 무기 λ°˜λ™ νŒ¨ν„΄μ„ μƒμ„±ν•˜κ³  μ‹œκ°ν™”ν•  수 μžˆλŠ” κ°•λ ₯ν•œ MCP μ„œλ²„λ₯Ό μΆœμ‹œν–ˆμŠ΅λ‹ˆλ‹€.

Development

Run the server locally with automatic reload: μžλ™ λ¦¬λ‘œλ“œ κΈ°λŠ₯을 켜고 λ‘œμ»¬μ—μ„œ μ„œλ²„λ₯Ό μ‹€ν–‰ν•©λ‹ˆλ‹€:

uvicorn main:app --reload --host 0.0.0.0 --port 8000

Key Features

  • Weapon Recoil Generation (WRG)

    • machinegun_recoil_points(shots: int)

      • Generates recoil trajectory data for a machine gun based on the number of shots.
      • 기관총 λ°œμ‚¬ νšŸμˆ˜μ— λ”°λ₯Έ λ°˜λ™ ꢀ적 데이터λ₯Ό μƒμ„±ν•©λ‹ˆλ‹€.
  • Weapon Recoil Generation (WRG)

    • pistol_recoil_points(shots: int)

      • Generates recoil trajectory data for a pistol based on the number of shots.
      • ꢌ총 λ°œμ‚¬ νšŸμˆ˜μ— λ”°λ₯Έ λ°˜λ™ ꢀ적 데이터λ₯Ό μƒμ„±ν•©λ‹ˆλ‹€.
  • Weapon Recoil Generation (WRG)

    • shotgun_recoil_points(shots: int)

      • Generates recoil trajectory data for a shotgun based on the number of shots.
      • 산탄총 λ°œμ‚¬ νšŸμˆ˜μ— λ”°λ₯Έ λ°˜λ™ ꢀ적 데이터λ₯Ό μƒμ„±ν•©λ‹ˆλ‹€.
  • Recoil Visualizer (RVZ)

    • plot_recoil_pattern(data: Tuple[List[float], List[float]])

      • Visualizes input recoil coordinate data as a 2D scatter plot.
      • μž…λ ₯된 λ°˜λ™ μ’Œν‘œ 데이터λ₯Ό 2D μ‚°μ λ„λ‘œ μ‹œκ°ν™”ν•©λ‹ˆλ‹€.
  • MCP Endpoints

    • /wrg/* – easy HTTP access to generate recoil data.
    • /rvz/* – instant HTTP access to visualize recoil patterns.
  • Remote & Local Deployment

    • Deploy the same API to both local machines and cloud environments (e.g., Smithery) using FastMCP.
    • FastMCPλ₯Ό μ‚¬μš©ν•˜μ—¬ 둜컬 및 ν΄λΌμš°λ“œ(예: Smithery) ν™˜κ²½μ— λ™μΌν•œ APIλ₯Ό λ°°ν¬ν•©λ‹ˆλ‹€.
  • API Key Authentication (Planned)

    • Upcoming support for API keys to control external access.
    • μ™ΈλΆ€ μ ‘κ·Ό μ œμ–΄λ₯Ό μœ„ν•œ API Key 인증 κΈ°λŠ₯을 κ³§ 지원할 μ˜ˆμ •μž…λ‹ˆλ‹€.

Expected Benefits

  1. Productivity Boost

    • No need to implement complex recoil algorithms yourself.
    • λ³΅μž‘ν•œ λ°˜λ™ μ•Œκ³ λ¦¬μ¦˜μ„ 직접 κ΅¬ν˜„ν•  ν•„μš”κ°€ μ—†μŠ΅λ‹ˆλ‹€.
    • Accelerates data validation and prototyping with built-in visualization tools.
    • λ‚΄μž₯된 μ‹œκ°ν™” λ„κ΅¬λ‘œ 데이터 검증 및 ν”„λ‘œν† νƒ€μž… 속도가 ν–₯μƒλ©λ‹ˆλ‹€.
  2. Enhanced Collaboration & Reusability

    • Unified /wrg and /rvz interfaces make it easy for team members to share and reuse modules.
    • ν†΅ν•©λœ /wrg 및 /rvz μΈν„°νŽ˜μ΄μŠ€λ‘œ νŒ€ κ°„ λͺ¨λ“ˆ 곡유 및 μž¬μ‚¬μš©μ΄ μš©μ΄ν•©λ‹ˆλ‹€.
    • Works seamlessly across backend, frontend, AI engineers, and game developers.
    • λ°±μ—”λ“œ, ν”„λ‘ νŠΈμ—”λ“œ, AI μ—”μ§€λ‹ˆμ–΄, κ²Œμž„ 개발자 κ°„ μ›ν™œν•˜κ²Œ μ—°λ™λ©λ‹ˆλ‹€.
  3. Flexible Deployment & Scaling

    • Test locally, then deploy to the cloud for on-demand scaling.
    • 둜컬 ν…ŒμŠ€νŠΈ ν›„ ν΄λΌμš°λ“œμ— λ°°ν¬ν•˜μ—¬ ν•„μš”μ— 따라 μ†μ‰½κ²Œ ν™•μž₯ν•  수 μžˆμŠ΅λ‹ˆλ‹€.
    • Integrates with CI/CD pipelines for automated deployment and version management.
    • CI/CD νŒŒμ΄ν”„λΌμΈκ³Ό μ—°λ™ν•˜μ—¬ μžλ™ 배포 및 버전 관리가 κ°€λŠ₯ν•©λ‹ˆλ‹€.
  4. Real-Time Feedback & Tuning

    • Instantly check recoil patterns via API calls during game balance adjustments.
    • κ²Œμž„ 밸런슀 μ‘°μ • μ‹œ API 호좜둜 μ¦‰μ‹œ λ°˜λ™ νŒ¨ν„΄μ„ 확인할 수 μžˆμŠ΅λ‹ˆλ‹€.
    • Data-driven decision making improves play-test efficiency.
    • 데이터 기반 μ˜μ‚¬κ²°μ •μœΌλ‘œ ν”Œλ ˆμ΄ ν…ŒμŠ€νŠΈ νš¨μœ¨μ„±μ΄ ν–₯μƒλ©λ‹ˆλ‹€.

Debugging

  • Since this server communicates over HTTP, use verbose logging and the built-in reload flag. For deeper inspection, attach a debugger to the Uvicorn process or review the console error outputs.
  • 이 μ„œλ²„λŠ” HTTP둜 ν†΅μ‹ ν•˜λ―€λ‘œ, μžμ„Έν•œ λ‘œκΉ…κ³Ό --reload ν”Œλž˜κ·Έλ₯Ό μ‚¬μš©ν•˜μ„Έμš”. 보닀 심측적인 검사λ₯Ό μœ„ν•΄ Uvicorn ν”„λ‘œμ„ΈμŠ€μ— 디버거λ₯Ό μ—°κ²°ν•˜κ±°λ‚˜ μ½˜μ†” 였λ₯˜ 좜λ ₯을 ν™•μΈν•˜λ©΄ λ©λ‹ˆλ‹€.