Documentation Index
Fetch the complete documentation index at: https://docs.langsight.dev/llms.txt
Use this file to discover all available pages before exploring further.
Usage
Options
| Option | Default | Description |
|---|
--output, -o | .langsight.yaml | Output path for config file |
--slack-webhook | — | Slack webhook URL for alerts |
--yes, -y | false | Skip confirmation prompts |
--skip-check | false | Write config without running the first health check |
What it does
langsight init scans every well-known MCP config file location on your machine, merges all discovered servers into a single .langsight.yaml, and immediately runs a first health check so you see results before you exit.
Auto-discovery sources — global user configs:
| Client | Config path (macOS) | Config path (Linux) | Key used |
|---|
| Claude Desktop | ~/Library/Application Support/Claude/claude_desktop_config.json | ~/.config/claude/claude_desktop_config.json | mcpServers |
| Cursor | ~/.cursor/mcp.json | ~/.cursor/mcp.json | mcpServers |
| VS Code | ~/.vscode/mcp.json | ~/.vscode/mcp.json | servers |
| Windsurf | ~/.windsurf/mcp.json | ~/.windsurf/mcp.json | mcpServers |
| Claude Code | ~/.claude/mcp.json | ~/.claude/mcp.json | mcpServers |
| Gemini CLI | ~/.gemini/mcp.json | ~/.gemini/mcp.json | mcpServers |
| Kiro | ~/.kiro/mcp.json | ~/.kiro/mcp.json | mcpServers |
| Zed | ~/.config/zed/settings.json | ~/.config/zed/settings.json | context_servers |
| Cline | ~/.cline/mcp.json | ~/.cline/mcp.json | mcpServers |
Project-local configs (current directory):
| File | Used by |
|---|
.cursor/mcp.json | Cursor workspace |
.mcp.json | Generic / team-shared config |
.vscode/mcp.json | VS Code workspace |
Project-local configs take precedence over global ones when the same server name appears in both.
Example
$ langsight init
LangSight Init — scanning for MCP servers...
Claude Desktop (~/Library/Application Support/Claude/claude_desktop_config.json) 4 servers
Cursor (~/.cursor/mcp.json) 2 servers
VS Code (~/.vscode/mcp.json) 1 server
Discovered 7 MCP servers:
1. snowflake-mcp (stdio)
2. github-mcp (stdio)
3. slack-mcp (sse)
4. jira-mcp (stdio)
5. postgres-mcp (stdio)
6. filesystem-mcp (stdio)
7. search-mcp (stdio)
Include all 7 servers? [Y/n]: Y
Slack webhook URL for alerts (leave blank to skip):
Running first health check...
snowflake-mcp ✓ UP 89ms
github-mcp ✓ UP 54ms
slack-mcp ✓ UP 142ms
jira-mcp ✗ DOWN — timeout after 5s
postgres-mcp ✓ UP 31ms
filesystem-mcp ✓ UP 12ms
search-mcp ✓ UP 67ms
6/7 servers healthy
jira-mcp is DOWN — check the process is running
Config written to .langsight.yaml
7 MCP servers configured
Next steps:
langsight mcp-health Full health table with latency and schema status
langsight scorecard A-F grade per server
langsight security-scan OWASP + CVE audit
langsight monitor Start continuous monitoring
Generated config
servers:
- name: snowflake-mcp
transport: stdio
command: python
args: [/path/to/snowflake_mcp/server.py]
- name: slack-mcp
transport: sse
url: http://localhost:8080/sse
alerts:
slack_webhook: https://hooks.slack.com/services/...
Non-interactive mode
langsight init --yes --slack-webhook https://hooks.slack.com/... --output /etc/langsight.yaml
Skip the first health check
Useful in CI pipelines or during infrastructure setup where the servers are not yet running:
langsight init --skip-check
See also