-
Notifications
You must be signed in to change notification settings - Fork 5
Add get_vistas tool for retrieving DevRev vista information #30
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
base: main
Are you sure you want to change the base?
Add get_vistas tool for retrieving DevRev vista information #30
Conversation
- Add get_vistas tool definition with input schema validation - Implement complete handler with error handling and API integration - Add vista namespace to search tool for comprehensive vista support - Clean up leftover commented code - Use existing make_devrev_request utility for consistent API calls This enables users to retrieve vista (filtered view) information by ID, expanding the MCP server's DevRev integration capabilities.
3360187
to
d62f2c5
Compare
@@ -8,6 +8,8 @@ | |||
import asyncio | |||
import os | |||
import requests | |||
import json |
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.
These imports are not used, remove them
@@ -30,6 +32,20 @@ async def handle_list_tools() -> list[types.Tool]: | |||
description="Fetch the current DevRev user details. When the user specifies 'me' in the query, this tool should be called to get the user details.", | |||
inputSchema={"type": "object", "properties": {}}, | |||
), | |||
types.Tool( | |||
name="get_vistas", | |||
description="Retrieve all available vistas (filtered views) from DevRev", |
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.
Fix this description, the tool fetches information about a vista in DevRev using its ID.
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.
Remove this file from this PR. This is an autogenerated file.
@@ -30,6 +32,20 @@ async def handle_list_tools() -> list[types.Tool]: | |||
description="Fetch the current DevRev user details. When the user specifies 'me' in the query, this tool should be called to get the user details.", | |||
inputSchema={"type": "object", "properties": {}}, | |||
), | |||
types.Tool( | |||
name="get_vistas", |
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.
name of the tool should be "get_vista"
Summary
Adds a new "get_vistas" tool to the DevRev MCP server that allows users to retrieve vista (filtered view) information by ID.
Changes Made
make_devrev_request
utility for consistency