I previously tested gpu-mcp-server, which I maintain, through a direct Python MCP client. The server returned GPU readings and rejected invalid requests, but that run left goose out of the path. This time I connected the same server to goose and recorded how requests moved from a model proposal to a permission decision and a tool result.
The approval tests let me compare the same metrics request after denying it and after approving it. In the second run, I also captured the server connection and matched the approved calls to MCP requests and responses. The table shows what happened in each case and which records support the result.
| Case | Request | Recorded outcome | Evidence |
|---|---|---|---|
01 | List GPUs | Returned the idle inventory. | Session |
02 | Metrics, index 0 | I denied the proposal; no metrics returned. | Session |
03 | Metrics, index 0 | I approved the proposal; metrics returned. | Session |
04 | Metrics, Never Allow | goose declined; no confirmation event. | Session and saved rule |
05 | Metrics, no selector | Model asked for a selector; no tool attempt. | Session |
06 | Metrics, index 999 | Approved call returned a server-attributed error. | Session |
07 | Metrics, unknown UUID | Server-attributed error, then provider quota error. | Session |
08 | Workload preparation | Allocation and process checked outside goose. | Workload files |
09 | Shell nvidia-smi | Model explicitly refused; no tool attempt. | Session and MCP traffic |
10 | Active metrics and processes | Two approved calls matched to MCP exchanges. | Session, MCP traffic and workload files |
Case numbers follow the evidence folders. Each case is described with its trace below.
The setup I ran
I used Google Colab on November 20 and November 24, 2026, using UTC dates. Each run exposed one Tesla T4, with a different GPU UUID on each date. I kept the server revision and goose version fixed. The November 20 package tests passed with the race detector. The November 24 archive contains build output but no second test-suite log. [1]
| Recorded item | Value |
|---|---|
Hardware | One Tesla T4 per run; 15,360 MiB; different GPU UUID on each date |
Driver and build | NVIDIA driver 580.82.07; Go 1.25.0, linux/amd64 |
Server | gpu-mcp-server v0.1.0-62-g0579aea; pinned revision in Appendix A |
goose | 1.59.0; approve mode; stdio transport |
Model configuration | Provider google; gemini-3.8-flash; thinking_effort: low |
MCP revision | November 24 requests declare 2026-07-28; discovery lists it as supported |
Each goose case used a fresh session. I disabled the other configured extensions, including Developer, Extension Manager and code_execution. The saved summaries report tool deferral as disabled. The table records the provider and model identifiers from the sessions. [2, 3, 4]
The first run saved session exports and permission settings. For the second, I added a wrapper that copied both directions of the GPU server's stdio traffic and kept stderr separate. Cases 09 and 10 therefore have both client records and captured MCP traffic. The earlier denials and errors have client records only, so I cannot independently check what reached the server in those cases. Appendix A contains the wrapper and configuration details.
What goose discovered
The captured tools/list responses contained four GPU tools, with descriptions and input and output schemas. The names matched the registrations at the pinned server revision. [5]
| Server tool | Selector contract |
|---|---|
list_gpus | No selector; lists visible NVIDIA devices. |
get_gpu_metrics | Index or UUID required by the handler; UUID takes precedence. |
gpu_summary | No selector; aggregates readings for visible devices. |
get_gpu_processes | Optional index or UUID filter; returns process-level data. |
Discovery evidence: November 24, cases 09 and 10, mcp-out.jsonl line 3, MCP ID 2. The two tools/list responses match. The handler contract is documented separately in [5].
The session metadata listed these four names with a gpu__ prefix and also listed load_skill, even though the configuration summary marked skills disabled. None of the saved cases called load_skill. I recorded both lists because the server inventory alone would have missed that fifth advertised name.
The capture includes the schemas sent from the server to goose. I did not save the provider request containing the model's tool definitions, so I could compare the advertised names but could not check whether goose passed every schema and description through unchanged.
The metrics input schema had index and uuid properties, with no required or oneOf constraint. An empty argument object would pass this schema and be rejected by the handler for the missing selector. [5]

