MCPcopy Index your code
hub / github.com/modelcontextprotocol/python-sdk / add_prompt

Method add_prompt

src/mcp/server/mcpserver/server.py:726–732  ·  view source on GitHub ↗

Add a prompt to the server. Args: prompt: A Prompt instance to add

(self, prompt: Prompt)

Source from the content-addressed store, hash-verified

724 return decorator
725
726 def add_prompt(self, prompt: Prompt) -> None:
727 """Add a prompt to the server.
728
729 Args:
730 prompt: A Prompt instance to add
731 """
732 self._prompt_manager.add_prompt(prompt)
733
734 def prompt(
735 self,

Callers 1

decoratorMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected