Custom tool descriptions (#29)
* Allow setting up the tool descriptions with env variables * Document the env variables as a table in README * Link settings.py in README.md * Allow to choose transport protocol: stdio or sse * Fix metadata handling in Cursor * Improve README to cover more cases * Add info about Cursor rules * Fix Github note type
This commit is contained in:
@@ -5,6 +5,31 @@ from pydantic_settings import BaseSettings
|
||||
|
||||
from mcp_server_qdrant.embeddings.types import EmbeddingProviderType
|
||||
|
||||
DEFAULT_TOOL_STORE_DESCRIPTION = (
|
||||
"Keep the memory for later use, when you are asked to remember something."
|
||||
)
|
||||
DEFAULT_TOOL_FIND_DESCRIPTION = (
|
||||
"Look up memories in Qdrant. Use this tool when you need to: \n"
|
||||
" - Find memories by their content \n"
|
||||
" - Access memories for further analysis \n"
|
||||
" - Get some personal information about the user"
|
||||
)
|
||||
|
||||
|
||||
class ToolSettings(BaseSettings):
|
||||
"""
|
||||
Configuration for all the tools.
|
||||
"""
|
||||
|
||||
tool_store_description: str = Field(
|
||||
default=DEFAULT_TOOL_STORE_DESCRIPTION,
|
||||
validation_alias="TOOL_STORE_DESCRIPTION",
|
||||
)
|
||||
tool_find_description: str = Field(
|
||||
default=DEFAULT_TOOL_FIND_DESCRIPTION,
|
||||
validation_alias="TOOL_FIND_DESCRIPTION",
|
||||
)
|
||||
|
||||
|
||||
class EmbeddingProviderSettings(BaseSettings):
|
||||
"""
|
||||
|
||||
Reference in New Issue
Block a user