Figure 1. Request handling in this setup. Session records show model proposals and goose decisions; the November 24 stdio capture covers the GPU server connection.
Inventory and permission decisions
In case 01, I approved list_gpus with empty arguments. It returned one Tesla T4, 15,360 MiB of total memory, 447 MiB used and 0% GPU utilization.
Selected trace fields
Session 20261120_1 | call_1588986060593871931
gpu__list_gpus {} | allow_once | result at 03:00:03ZCase 01, November 20, cases/case-01/session.json. Result values are summarized above.
For cases 02 and 03, I used the same prompt in fresh sessions: “Use the gpu__get_gpu_metrics tool to retrieve detailed metrics for GPU index 0. Do not use any other tools.” I denied the first proposal and approved the second. Both proposed the same tool and arguments.
| Case and session | Decision and result | goose call ID |
|---|---|---|
02, 20261120_2 | 03:05:55Z deny_once | call_17056752877098602388 |
03, 20261120_3 | 03:09:51Z allow_once | call_10156713472061269197 |
November 20 session exports: cases/case-02/session.json and cases/case-03/session.json. Both proposals used gpu__get_gpu_metrics with {"index":0}.
Case 02 returned a decline message and no metrics. Case 03 returned 0% GPU utilization, 447 MiB used, 46°C and 14 W. Both sessions were in approve mode. The exports recorded deny_once for case 02 and allow_once for case 03. [6]

Figure 2. Case 02. I chose Deny. The export records deny_once and a decline payload with no GPU readings.
For case 04, I saved a Never Allow rule for gpu__get_gpu_metrics. The tool remained in the advertised list, and the model proposed it with index 0. goose returned the same decline message as in the manual-denial case, but the export contained no confirmation event. I used the saved permission rule and the session events to distinguish the two cases.
Selected trace fields
Session 20261120_5 | call_6361145403747405449
gpu__get_gpu_metrics {"index":0} | 03:24:06Z
No confirmation event | decline payload | isError: trueCase 04, November 20, cases/case-04/session.json and permission.yaml.
In the denied calls, toolResult.status was success while the nested isError was true. I checked the returned content and the nested error field before classifying each result. [7]
Clarification and invalid selectors
In case 05, I omitted the GPU selector and explicitly asked the model to request one if needed. It asked for an index or UUID and made no tool request. I recorded that as clarification with no attempted call. It did not exercise the server's missing-selector check.
Selected trace fields
Session 20261120_6 | reply at 03:29:37Z
Tool requests: 0 | model asks for an index or UUIDCase 05, November 20, cases/case-05/session.json. No tool-call ID is recorded.
In case 06, I requested index 999 and approved the proposed call. The returned payload contained isError: true and “handle 999: Invalid Argument”, with gpu-mcp-server identified in the result metadata.
Selected trace fields
Session 20261120_7 | call_10944101892888796962
gpu__get_gpu_metrics {"index":999} | allow_once
03:33:39Z | isError: true | handle 999: Invalid ArgumentCase 06, November 20, cases/case-06/session.json. The result metadata identifies gpu-mcp-server v0.1.0-62-g0579aea.
Case 07 used the nonexistent UUID GPU-00000000-0000-0000-0000-000000000000. I approved the call and received a server-attributed Not Found error. A provider quota error followed, so the session did not finish with a normal model explanation. I kept the tool error and the later provider failure as separate events.
Selected trace fields
Session 20261120_8 | call_8559372029617357084
03:39:35Z | allow_once | isError: true | Not Found
03:39:43Z | provider quota error after the tool responseCase 07, November 20, cases/case-07/session.json. Not Found is an excerpt of the returned UUID error.
Preparing the workload
Case 08 was a preparation check outside goose. Its metadata recorded a 512 MiB allocation, and the nvidia-smi snapshot showed a Python process and 0% GPU utilization. There was no saved goose session for this case. I kept these files as preparation records and ran the active integration as case 10.
Selected trace fields
2026-11-20T03:42:38Z | allocation recorded: 512 MiB
nvidia-smi: GPU 0% | device 633 MiB | process 630 MiB
No case-08 session export or MCP captureCase 08 preparation check, cases/case-08/workload-metadata.txt and nvidia-smi-active.txt.
A shell request that stopped with the model
For case 09, I asked goose to run nvidia-smi in a shell and told it not to substitute a GPU tool. The model explicitly said it could not run the command because no shell tool was available. The session contained no tool request or approval event.
The GPU stdio trace contained discovery and listing exchanges, with no tools/call request. I classified this as an explicit refusal without a tool attempt. It did not reach a goose permission decision or a server rejection.
Selected trace fields
Session 20261124_1 | refusal at 02:23:01Z
MCP ID 0: server/discover | ID 1: prompts/list
MCP ID 2: tools/list | tools/call requests: 0Case 09, November 24, cases/case-09/session.json and mcp-trace/mcp-in.jsonl and mcp-out.jsonl, lines 1 to 3.

