Skip to content

feat: add pcm_search_team tool - #6

Merged
mpicciolli merged 2 commits into
mainfrom
feat/add-search-team-tool
Jun 29, 2026
Merged

feat: add pcm_search_team tool#6
mpicciolli merged 2 commits into
mainfrom
feat/add-search-team-tool

Conversation

@mpicciolli

@mpicciolli mpicciolli commented Jun 29, 2026

Copy link
Copy Markdown
Collaborator

Summary

Adds a new pcm_search_team MCP tool that searches for teams by name in a Pro Cycling Manager .cdb save file, mirroring the existing pcm_search_cyclist tool.

  • Searches DYN_team with a case-insensitive partial match against both the full name (gene_sz_name) and the short name (gene_sz_shortname).
  • Returns up to 10 matching teams, each with id, name, shortName, resolved division (via STA_division), resolved country (via STA_country), evaluation and manager.
  • Division and country joins are LEFT JOIN, so teams with missing references still appear (those fields fall back to null), consistent with pcm_search_cyclist.

Implementation

  • New tool: src/tools/search-team.ts
  • Registered in src/tools/index.ts
  • Documented in README.md and AGENTS.md

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

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_team tool implementation that searches DYN_team by partial, case-insensitive match on full name and short name, returning up to 10 results with division/country resolution via LEFT 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.md and AGENTS.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.

@mpicciolli
mpicciolli merged commit fb5db93 into main Jun 29, 2026
3 checks passed
@mpicciolli
mpicciolli deleted the feat/add-search-team-tool branch June 29, 2026 13:00
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