AGS API

io.github.AccelByte由 GitHub 帳號 AccelByte 發布v2026.4.0更新於 Oct 25, 2026

Stateless MCP server for AccelByte Gaming Services APIs with OpenAPI integration

已驗證Streamable HTTP可網頁執行開發者工具資料與分析

概覽

AI 產生的概覽

託管的 MCP 伺服器,讓助理搜尋、檢視並呼叫 AccelByte Gaming Services API 操作,並把查詢結果繪製成圖表、表格與指標。

可以做什麼
依描述、標籤、HTTP 方法或服務搜尋 AGS API 操作,並取得指定操作的完整 schema,包括參數、請求與回應結構及驗證要求。使用已驗證的權杖執行 API 請求;寫入操作執行前會要求確認。檢視目前工作階段資訊:主體、命名空間、角色與權限、權杖類型與到期時間。將結果繪製成長條、折線、面積、散佈、直方、箱型、熱力、圓餅、環圈、瀑布、漏斗、儀表或狀態時間軸圖表,以及表格、指標與儀表,資料可來自內嵌資料或 Athena Facade 查詢 ID。使用工作流程資源與提示詞,包括 run-workflow 提示詞。
適用情境
適合在使用 AccelByte Gaming Services 時,讓助理在對話中查詢端點、檢視 schema 並呼叫 API,或把查詢結果轉成圖表與表格。主要對象是角色已被授予相關命名空間權限的工作室與遊戲管理員。
執行需求
需要你 AccelByte 環境上的遠端 MCP 端點:公有雲網址包含你的工作室命名空間,私有雲使用自有網域,可能需 AccelByte 支援開通。使用 OAuth 2.0(PKCE 與動態用戶端註冊)登入;不支援 DCR 或僅支援 stdio 的用戶端需透過 npx 使用 mcp-remote 橋接,需要 Node.js 18 以上版本。
安裝前請注意
登入後助理會取得你的 AccelByte 權限,工具呼叫會以你的角色執行並可能變更資料:寫入操作(POST、PUT、PATCH、DELETE)會在確認提示後執行。回傳 403 通常表示帳號缺少該操作權限。清除 mcp-remote 權杖快取會讓你登出所有使用它的 MCP 伺服器。安裝提示詞會要助理抓取並遵循遠端說明。

安裝

在 SourceWeft 中

  1. 開啟 儀表板中的 AGS API,將其新增到工作區。
  2. 為需要使用其工具的對話啟用該服務。

Web executable,透過 Streamable HTTP。 遠端服務在工作區中設定後即可從網頁執行環境執行。

其他 MCP 客戶端

參照 儲存庫 中的啟動說明。

README

AGS API MCP Server

A Model Context Protocol (MCP) server that gives AI assistants (VS Code Copilot, Cursor, Claude, Gemini, Antigravity) access to AccelByte Gaming Services (AGS) APIs through OpenAPI integration.

What It Does

  • Search AGS API operations by description, tags, method, or service
  • Describe specific operations — parameters, schemas, auth requirements
  • Execute API requests with your authenticated token
  • Render query results as charts, tables, and metrics (see Analytics & Visualization)

AccelByte hosts the AGS API MCP Server for you — you don't need to install or run anything locally. Just point your AI assistant at your environment's MCP URL and sign in.


Quick Install

Paste this into your AI coding assistant — it will fetch the install guide, ask you a couple of questions, and configure everything for you:

Install the AGS API MCP server for me. Fetch and follow the instructions athttps://raw.githubusercontent.com/AccelByte/ags-api-mcp-server/refs/heads/master/INSTALL.md

Works in VS Code Copilot, Cursor, Claude Code, Antigravity, and Gemini CLI.

Claude Desktop users: The simplest path is Settings → Connectors → Add custom connector (Name: ags-api, URL: your MCP URL) — no AI installer needed. See Claude Desktop below for the full instructions and the fallback for accounts where workspace policy blocks custom connectors.