Figure 3. Case 09 refusal. The answer omits load_skill from its description of the available tools. The session records no tool attempt.
The answer also said that only the GPU tools were exposed, overlooking load_skill in the session metadata. I used the recorded list when describing the available tools. The previous article's direct-client rejection of shell_exec remains a separate result.
Reading a live CUDA workload
For case 10, I started the saved PyTorch matrix-multiplication script outside goose. It created three 8192-by-8192 CUDA tensors and printed WORKLOAD READY. The script was configured to repeat synchronized matrix multiplications for up to 600 seconds. I asked for get_gpu_metrics and get_gpu_processes with index 0, then approved both proposals.
The metrics response reported 99% GPU utilization, 1,352 MiB used, 79°C and 69 W. The process response returned one Python compute process using 902 MiB. Its PID matched the workload log, the saved PID file and the nvidia-smi process row.
| Recorded field | Metrics | Processes |
|---|---|---|
goose session | 20261124_2 | 20261124_2 |
goose call ID | call_11691882682462886780 | call_11691882682462887815 |
MCP name | get_gpu_metrics | get_gpu_processes |
Arguments | {"index":0} | {"index":0} |
Operator approval | 02:26:01Z, allow_once | 02:26:07Z, allow_once |
MCP request / response ID | 3 / 3 | 4 / 4 |
Session result time | 02:26:07Z | 02:26:07Z |
Case 10, November 24, session.json and mcp-trace/mcp-in.jsonl and mcp-out.jsonl, lines 4 to 5. Both responses contain structuredContent and no isError field.
The requests carried agent-tool-call-request-id and agent-session-id metadata, which linked the goose calls to MCP IDs 3 and 4. The response IDs matched, and their structured content matched the session export. The table uses session timestamps. The stdio recorder did not timestamp individual messages, so it cannot provide dispatch latency.

