Skip to main content
Glama
divar-ir

Sourcegraph MCP Server

by divar-ir
main.py788 B
#!/usr/bin/env python3 """Main entry point for Sourcegraph MCP server.""" import logging import sys logger = logging.getLogger(__name__) def print_help(): print("Usage: python main.py <command> [options]") print("\nAvailable commands:") print(" search - Start the search server (default)") if __name__ == "__main__": # Default to search command if no argument provided if len(sys.argv) < 2: command = "search" else: command = sys.argv[1] match command: case "search": from .server import main as search_main search_main() case "help" | "--help" | "-h": print_help() case _: print(f"Unknown command: {command}") print_help() sys.exit(1)

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/divar-ir/sourcegraph-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server