Commit 44b24ed
authored
fix: restore method-style log prefix in listMCPItems (#3471)
The generic `listMCPItems` helper introduced a log prefix format change
from `listTools:` to `list tools:` (space-separated), breaking
grep/alert compatibility with existing log consumers.
- Removed the space in the format string to produce `list%s:` instead of
`list %s:`, consistent with `paginateAll`'s existing log format on the
same code path
> [!WARNING]
>
> <details>
> <summary>Firewall rules blocked me from connecting to one or more
addresses (expand for details)</summary>
>
> #### I tried to connect to the following addresses, but was blocked by
firewall rules:
>
> - `example.com`
> - Triggering command: `/tmp/go-build558144745/b514/launcher.test
/tmp/go-build558144745/b514/launcher.test
-test.testlogfile=/tmp/go-build558144745/b514/testlog.txt
-test.paniconexit0 -test.timeout=10m0s -o .cfg AkSVOkciX x_amd64/vet -p
mime -lang=go1.25 x_amd64/vet .cfg�� 7174774/b400/_pkg_.a
64/src/internal/sysinfo/cpuinfo_linux.go x_amd64/vet
/tmp/go-build114/usr/libexec/docker/cli-plugins/docker-compose
t/transform x86_64-linux-gnu x_amd64/vet` (dns block)
> - `invalid-host-that-does-not-exist-12345.com`
> - Triggering command: `/tmp/go-build558144745/b496/config.test
/tmp/go-build558144745/b496/config.test
-test.testlogfile=/tmp/go-build558144745/b496/testlog.txt
-test.paniconexit0 -test.timeout=10m0s
/tmp/go-build558144745/b385/vet.cfg 5.0/deviceauth.go 5.0/oauth2.go
x_amd64/vet --gdwarf-5 --64 -o x_amd64/vet 7174�� g_.a
ache/go/1.25.8/x64/src/log/slog/internal/buffer/-nolocalimports
x_amd64/vet --gdwarf-5 go-sdk/auth -o x_amd64/vet` (dns block)
> - `nonexistent.local`
> - Triggering command: `/tmp/go-build558144745/b514/launcher.test
/tmp/go-build558144745/b514/launcher.test
-test.testlogfile=/tmp/go-build558144745/b514/testlog.txt
-test.paniconexit0 -test.timeout=10m0s -o .cfg AkSVOkciX x_amd64/vet -p
mime -lang=go1.25 x_amd64/vet .cfg�� 7174774/b400/_pkg_.a
64/src/internal/sysinfo/cpuinfo_linux.go x_amd64/vet
/tmp/go-build114/usr/libexec/docker/cli-plugins/docker-compose
t/transform x86_64-linux-gnu x_amd64/vet` (dns block)
> - `slow.example.com`
> - Triggering command: `/tmp/go-build558144745/b514/launcher.test
/tmp/go-build558144745/b514/launcher.test
-test.testlogfile=/tmp/go-build558144745/b514/testlog.txt
-test.paniconexit0 -test.timeout=10m0s -o .cfg AkSVOkciX x_amd64/vet -p
mime -lang=go1.25 x_amd64/vet .cfg�� 7174774/b400/_pkg_.a
64/src/internal/sysinfo/cpuinfo_linux.go x_amd64/vet
/tmp/go-build114/usr/libexec/docker/cli-plugins/docker-compose
t/transform x86_64-linux-gnu x_amd64/vet` (dns block)
> - `this-host-does-not-exist-12345.com`
> - Triggering command: `/tmp/go-build558144745/b523/mcp.test
/tmp/go-build558144745/b523/mcp.test
-test.testlogfile=/tmp/go-build558144745/b523/testlog.txt
-test.paniconexit0 -test.timeout=10m0s -I .cfg
olang.org/grpc@v1.80.0/balancer_wrapper.go x_amd64/vet --gdwarf-5
g/grpc/internal/info -o x_amd64/vet .cfg�� mQkz/1HfPzv0pEfa2EMuomQkz
-trimpath x_amd64/vet -p 7174774/b468/ -lang=go1.16 x_amd64/vet` (dns
block)
>
> If you need me to access, download, or install something from one of
these locations, you can either:
>
> - Configure [Actions setup
steps](https://gh.io/copilot/actions-setup-steps) to set up my
environment, which run before the firewall is enabled
> - Add the appropriate URLs or hosts to the custom allowlist in this
repository's [Copilot coding agent
settings](https://github.com/github/gh-aw-mcpg/settings/copilot/coding_agent)
(admins only)
>
> </details>1 file changed
Lines changed: 52 additions & 40 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
582 | 582 | | |
583 | 583 | | |
584 | 584 | | |
585 | | - | |
| 585 | + | |
| 586 | + | |
| 587 | + | |
| 588 | + | |
| 589 | + | |
| 590 | + | |
| 591 | + | |
| 592 | + | |
| 593 | + | |
| 594 | + | |
586 | 595 | | |
587 | 596 | | |
588 | 597 | | |
589 | | - | |
590 | | - | |
591 | | - | |
592 | | - | |
593 | | - | |
594 | | - | |
595 | | - | |
596 | | - | |
| 598 | + | |
| 599 | + | |
597 | 600 | | |
598 | 601 | | |
599 | 602 | | |
600 | | - | |
| 603 | + | |
| 604 | + | |
| 605 | + | |
| 606 | + | |
| 607 | + | |
| 608 | + | |
| 609 | + | |
| 610 | + | |
| 611 | + | |
| 612 | + | |
| 613 | + | |
| 614 | + | |
| 615 | + | |
| 616 | + | |
| 617 | + | |
| 618 | + | |
601 | 619 | | |
602 | 620 | | |
603 | 621 | | |
| |||
616 | 634 | | |
617 | 635 | | |
618 | 636 | | |
619 | | - | |
620 | | - | |
621 | | - | |
622 | | - | |
623 | | - | |
624 | | - | |
625 | | - | |
626 | | - | |
627 | | - | |
628 | | - | |
629 | | - | |
630 | | - | |
631 | | - | |
632 | | - | |
633 | | - | |
| 637 | + | |
| 638 | + | |
| 639 | + | |
| 640 | + | |
| 641 | + | |
| 642 | + | |
| 643 | + | |
| 644 | + | |
| 645 | + | |
| 646 | + | |
| 647 | + | |
| 648 | + | |
634 | 649 | | |
635 | 650 | | |
636 | 651 | | |
| |||
646 | 661 | | |
647 | 662 | | |
648 | 663 | | |
649 | | - | |
650 | | - | |
651 | | - | |
652 | | - | |
653 | | - | |
654 | | - | |
655 | | - | |
656 | | - | |
657 | | - | |
658 | | - | |
659 | | - | |
660 | | - | |
661 | | - | |
662 | | - | |
663 | | - | |
| 664 | + | |
| 665 | + | |
| 666 | + | |
| 667 | + | |
| 668 | + | |
| 669 | + | |
| 670 | + | |
| 671 | + | |
| 672 | + | |
| 673 | + | |
| 674 | + | |
| 675 | + | |
664 | 676 | | |
665 | 677 | | |
666 | 678 | | |
| |||
0 commit comments