Skip to content

Feature: Add get_call_transcript Tool #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

Open
wants to merge 5 commits into
base: main
Choose a base branch
from

Conversation

cassius66
Copy link

This pull request introduces a new tool, get_call_transcript, to the Vapi MCP server. This tool allows users to retrieve the full transcript.

The existing get_call tool only returns basic metadata about a call, omitting the rich conversational data that is crucial for analyzing and improving AI assistant prompts.

Implementation

The implementation follows the existing architecture of the MCP server to ensure consistency and maintainability:

  1. Schema Definition (src/schemas/index.ts):

    • A new CallTranscriptOutputSchema was created to define the shape of the detailed call data.
    • A GetCallTranscriptInputSchema was added, reusing the existing GetCallInputSchema.
  2. Transformer Function (src/transformers/index.ts):

    • A new transformCallTranscriptOutput function was implemented to map the full Vapi.Call object to the new schema, extracting the transcript, messages, and other details.
  3. Tool Registration (src/tools/call.ts):

    • The get_call_transcript tool was registered, using the new schema and transformer. It leverages the same vapiClient.calls.get() method as the get_call tool.
  4. Documentation (README.md):

    • The README.md file has been updated to include the new get_call_transcript tool in the "Supported Actions" section.

@cassius66
Copy link
Author

Tested the MCP server with these changes, works perfectly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants