-
Notifications
You must be signed in to change notification settings - Fork 0
feat: Implement MCP List Tools #9
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
Merged
Merged
Changes from all commits
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
c78072e
refactor: Update dev environment
edenreich 180bed1
feat: Add MCP tools support with listing functionality
edenreich f0b098a
chore: Enable GitHub Copilot and set authentication provider
edenreich 5c2da6c
docs: Add listing functionality for MCP tools in README
edenreich 82c2197
chore: Update src/lib.rs
edenreich 6967ed8
refactor: Add Forbidden error handling for MCP tools endpoint
edenreich File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
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
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
This file was deleted.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
# Custom Instructions for Copilot | ||
|
||
Today is May 26, 2025. | ||
|
||
- Always use context7 to check for the latest updates, features, or best practices of a library relevant to the task at hand. | ||
- Always prefer Table-Driven Testing: When writing tests. | ||
- Always use Early Returns: Favor early returns to simplify logic and avoid deep nesting with if-else structures. | ||
- Always prefer switch statements over if-else chains: Use switch statements for cleaner and more readable code when checking multiple conditions. | ||
- Always run `task analyse` to ensure code quality and catch potential issues before committing. | ||
- Always run `task lint` before committing code to ensure it adheres to the project's linting rules. | ||
- Always run `task test` before committing code to ensure all tests pass. | ||
- Always search for the simplest solution first before considering more complex alternatives. | ||
- Always prefer type safety over dynamic typing: Use strong typing and interfaces to ensure type safety and reduce runtime errors. | ||
- When working on MCP (Model Context Protocol) related tasks, always refer to the official MCP documentation and examples for guidance and ensure you run `task jrpc-mcp-schema-download` and `task generate` to keep the MCP Golang types up to date. | ||
- When possible code to an interface so it's easier to mock in tests. | ||
- When writing tests, each test case should have it's own isolated mock server mock dependecies so it's easier to understand and maintain. | ||
|
||
## Development Workflow | ||
|
||
### Configuration Changes | ||
|
||
When adding new configuration fields: | ||
|
||
1. Run `task oas-download` - OpenAPI is the source of truth - readonly file. | ||
2. If added new Schemas to openapi.yaml, update internal/openapi/schemas.go to include the new schemas | ||
3. Run `task lint` to ensure code quality | ||
4. Run `task analyse` to catch potential issues | ||
5. Run `task test` to ensure all tests pass | ||
6. Update the README.md file or any documentation files with the recently added implementation | ||
|
||
## Available Tools and MCPs | ||
|
||
- context7 - Helps by finding the latest updates, features, or best practices of a library relevant to the task at hand. | ||
|
||
## Related Repositories | ||
|
||
- [Inference Gateway](https://github.com/inference-gateway) | ||
- [Inference Gateway UI](https://github.com/inference-gateway/ui) | ||
- [Go SDK](https://github.com/inference-gateway/go-sdk) | ||
- [Rust SDK](https://github.com/inference-gateway/rust-sdk) | ||
- [TypeScript SDK](https://github.com/inference-gateway/typescript-sdk) | ||
- [Documentation](https://github.com/inference-gateway/docs) | ||
|
||
## MCP Useful links | ||
|
||
- [Introduction](https://modelcontextprotocol.io/introduction) | ||
- [Specification](https://modelcontextprotocol.io/specification) | ||
- [Examples](https://modelcontextprotocol.io/examples) | ||
- [Schema](https://raw.githubusercontent.com/modelcontextprotocol/modelcontextprotocol/refs/heads/main/schema/draft/schema.json) |
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
Oops, something went wrong.
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.
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.
[nitpick] Consider pinning the powerlevel10k repository to a specific commit or tag to prevent potential breakage from upstream changes. This would improve the long-term stability of the development environment.
Copilot uses AI. Check for mistakes.