This repository was archived by the owner on Jan 19, 2026. It is now read-only.
feat: tools refactor - #54
Merged
Merged
Conversation
Contributor
There was a problem hiding this comment.
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.tsfile into organized modules undersrc/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 |
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This was referenced Sep 3, 2025
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 subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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.
This separates out tools from the server
index.tsfile 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)