check-gateway-identity

check-gateway-identity is a skill for Claude Code from mappedsky/seizu. It costs 45 tokens per session (305 once invoked), scanned A, original, Apache-2.0.

A skill that checks which upstream user and permission grant a per-user MCP gateway call used. MCP is a way for an assistant to call connected tools and services.

In plain words
What is it for?
Use it to verify the upstream username, OAuth client, token identifier, and token expiry for a gateway connection.
Why use it?
It confirms that the gateway used the requester's delegated identity rather than a shared account. It also reports whether the connection needs to be reconnected after an authorization failure.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter.

Good fit Use it to verify the upstream username, OAuth client, token identifier, and token expiry for a gateway connection.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/mappedsky/seizu/check-gateway-identity
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add mappedsky/seizu --skill check-gateway-identity
Clone the repo
git clone --depth 1 https://github.com/mappedsky/seizu

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for check-gateway-identity

README.md
[![agentmods](https://agentmods.dev/badge/skills/mappedsky/seizu/check-gateway-identity/github.svg)](https://agentmods.dev/skills/mappedsky/seizu/check-gateway-identity)
Your own site
<a href="https://agentmods.dev/skills/mappedsky/seizu/check-gateway-identity"><img src="https://agentmods.dev/badge/skills/mappedsky/seizu/check-gateway-identity/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for check-gateway-identity

Your own site · 80×15
<a href="https://agentmods.dev/skills/mappedsky/seizu/check-gateway-identity"><img src="https://agentmods.dev/badge/skills/mappedsky/seizu/check-gateway-identity.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 45 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 305 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00045 $0.00305
Opus 5.5 $0.00018 $0.00122
Sonnet 5.5 $0.00009 $0.00061
Haiku 4.5 $0.00005 $0.00030

Measured 2d ago against content hash ff5b564f2c06, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

check-gateway-identity scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.config/dev/seizu/plugins/external-mcp-checks/skills/check-gateway-identity/SKILL.md · 26 lines

What it actually says

Call ext__whoami__whoami once. It takes no arguments.

The result is JSON describing the call as the upstream server saw it:

  • route — which gateway route carried the call.
  • upstream_user — sub, email and preferred_username of the identity the upstream accepted. This is the answer to "who does the gateway say I am".
  • grant.client — the OAuth client the upstream token was issued to.
  • grant.jti_sha256 — a short digest identifying that token. Two calls showing the same digest used the same token; a different digest means it was refreshed.
  • grant.issued_at / grant.expires_at — Unix timestamps; give them as UTC times.

Report the upstream user, the client, the token digest and its expiry, in a few lines. Do not call the tool again to "confirm" unless the requester asks to compare tokens.

If the call fails with an authorization error, say that the whoami gateway needs to be connected or reconnected on Chat Connections, and stop. Never suggest another credential or a workaround.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 2d ago First seen · 26 lines · 45 tokens per session scan A ff5b564f2c06

Subscribe to this mod's changes

check-gateway-identity is a skill published in the GitHub repository mappedsky/seizu (5 stars, last pushed yesterday), licensed Apache-2.0. It adds 45 tokens to every session and 305 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-11-30.

Related

check-gateway-identity compared with skills from other repositories

check-gateway-identity next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
check-gateway-identitymappedsky/seizuSkill5yesterdayApache-2.0A45Claude Code
agent-crdt-synchronizerruvnet/rufloSkill83ktodayMITA25Claude Code
agent-topology-optimizerruvnet/rufloSkill83ktodayMITA21Claude Code
flow-nexus-platformruvnet/rufloSkill83ktodayMITA24Claude Code
agent-benchmark-suiteruvnet/rufloSkill83ktodayMITA18Claude Code
agent-performance-monitorruvnet/rufloSkill83ktodayMITA16Claude Code
agent-workflow-automationruvnet/rufloSkill83ktodayMITA21Claude Code