feat: implement code mode#1
Conversation
Summary of ChangesHello @mKeRix, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed! This pull request establishes the core framework for 'toolscript', a powerful new system designed to bridge TypeScript code with Model Context Protocol (MCP) tools. It provides a robust CLI for managing a central gateway, which aggregates MCP servers and dynamically generates type-safe client code. The execution environment is securely sandboxed using Deno, and seamless integration with Claude Code is achieved through dedicated plugin hooks and skills. This foundational work lays the groundwork for highly interactive and secure programmatic interaction with MCP services. Highlights
Using Gemini Code AssistThe full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips. Invoking Gemini You can request assistance from Gemini at any point by creating a comment using either
Customization To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a Limitations & Feedback Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for Github and other Google products, sign up here. You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension. Footnotes
|
There was a problem hiding this comment.
Code Review
This pull request lays a very solid foundation for toolscript. The architecture is well-thought-out, with clear separation of concerns between the CLI, gateway, execution sandbox, and type generation. The use of Deno's features like the permission model for sandboxing and native tooling is excellent. The code is generally of high quality, with good practices like strict TypeScript, custom error types, and a robust configuration loader. The testing strategy is particularly impressive, with a comprehensive suite of unit, integration, and end-to-end tests.
My review includes a few suggestions for improvement, mainly around robustness and efficiency. For instance, I've suggested removing a Python dependency from a shell script in favor of a Deno-native solution, improving resource cleanup in the sandbox, and making a CLI command more efficient by adding server-side filtering.
One minor point on project maintenance: the deno.lock file appears to contain some outdated entries. It might be beneficial to run deno cache --reload and commit the updated lock file to ensure it only contains currently used dependencies.
Overall, this is an excellent start for the project.
af8a1c6 to
d5bcfa9
Compare
Welcome to Codecov 🎉Once you merge this PR into your default branch, you're all set! Codecov will compare coverage reports and display results in all future pull requests. Thanks for integrating Codecov - We've got you covered ☂️ |
08858ac to
2d440b1
Compare
# 1.0.0 (2025-12-01) ### Features * add config merging ([#5](#5)) ([4d58cb7](4d58cb7)) * add semantic tool search ([#2](#2)) ([cac523b](cac523b)) * allow filtering exposed tools ([#4](#4)) ([bd1d64c](bd1d64c)) * implement code mode ([#1](#1)) ([b3c4646](b3c4646)) * initial commit ([5477138](5477138)) * support oauth2 protected mcp servers ([#3](#3)) ([f5408d1](f5408d1))
# 1.0.0 (2025-12-01) ### Features * add config merging ([#5](#5)) ([4d58cb7](4d58cb7)) * add semantic tool search ([#2](#2)) ([cac523b](cac523b)) * allow filtering exposed tools ([#4](#4)) ([bd1d64c](bd1d64c)) * implement code mode ([#1](#1)) ([b3c4646](b3c4646)) * initial commit ([5477138](5477138)) * support oauth2 protected mcp servers ([#3](#3)) ([f5408d1](f5408d1))
|
🎉 This PR is included in version 1.0.0 🎉 The release is available on: Your semantic-release bot 📦🚀 |
This implements the base architecture of toolscript - the basic commands and scaffolding needed to use MCP tools as "toolscript" (aka code mode).