Skip to content

feat: add pcm_search_cyclist tool - #3

Merged
mpicciolli merged 5 commits into
mainfrom
feat/search-cyclist-tool
Jun 27, 2026
Merged

feat: add pcm_search_cyclist tool#3
mpicciolli merged 5 commits into
mainfrom
feat/search-cyclist-tool

Conversation

@mpicciolli

@mpicciolli mpicciolli commented Jun 27, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • Adds pcm_search_cyclist tool to search for cyclists by first name and/or last name (case-insensitive partial match, up to 10 results)
  • Returns all ratings (plain, mountain, medium mountain, downhilling, cobble, time trial, prologue, sprint, acceleration, endurance, resistance, recuperation, hill, baroudeur, current ability) and the resolved country name
  • mediumMountain and currentAbility are gracefully handled as null on older saves that pre-date those columns (detected via PRAGMA table_info)
  • Updates README.md and AGENTS.md to document the new tool

@mpicciolli
mpicciolli requested a review from Copilot June 27, 2026 14:19

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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_cyclist tool backed by a SQL query over DYN_cyclist, returning up to 10 matches and handling missing columns via PRAGMA table_info.
  • Registers the new tool in the tool registry.
  • Updates README.md and AGENTS.md to 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.

Comment thread src/tools/search-cyclist.ts
Comment thread src/tools/search-cyclist.ts Outdated
mpicciolli and others added 2 commits June 27, 2026 10:25
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
@mpicciolli
mpicciolli merged commit a2ee15c into main Jun 27, 2026
2 checks passed
@mpicciolli
mpicciolli deleted the feat/search-cyclist-tool branch June 27, 2026 14:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants