-
Notifications
You must be signed in to change notification settings - Fork 44
refactor: tool registration #8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
* main: chore: add LICENSE and fix version (#6)
package.json
Outdated
"check:format": "npx prettier -c .", | ||
"reformat": "npx prettier -- --write ." | ||
"check:lint": "eslint .", | ||
"check:format": "npm run prettier -c .", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"check:format": "npm run prettier -c .", | |
"check:format": "prettier -c .", |
I think this should work
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
or simply rebase on main
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, left one question
import { Transport } from "@modelcontextprotocol/sdk/shared/transport.js"; | ||
import { z, ZodOptional, ZodString } from "zod"; | ||
import { ApiClient, AtlasCluster } from "./client.js"; | ||
import { ApiClient } from "./client.js"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should we perhaps move client and all API stuff to AtlasToolBase
? I think only atlas will use it
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
telemetry will use it I think, which won't be atlas
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hm... not super familiar with how we're going to be doing telemetry, so will leave it as is for now, but we can definitely move it over if it turns out it's not needed for telemetry.
* main: ci: publish to npm (#9) # Conflicts: # dist/client.js # dist/config.js # dist/index.js # dist/server.js # dist/state.js # package.json
@nirinchev make sure to delete dist folder on your branch before merging |
Refactor the way tools are defined and registered:
Additionally, it adds a few QOL improvements: