Draft
Conversation
Implements a full MCP (Model Context Protocol) server that exposes all
PromptLayer SDK functionality to AI agents.
MCP Tools (11):
- get_prompt_template: Retrieve a prompt template by name
- list_prompt_templates: List all available prompt templates
- publish_prompt_template: Create or update a prompt template
- run_prompt: Execute a prompt through its configured LLM
- run_workflow: Execute a PromptLayer workflow
- log_request: Log an LLM request for tracking/analytics
- track_prompt: Associate a prompt template with a request
- track_metadata: Attach metadata to a logged request
- track_score: Score a logged request (0-100)
- track_group: Associate a request with a group
- create_group: Create a new request group
MCP Resources (2):
- promptlayer://templates: Browse all prompt templates
- promptlayer://templates/{name}: Get a specific template
Usage:
PROMPTLAYER_API_KEY=pl_xxx promptlayer-mcp
Adds mcp ^1.26.0 as a dependency and a 'promptlayer-mcp' CLI entry point.
Co-authored-by: Jared Zoneraich <me@imjaredz.com>
|
Cursor Agent can help with this pull request. Just |
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Implement an MCP server for the PromptLayer SDK to expose its functionality to AI agents.