Figure 4. Workload readiness and nvidia-smi capture before the goose queries. The PID matches the later MCP process result; the device memory readings differ.
The nvidia-smi sample preceded the session's recorded tool responses. Both readings attributed 902 MiB to the workload process, but their device-wide totals differed.
| Reading | Saved nvidia-smi | Later MCP response |
|---|---|---|
Recorded time | 02:24:41, runtime clock | 02:26:07Z, session event |
GPU utilization | 100% | 99% |
Device memory used | 905 MiB | 1,352 MiB |
Workload process memory | 902 MiB | 902 MiB |
Temperature / power | 47°C / 69 W | 79°C / 69 W |
November 24, cases/case-10/nvidia-smi-active.txt, workload.pid, workload.log and MCP responses 3 and 4. The nvidia-smi header has no timezone suffix; these were separate samples from the same runtime.
The 447 MiB difference matched the memory reading returned in the two idle November 20 cases. An earlier nvidia-smi sample from that runtime showed 0 MiB, about 45 minutes before case 01. Those were separate samples too.
At the pinned revision, gpu-mcp-server reads memory through NVML's GetMemoryInfo, which is the v1 call. [8] Reserved-memory accounting is one possible explanation. NVIDIA documents the v1 NVML memory structure's used field as including reserved and allocated memory; the v2 structure reports reserved memory separately. I did not capture the reserved value or take simultaneous readings, so I could not establish whether that accounting explains the difference. [9, 10]
The final model answer placed “20% utilization” beside 1,352 / 15,360 MiB. That wording was ambiguous: those capacity figures give about 8.8%. NVML's memory-utilization counter measures read/write activity during a sampling interval, separately from allocated capacity. I report memory used in MiB and keep the activity counter separate. [11]
What these records establish
The archives contain nine goose session exports and one workload preparation case. The table separates the observed results from the deployment controls I did not test.
| Layer | Observed or reviewed | Remaining limit |
|---|---|---|
Model | Clarification, explicit refusal and tool proposals observed. | One configured model; mostly tool-directed prompts. |
goose permissions | Manual denial, approval and a Never Allow decline recorded. | No independent wire capture of the earlier denials. |
GPU MCP server | Four tools discovered; invalid-selector errors recorded; active calls correlated over stdio. | No new empty-selector or unknown-tool invocation through goose. |
Identity and devices | The process could query one T4 through NVML. | Reduced OS privileges and device isolation were not tested. |
Container and network | Local stdio path used. | Container, Kubernetes and remote-transport controls were outside the run. |
The gpu_summary tool was discovered but not called. I did not send a literal empty-argument metrics request or an unregistered tool call through goose in these runs. I also did not test an adversarial prompt, another model, multi-GPU or MIG behavior, Kubernetes, a live HTTP deployment, or container isolation. The process-query result shows why a read-only tool still needs a data-access review: it returned a PID, executable path and GPU memory use.
For another deployment, I would first capture the complete advertised tool list, run one approved and one denied request with the recorder already in place, and compare the returned values with the model's answer. Host identity, accessible files, credentials, network access and device exposure would need their own tests before I called the deployment least-privileged.
Appendix A: reproduction details
The two ZIP archives listed below contain the setup records, exact prompts, and test results. Paths in the commands refer to the Colab runtime. A fresh environment needs provider credentials and a working NVIDIA driver.
Build and version records
git clone https://github.com/pmady/gpu-mcp-server.git
cd gpu-mcp-server
git checkout --detach 0579aeadba62e782fc5f7c6831b6da74963dfc87
make test
make build
./gpu-mcp-server --version
sha256sum ./gpu-mcp-server
goose --version
sha256sum /root/.local/bin/goosegoose release: v1.59.0 [2]. Source baseline for the goose references: 5d03ef6ed07ba59826328f1aff18d9a754ff8ad2. The saved binary hashes match between the two archives; the binaries themselves are not included.
| Recorded binary | SHA-256 |
|---|---|
gpu-mcp-server | 339f500d668abb59c294b0079656697af4b5ba6347a8d7a138264f5e00d3127c |
goose | 4ee4e39acff02e725e6959a71b5f4d91da9e8c0bd7b95bc2dce4a753abbecede |
The November 24 extension
This fragment reconstructs the extension fields and approve mode from the saved summary and session snapshots. The summaries report tool deferral as disabled, but the original config.yaml was not saved. I cannot tell whether GOOSE_TOOL_DEFERRAL was absent or explicitly set. For reproduction, leave that key unset to use the documented default. [3]
GOOSE_MODE: approve
extensions:
gpu:
name: gpu
type: stdio
enabled: true
cmd: /content/aaif-article3/gpu-wrapper.sh
args: []
envs: {}
env_keys: []
timeout: 60Disabled entries in the saved summary: analyze, apps, chatrecall, code_execution, developer, extensionmanager, scheduler, skills, summon, summarize, todo and tom. The session metadata still advertised load_skill.
Case 04 saved gpu__get_gpu_metrics under user.never_allow in permission.yaml. The subsequent snapshot moved it to user.ask_before and cleared never_allow. Cases 02 and 03 have approve-mode decisions but no saved per-tool permission snapshot. [6]
The recorded stdio wrapper
On November 20, goose launched the binary directly. On November 24, it launched this wrapper. It set the Colab NVIDIA library path and created a separate trace directory for each server process. In a fresh runtime, first create the parent directory:
mkdir -p /content/aaif-article3/tracesSave the following as /content/aaif-article3/gpu-wrapper.sh:
#!/bin/bash
set -o pipefail
umask 077
export LD_LIBRARY_PATH="/usr/lib64-nvidia:${LD_LIBRARY_PATH:-}"
TRACE_DIR=$(mktemp -d /content/aaif-article3/traces/server-XXXXXXXX)
date -u +"%Y-%m-%dT%H:%M:%SZ" > "$TRACE_DIR/start-time.txt"
tee "$TRACE_DIR/mcp-in.jsonl" |
/content/gpu-mcp-server/gpu-mcp-server 2>"$TRACE_DIR/mcp-stderr.log" |
tee "$TRACE_DIR/mcp-out.jsonl"Make the wrapper executable before starting the configured extension:
chmod +x /content/aaif-article3/gpu-wrapper.shThe recorder saves a start timestamp for each process. Individual protocol messages have no timestamps.
The extension envs parser in goose v1.59.0 filters LD_LIBRARY_PATH. The November 20 direct launch still found NVML with empty envs. I set the path explicitly in the November 24 wrapper, but these runs do not show whether that setting was necessary. Both November 24 case logs record NVML initialization. [12]
Workload and records
The exact active-workload script is cases/case-10/gpu_workload.py. Its log records WORKLOAD READY and 776.125 MiB allocated, but no completion event. The evidence does not establish that the full configured 600 seconds completed.
The session exports supply the event timestamps and client outcomes [13]. Cases 09 and 10 also have raw GPU stdio copies. This recorder covers the GPU subprocess, not every execution path on the host.
Evidence archives
The evidence archives are available in the gpu-mcp-server repository. Paths below are relative to aaif-article3/ inside each ZIP. Case numbers follow the saved folders.
| Archive | Contents |
|---|---|
aaif-article3-evidence-updated.zip | November 20: cases/case-01/ through cases/case-07/ contain session exports. Also cases/case-04/permission.yaml, cases/case-08/, cases/permission-comparison.json and setup/. |
aaif-article3-evidence-nov24.zip | November 24: cases/case-09/ and cases/case-10/ contain session exports and mcp-trace/. Case 10 also has workload and nvidia-smi files. Other files: gpu-wrapper.sh, setup/ and traces/. |
The November 24 traces/ directory retains copies of the two case captures and two preflight checks using protocol 2025-03-26. One preflight returned an initialize response; the other output file is empty. The November 20 permission-comparison.json derives from cases 02 and 03.
Session 20261120_4 is absent from the archives. I have not assigned it a result or included it in the case count.
aaif-article3-evidence-updated.zip
SHA-256 1f987f6be8286196d5624fbb72d8edb4e8664b045497792870304e682ca5e971
aaif-article3-evidence-nov24.zip
SHA-256 22c690f6f6fdcdefbb4ccfec92e8f67a1490fd6ed8fefaec3645cb9a9a18c403
Screenshots are original captures. Trace blocks select fields from the saved records. The archives retain complete prompts, identifiers and payloads.
References
[1] gpu-mcp-server build and test targets
https://github.com/pmady/gpu-mcp-server/blob/0579aeadba62e782fc5f7c6831b6da74963dfc87/Makefile
[2] goose v1.59.0 release
https://github.com/aaif-goose/goose/releases/tag/v1.59.0
[3] goose configuration reference
[4] Extension Manager guide
https://goose-docs.ai/docs/mcp/extension-manager-mcp/
[5] gpu-mcp-server tool definitions and handlers
[6] goose tool permissions
[7] MCP tools specification revision 2026-07-28
https://modelcontextprotocol.io/specification/2026-07-28/server/tools
[8] gpu-mcp-server NVML memory queries
https://github.com/pmady/gpu-mcp-server/blob/0579aeadba62e782fc5f7c6831b6da74963dfc87/gpu/nvml.go
[9] NVIDIA NVML v1 memory accounting
https://docs.nvidia.com/deploy/nvml-api/latest/api/structnvmlMemory__t.html
[10] NVIDIA NVML v2 memory accounting
https://docs.nvidia.com/deploy/nvml-api/latest/api/structnvmlMemory__v2__t.html
[11] NVIDIA NVML utilization structure
https://docs.nvidia.com/deploy/nvml-api/latest/api/structnvmlUtilization__t.html
[12] goose extension configuration and environment filtering
[13] goose logging and session records
Share
Author

Pavan Madduri
View All PostsPavan Madduri is a Senior Cloud Platform Engineer at W.W. Grainger, Inc., working on Kubernetes, GPU and AI infrastructure, observability, and agent automation. He maintains gpu-mcp-server, is a CNCF Golden Kubestronaut, and is a Tech Lead for CNCF TAG Workloads Foundation.



