feat: add pcm_search_cyclist tool - #3
Merged
Conversation
mpicciolli
force-pushed
the
feat/search-cyclist-tool
branch
from
June 27, 2026 14:20
c9792dd to
0536375
Compare
There was a problem hiding this comment.
Pull request overview
Adds a new MCP tool, pcm_search_cyclist, to search cyclists in PCM .cdb saves by name and return key ratings plus resolved country name, with compatibility handling for older save schemas.
Changes:
- Introduces
pcm_search_cyclisttool backed by a SQL query overDYN_cyclist, returning up to 10 matches and handling missing columns viaPRAGMA table_info. - Registers the new tool in the tool registry.
- Updates
README.mdandAGENTS.mdto document the new tool.
Reviewed changes
Copilot reviewed 4 out of 4 changed files in this pull request and generated 2 comments.
| File | Description |
|---|---|
| src/tools/search-cyclist.ts | New tool implementation for cyclist search + schema compatibility handling. |
| src/tools/index.ts | Registers registerSearchCyclist so the new tool is available. |
| README.md | Documents pcm_search_cyclist in the tool list. |
| AGENTS.md | Documents the new tool in layout and tool table. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
…cture in registerSearchCyclist
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
pcm_search_cyclisttool to search for cyclists by first name and/or last name (case-insensitive partial match, up to 10 results)mediumMountainandcurrentAbilityare gracefully handled asnullon older saves that pre-date those columns (detected viaPRAGMA table_info)README.mdandAGENTS.mdto document the new tool