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
| Name | Required | Description | Default |
|---|---|---|---|
| infrastructure_info | Yes | Description of the infrastructure and tool stack | |
| specific_instructions | No | Optional specific instructions to include in the prompt | |
| version | No | The version of the prompt template to use (e.g., '1.0.0', '1.1.0', or 'latest') |
Implementation Reference
- mcp_hitchcode/server.py:343-366 (handler)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)]
- mcp_hitchcode/server.py:747-768 (registration)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')", }, }, }, ),
- mcp_hitchcode/server.py:750-767 (schema)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')", }, }, },