| name | using-docshark |
| description | Use when installing, running, and troubleshooting DocShark as an MCP server, including client setup for STDIO mode and endpoint checks for HTTP mode. |
Operating DocShark
Start Modes
STDIO mode (MCP clients)
docshark --stdio
or
npx docshark --stdio
Use STDIO when a client launches DocShark as a subprocess MCP server.
HTTP mode
docshark
Default HTTP port is 6380 (override with --port).
HTTP endpoints:
/mcp
/sse
/api
/api/health
Data Directory
- Default data directory:
~/.docshark
- Override with:
- CLI:
--data-dir <path>
- Env:
DOCSHARK_DATA_DIR
Core CLI Operations
docshark add <url>
docshark list
docshark search <query>
docshark refresh <name>
docshark rename <current-name> <new-name>
docshark remove <name>
docshark get [url] --library <name> --path <path>
Troubleshooting
- No search results:
- Verify with
docshark list.
- Refresh with
docshark refresh <library>.
- Re-run with a clearer natural-language query.
- Client cannot connect in STDIO mode:
- Verify startup command is
docshark --stdio or npx docshark --stdio.
- Ensure
docshark is on PATH if not using npx.
- HTTP mode not reachable:
- Confirm process is running.
- Check
/api/health.
- Confirm chosen
--port is available.