If you do want to use the Quick Install prompt above, switch to the Code tab first (Chat and Cowork can't edit your config file).

[Claude Desktop — Code tab]

Prefer to do it yourself? See Manual Install below.


Manual Install

Step 1: Find Your MCP Server URL

The URL depends on which AGS edition you're on:

EditionURL format
Public Cloudhttps://{studio}.prod.gamingservices.accelbyte.io/mcp/{studio}
Private Cloudhttps://{domain}/mcp
  • Public Cloud customers receive a {studio} namespace at registration — that one value goes in twice, once as the subdomain and once as the path. Studio admins and game admins use the same URL; your assigned roles decide which namespaces you can reach, not the URL you connect to.
  • Private Cloud customers use their own environment domain, whatever it is — no namespace segment. You may need to coordinate with AccelByte support to enable the MCP endpoint.

"Shared Cloud" is the same thing as Public Cloud — older docs and support threads use that name.

Not sure which edition you're on? Check with your AccelByte administrator.

Step 2: Configure Your Client

The deployed server uses OAuth 2.0 with PKCE and Dynamic Client Registration (DCR). If your client supports DCR, you can connect to the URL directly. If not — or if your client only supports stdio transport — use mcp-remote as a bridge.

Need mcp-remote? It runs via npx. You need Node.js 18+ with npx available — verify with npx --version. Most installers (nodejs.org, Homebrew, nvm, official Windows installer) bundle npx via npm automatically, but minimal Linux distros sometimes ship Node without it; install npm from your package manager if that's the case. No global mcp-remote install required.

Substitute your URL from Step 1 wherever you see <URL> below.

Visual Studio Code (Copilot)

.vscode/mcp.json in your workspace (or user settings.json):

json
{  "servers": {    "ags-api": {      "type": "http",      "url": "<URL>"    }  }}

If you hit DCR errors, swap to: { "command": "npx", "args": ["-y", "mcp-remote", "<URL>"] }.

See the VS Code MCP documentation.

Cursor

.cursor/mcp.json in your workspace (or user settings):

json
{  "mcpServers": {    "ags-api": {      "type": "http",      "url": "<URL>"    }  }}

If you hit DCR errors, swap to: { "command": "npx", "args": ["-y", "mcp-remote", "<URL>"] }.

See the Cursor MCP documentation.

Claude Code
bash
claude mcp add --transport http ags-api <URL>

Fallback: claude mcp add ags-api -- npx -y mcp-remote <URL>.

See the Claude Code MCP documentation.

Antigravity

mcp_config.json in your project root:

json
{  "mcpServers": {    "ags-api": {      "type": "http",      "url": "<URL>"    }  }}

If you hit DCR errors, swap to: { "command": "npx", "args": ["-y", "mcp-remote", "<URL>"] }.

See the Antigravity MCP documentation.

Gemini CLI
bash
gemini mcp add --transport http ags-api <URL>

Fallback: gemini mcp add ags-api -- npx -y mcp-remote <URL>.

See the Gemini CLI MCP documentation.

Claude Desktop

Claude Desktop has two install paths. Pick the first one that works for your account:

Option A — Custom Connector (recommended for personal / Pro accounts)

  1. Open Settings → Connectors → Add custom connector (under the "Customize" area).
  2. Fill in:
    • Name: ags-api
    • Remote MCP server URL: your <URL> from Step 1
  3. Save. Claude Desktop handles OAuth (DCR + PKCE) natively — no config file edits, no mcp-remote.

Don't see "Add custom connector"? Some Team and Enterprise plans disable custom connectors via workspace policy. If the option is missing or greyed out, use Option B.

Option B — mcp-remote config file (fallback when custom connectors are blocked)

Edit claude_desktop_config.json:

  • macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
  • Windows: %APPDATA%\Claude\claude_desktop_config.json
json
{  "mcpServers": {    "ags-api": {      "command": "npx",      "args": ["-y", "mcp-remote", "<URL>"]    }  }}

Restart Claude Desktop after saving.

Step 3: Sign In

When your AI assistant first calls a tool, it will open a browser to AccelByte to complete OAuth. Approve the consent screen and you're connected.


Using the Tools

Once connected, your assistant has access to these tools:

get_token_info

Returns details about your authenticated session — subject, namespace, roles/permissions, token kind, and expiration.

"What's my current user information?"

search-apis

Search AGS operations by description, HTTP method, tags, or service.

"Find APIs for user management" · "Search for inventory endpoints"

describe-apis

Get the full schema for a specific operation — parameters, request/response shapes, auth requirements.

"What parameters does the createItem endpoint need?"

run-apis

Execute an API request. Write operations (POST/PUT/PATCH/DELETE) prompt for consent before running.

"Get my user profile" · "List all items in my inventory"

Analytics & Visualization

The server exposes 16 render tools for turning tabular data into charts, tables, and metrics inside MCP hosts that support app resources:

  • render_bar_chart, render_line_chart, render_area_chart, render_scatter_chart, render_histogram_chart, render_box_chart, render_heatmap_chart
  • render_pie_chart, render_donut_chart, render_waterfall_chart, render_funnel_chart, render_gauge_chart, render_state_timeline_chart
  • render_table, render_metric, render_meter

All render tools require a provider:

  • provider="facade" reads Athena Facade results by query_id + namespace
  • provider="direct" renders small inline datasets from data_columns + data_rows

The typical Athena Facade flow:

  1. Use run-apis to submit a query via POST /afs/v1/admin/namespaces/{namespace}/queries, preferably with wait_ms=0 if you plan to render by query_id
  2. Poll GET /afs/v1/admin/namespaces/{namespace}/queries/{id} until status="SUCCEEDED"
  3. Pass that query_id to a render_* tool with provider="facade"

If the submit returns 200 with inline rows on the fast path, render those rows directly with provider="direct".

See docs/ARCHITECTURE.md for the render-tool input matrix and the Athena Facade operation list.

Workflow Prompts

The server also provides workflow resources and prompts. Ask your assistant about available workflows or invoke the run-workflow prompt.

Troubleshooting

mcp-remote opens a browser every time

mcp-remote caches tokens under ~/.mcp-auth/. If it's re-authenticating on every launch, that directory may be unwritable or hold stale entries.

First, check permissions on ~/.mcp-auth/ (it needs to be writable by your user). If permissions look fine, the cache may be stale — back the directory up (e.g. mv ~/.mcp-auth ~/.mcp-auth.bak) and retry. Restore the backup if the move doesn't help. Note: removing the cache will sign you out of every MCP server you've authenticated with via mcp-remote, not just this one.

Native config fails with an OAuth or DCR error

Your client may not yet support Dynamic Client Registration. Switch to the mcp-remote fallback config shown above.

Sign-in succeeds but tool calls fail with 403

Your AccelByte user may not have permission for the operation you're calling. Check with your AGS administrator.

Authentication fails with "Invalid Request", "invalid client ID", or "client ID not found"

If your client connected before but now fails at sign-in — often with a generic IAM Invalid Request page mentioning an invalid redirect URI, client ID, or target path, or an "invalid client ID" / "client ID not found" error — the cached Dynamic Client Registration (DCR) is likely stale.

Clients that use DCR cache the IAM client ID they registered. If an administrator or an inactive-client cleanup job later removes that IAM client, the cached registration becomes invalid. The client keeps reusing the deleted client ID and authentication fails before a fresh DCR registration is ever attempted.

This is different from normal token expiry. When only your access token has expired, the client silently refreshes it or reauthorizes against the same valid client ID and you may not notice. A deleted client can't be refreshed — you have to clear the cached registration so the client runs DCR again and registers a new one.

Recovery — clear the cached authentication for the ags-api server, then sign in again:

  • Claude Code: run /mcp, select the ags-api server, and choose Clear authentication. Then reconnect (via /mcp or by restarting) to trigger a new sign-in.
  • Codex: run codex mcp logout ags-api, then codex mcp login ags-api.
  • mcp-remote clients: see mcp-remote opens a browser every time above for clearing the ~/.mcp-auth/ cache.

Clearing authentication only removes the local OAuth state (the cached registration and tokens) for this one server and requires you to sign in again — it creates a fresh DCR registration and restores access. You do not need to remove and re-add the MCP server, and you should not wipe all MCP credentials globally unless your client offers no way to clear a single server on its own.

Documentation

Looking for V1? See docs/v1/README.md (legacy; stdio + server-managed OAuth).

Contributions

This repository is published as-is. We don't accept external pull requests at this time. For bug reports and questions, please open an issue.

來源:README.md,提交 d7103f0

工具

0
SourceWeft 尚未讀取此伺服器的工具。

版本歷史

1
  1. v2026.4.0最新Sep 16, 2026

評分

已滿足適用檢查項的 85%

該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。

  • 近 30 天內可連通必需25 分
  • 已宣告認證方式必需10 分
  • 已列出工具必需15 分

    請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。

  • 描述必需15 分
  • 圖示10 分
  • 文件15 分
  • 授權條款10 分