Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions bin/harper.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ install - Install harperdb
<api-operation> <param>=<value> - Run an API operation and return result to the CLI, not all operations are supported
login [target] [username] - Login to a remote or local Harper instance
logout [target] - Logout from Harper and clear saved JWT
mcp [subcommand] - MCP stdio bridge / print-config / doctor (see 'harper mcp help')
register - Register harperdb
renew-certs - Generate a new set of self-signed certificates
restart - Restart the harperdb background process
Expand Down Expand Up @@ -94,6 +95,12 @@ async function harper() {
const { logout } = require('./logout');
return logout(target);
}
case SERVICE_ACTIONS_ENUM.MCP: {
const { runMcpCli } = require('./mcp');
const code = await runMcpCli(process.argv.slice(3));
process.exit(code);
}
// eslint-disable-next-line no-fallthrough
case SERVICE_ACTIONS_ENUM.RENEWCERTS:
return require('../security/keys')
.renewSelfSigned()
Expand Down
Loading
Loading