feat: add pcm_search_team tool - #6
Merged
Merged
Conversation
There was a problem hiding this comment.
Pull request overview
This PR adds a new read-only MCP tool, pcm_search_team, to the PCM save inspection server, enabling team lookups by name in .cdb saves in a way that matches existing search tooling patterns.
Changes:
- Added
pcm_search_teamtool implementation that searchesDYN_teamby partial, case-insensitive match on full name and short name, returning up to 10 results with division/country resolution viaLEFT JOIN. - Registered the new tool in the tool registry so it is exposed by the MCP server.
- Updated public/tooling documentation to include the new tool in both
README.mdandAGENTS.md.
Reviewed changes
Copilot reviewed 4 out of 4 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
| src/tools/search-team.ts | Implements pcm_search_team query + output shaping using the existing withSaveDb pattern and read-only tool annotations. |
| src/tools/index.ts | Registers the new tool so it becomes available to MCP clients. |
| README.md | Documents the new tool in the public tool list. |
| AGENTS.md | Updates repo/tooling guidance to include the new tool in the tool inventory and layout list. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds a new
pcm_search_teamMCP tool that searches for teams by name in a Pro Cycling Manager.cdbsave file, mirroring the existingpcm_search_cyclisttool.DYN_teamwith a case-insensitive partial match against both the full name (gene_sz_name) and the short name (gene_sz_shortname).id,name,shortName, resolveddivision(viaSTA_division), resolvedcountry(viaSTA_country),evaluationandmanager.LEFT JOIN, so teams with missing references still appear (those fields fall back tonull), consistent withpcm_search_cyclist.Implementation
src/tools/search-team.tssrc/tools/index.tsREADME.mdandAGENTS.md