* 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
25 lines
680 B
Python
25 lines
680 B
Python
import argparse
|
|
|
|
|
|
def main():
|
|
"""
|
|
Main entry point for the mcp-server-qdrant script defined
|
|
in pyproject.toml. It runs the MCP server with a specific transport
|
|
protocol.
|
|
"""
|
|
|
|
# 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)
|