@kantadev/cli 0.1.0 → 0.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/package.json +1 -1
- package/server.json +2 -2
- package/src/cli/index.js +12 -1
- package/src/mcp/server.js +1 -1
package/README.md
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kantadev/cli",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.1",
|
|
4
4
|
"description": "Kanta CLI + MCP server — email verification, email finding, and the Kanta B2B contact database from your terminal or an MCP client.",
|
|
5
5
|
"mcpName": "dev.kanta/cli",
|
|
6
6
|
"type": "module",
|
package/server.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"$schema": "https://static.modelcontextprotocol.io/schemas/2025-12-11/server.schema.json",
|
|
3
3
|
"name": "dev.kanta/cli",
|
|
4
4
|
"description": "Email verification, email finding, and the Kanta B2B contact database — search, count, facet, and export contacts and companies.",
|
|
5
|
-
"version": "0.1.
|
|
5
|
+
"version": "0.1.1",
|
|
6
6
|
"repository": {
|
|
7
7
|
"url": "https://github.com/griffinkanta/kanta-dev",
|
|
8
8
|
"source": "github",
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
{
|
|
13
13
|
"registryType": "npm",
|
|
14
14
|
"identifier": "@kantadev/cli",
|
|
15
|
-
"version": "0.1.
|
|
15
|
+
"version": "0.1.1",
|
|
16
16
|
"runtimeHint": "npx",
|
|
17
17
|
"transport": { "type": "stdio" },
|
|
18
18
|
"environmentVariables": [
|
package/src/cli/index.js
CHANGED
|
@@ -16,7 +16,7 @@ export function createProgram(deps = {}) {
|
|
|
16
16
|
program
|
|
17
17
|
.name('kanta')
|
|
18
18
|
.description('Kanta CLI — verify, find, and manage email jobs over api.kanta.dev')
|
|
19
|
-
.version('0.1.
|
|
19
|
+
.version('0.1.1')
|
|
20
20
|
.option('--profile <name>', 'config profile to use')
|
|
21
21
|
.option('--api-key <key>', 'API key (overrides profile/env; never persisted)')
|
|
22
22
|
.option('--base-url <url>', 'API base URL override')
|
|
@@ -32,6 +32,17 @@ export function createProgram(deps = {}) {
|
|
|
32
32
|
registerAdmin(program);
|
|
33
33
|
registerDb(program);
|
|
34
34
|
|
|
35
|
+
// `kanta mcp` runs the stdio MCP server — the same thing as the `kanta-mcp`
|
|
36
|
+
// bin. Having it as a subcommand makes `npx @kantadev/cli mcp` work (npx
|
|
37
|
+
// resolves the package's default bin, not an arbitrary one).
|
|
38
|
+
program
|
|
39
|
+
.command('mcp')
|
|
40
|
+
.description('Run the Kanta MCP stdio server (for Claude Desktop / Code / Cursor)')
|
|
41
|
+
.action(async () => {
|
|
42
|
+
const { startServer } = await import('../mcp/server.js');
|
|
43
|
+
await startServer();
|
|
44
|
+
});
|
|
45
|
+
|
|
35
46
|
return program;
|
|
36
47
|
}
|
|
37
48
|
|
package/src/mcp/server.js
CHANGED
|
@@ -38,7 +38,7 @@ export async function startServer() {
|
|
|
38
38
|
const handlers = new Map(tools.map(t => [t.name, wrapHandler(t, { client })]));
|
|
39
39
|
|
|
40
40
|
const server = new Server(
|
|
41
|
-
{ name: 'kanta', version: '0.1.
|
|
41
|
+
{ name: 'kanta', version: '0.1.1' },
|
|
42
42
|
{ capabilities: { tools: {} } },
|
|
43
43
|
);
|
|
44
44
|
|