Skip to content
This repository was archived by the owner on Jan 19, 2026. It is now read-only.

feat: tools refactor - #54

Merged
joshsny merged 4 commits into
mainfrom
tools-refactor
Jul 22, 2025
Merged

feat: tools refactor#54
joshsny merged 4 commits into
mainfrom
tools-refactor

Conversation

@joshsny

@joshsny joshsny commented Jul 22, 2025

Copy link
Copy Markdown
Contributor

This separates out tools from the server index.ts file so that tools can be added more easily and can be exported elsewhere other than the main server file (e.g. for exports for other SDKs)

Copilot AI review requested due to automatic review settings July 22, 2025 12:40

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

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 refactors the tools architecture by extracting tool definitions from the main server file into a modular structure. This improves maintainability and enables tools to be imported and used in other contexts like different SDKs.

  • Extracted all tool implementations from the main index.ts file into organized modules under src/tools/
  • Created shared type definitions for tools, context, and state
  • Established a centralized tool registry through src/tools/index.ts

Reviewed Changes

Copilot reviewed 31 out of 31 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
tests/api/client.test.ts Updated import to remove unused api type reference
src/tools/types.ts Defines shared types for tools, context, and state
src/tools//‌.ts Individual tool implementations organized by feature area
src/tools/index.ts Central registry that exports all available tools
src/index.ts Simplified main server file that imports and registers tools

Comment thread src/tools/insights/create.ts Outdated
@joshsny
joshsny requested a review from jonathanlab July 22, 2025 12:54
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

@jonathanlab jonathanlab left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Great!

Comment thread src/tools/dashboards/addInsight.ts
@joshsny
joshsny merged commit ff0c867 into main Jul 22, 2025
4 checks passed
@joshsny
joshsny deleted the tools-refactor branch July 22, 2025 13:32
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants