mcp-sap-gui: Command for Claude Code

.claude/commands/sap-explore.md

sap-explore is a command for Claude Code from kts982/mcp-sap-gui. It costs 0 tokens per session (378 once invoked), scanned A, original, MIT.

A command for inspecting the screen currently open in SAP, an enterprise business application. It reports the transaction, screen contents, controls, tables, trees, buttons, and any open popup.

In plain words
What is it for?
Use it to identify the current SAP transaction and screen, inspect available controls, read visible table or tree data, and summarize the screen state.
Why use it?
It removes the need to manually describe or inspect a complex SAP screen. It also helps reveal when a popup or table changes what is currently visible.

Command for Claude Code

Written for Claude Code: installed under .claude/.

This is kts982/mcp-sap-gui's own configuration. It tells Claude Code how to work on mcp-sap-gui itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything mcp-sap-gui configures →

Reuse

Borrowing it

Nothing to install: this file belongs to kts982/mcp-sap-gui. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/kts982/mcp-sap-gui/master/.claude/commands/sap-explore.md
Clone the repo
git clone --depth 1 https://github.com/kts982/mcp-sap-gui

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 sap-explore

README.md
[![agentmods](https://agentmods.dev/badge/commands/kts982/mcp-sap-gui/sap-explore/github.svg)](https://agentmods.dev/commands/kts982/mcp-sap-gui/sap-explore)
Your own site
<a href="https://agentmods.dev/commands/kts982/mcp-sap-gui/sap-explore"><img src="https://agentmods.dev/badge/commands/kts982/mcp-sap-gui/sap-explore/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 sap-explore

Your own site · 80×15
<a href="https://agentmods.dev/commands/kts982/mcp-sap-gui/sap-explore"><img src="https://agentmods.dev/badge/commands/kts982/mcp-sap-gui/sap-explore.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 0 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 378 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.00000 $0.00378
Opus 5.5 $0.00000 $0.00151
Sonnet 5.5 $0.00000 $0.00076
Haiku 4.5 $0.00000 $0.00038

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

Security

Grade A, and why

sap-explore 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 2mo 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.

.claude/commands/sap-explore.md · 26 lines

What it actually says

Explore the current SAP screen and report what you find.

Steps:

  1. Connect to the existing SAP session using sap_connect_existing
  2. Get session info with sap_get_session_info to know where we are
  3. Get screen info with sap_get_screen_info — check active_window in the response:
    • If wnd[0]: normal screen, continue with step 4
    • If wnd[1] or higher: a popup is open — use sap_get_popup_window for full details and report it first
  4. Discover all screen elements with sap_get_screen_elements on the active window's user area
  5. Get available toolbar buttons with sap_get_toolbar_buttons
  6. If the screen contains a table or grid (look for element types containing GuiGridView or GuiTableControl):
    • Read the table data with sap_read_table (limit to 20 rows)
    • Note the table_type in the response
    • If ALV: also get the ALV toolbar buttons with sap_get_alv_toolbar
    • If TableControl: note the scroll position and total rows
  7. If the screen contains a tree control, read it with sap_read_tree (limit to 50 nodes)

Present a clear summary:

  • Transaction: current transaction code and screen number
  • Screen Title: what this screen is for
  • Status: any status bar messages
  • Input Fields: list changeable fields with their current values and labels
  • Tables/Grids: column names, row counts, and first few rows of data
  • Available Actions: toolbar buttons, function key shortcuts
  • Suggested Next Steps: what the user might want to do on this screen
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. 2mo ago First seen · 26 lines · 0 tokens per session scan A 0617c3ebad7c

Subscribe to this mod's changes

sap-explore is a command published in the GitHub repository kts982/mcp-sap-gui (41 stars, last pushed yesterday), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 378 tokens. 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-08-30.