Skip to main content
Glama
jankowtf

MCP Server Template for Cursor IDE

by jankowtf

apply_prompt_infra

Generate structured infrastructure and tool stack documentation using customizable prompt templates. Ideal for developers working with Cursor IDE to maintain clear system context and versioning.

Instructions

Provides a prompt template for laying out system infrastructure and tool stack information

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
infrastructure_infoYesDescription of the infrastructure and tool stack
specific_instructionsNoOptional specific instructions to include in the prompt
versionNoThe version of the prompt template to use (e.g., '1.0.0', '1.1.0', or 'latest')

Implementation Reference

  • The main handler function that executes the tool logic: renders the 'infra' prompt template with the given infrastructure_info (mapped to 'objective'), specific_instructions, and version, then returns it as a list of TextContent.
    async def apply_prompt_infra( infrastructure_info: str, specific_instructions: str = "", version: str = "latest", ) -> list[types.TextContent]: """ Provides a prompt template for laying out system infrastructure and tool stack information. Args: infrastructure_info: Description of the infrastructure and tool stack. specific_instructions: Optional specific instructions to include in the prompt. version: The version of the prompt template to use. Defaults to "latest". Returns: A list containing a TextContent object with the prompt. """ # Render the prompt template with the infrastructure info and specific instructions response_text = render_prompt_template( "infra", version_str=version, objective=infrastructure_info, specific_instructions=specific_instructions, ) return [types.TextContent(type="text", text=response_text)]
  • Registers the 'apply_prompt_infra' tool in the MCP server's list_tools() method, providing name, description, and input schema.
    types.Tool( name="apply_prompt_infra", description="Provides a prompt template for laying out system infrastructure and tool stack information", inputSchema={ "type": "object", "required": ["infrastructure_info"], "properties": { "infrastructure_info": { "type": "string", "description": "Description of the infrastructure and tool stack", }, "specific_instructions": { "type": "string", "description": "Optional specific instructions to include in the prompt", }, "version": { "type": "string", "description": "The version of the prompt template to use (e.g., '1.0.0', '1.1.0', or 'latest')", }, }, }, ),
  • Input schema defining the parameters for the 'apply_prompt_infra' tool: required 'infrastructure_info', optional 'specific_instructions' and 'version'.
    inputSchema={ "type": "object", "required": ["infrastructure_info"], "properties": { "infrastructure_info": { "type": "string", "description": "Description of the infrastructure and tool stack", }, "specific_instructions": { "type": "string", "description": "Optional specific instructions to include in the prompt", }, "version": { "type": "string", "description": "The version of the prompt template to use (e.g., '1.0.0', '1.1.0', or 'latest')", }, }, },

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/jankowtf/mcp-hitchcode'

If you have feedback or need assistance with the MCP directory API, please join our Discord server