Skip to content

Mcp library definition#292

Draft
jzone3 wants to merge 1 commit intomasterfrom
cursor/mcp-library-definition-1ffc
Draft

Mcp library definition#292
jzone3 wants to merge 1 commit intomasterfrom
cursor/mcp-library-definition-1ffc

Conversation

@jzone3
Copy link
Contributor

@jzone3 jzone3 commented Feb 9, 2026

Implement an MCP server for the PromptLayer SDK to expose its functionality to AI agents.


Open in Cursor Open in Web

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
Copy link

cursor bot commented Feb 9, 2026

Cursor Agent can help with this pull request. Just @cursor in comments and I'll start working on changes in this branch.
Learn more about Cursor Agents

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