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:
Kacper Łukawski
2025-03-11 21:05:39 +01:00
committed by GitHub
parent 41bab919be
commit 5878cc1267
5 changed files with 208 additions and 50 deletions

View File

@@ -1,9 +1,24 @@
from mcp_server_qdrant.server import mcp
import argparse
def main():
"""
Main entry point for the mcp-server-qdrant script defined
in pyproject.toml. It runs the MCP server.
in pyproject.toml. It runs the MCP server with a specific transport
protocol.
"""
mcp.run()
# Parse the command-line arguments to determine the transport protocol.
parser = argparse.ArgumentParser(description="mcp-server-qdrant")
parser.add_argument(
"--transport",
choices=["stdio", "sse"],
default="stdio",
)
args = parser.parse_args()
# Import is done here to make sure environment variables are loaded
# only after we make the changes.
from mcp_server_qdrant.server import mcp
mcp.run(transport=args.transport)