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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user