@useclickly/mcp-server 0.2.0
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/LICENSE +21 -0
- package/README.md +64 -0
- package/dist/cli.cjs +17 -0
- package/dist/cli.cjs.map +1 -0
- package/dist/cli.js +16 -0
- package/dist/cli.js.map +1 -0
- package/dist/index.cjs +10 -0
- package/dist/index.cjs.map +1 -0
- package/dist/index.d.cts +21 -0
- package/dist/index.d.ts +21 -0
- package/dist/index.js +9 -0
- package/dist/index.js.map +1 -0
- package/package.json +69 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Clickly contributors
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
ADDED
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
# @useclickly/mcp-server
|
|
2
|
+
|
|
3
|
+
> Model Context Protocol stdio server that exposes Clickly annotations to AI coding agents.
|
|
4
|
+
|
|
5
|
+
Works with any MCP-aware tool: Claude Code, Cursor, Codex, Windsurf, and more. When your `<Clickly />` browser component is connected, the agent can list pending annotations, acknowledge them, resolve them with a summary, or dismiss them with a reason — all from inside the agent's chat.
|
|
6
|
+
|
|
7
|
+
## Install
|
|
8
|
+
|
|
9
|
+
```bash
|
|
10
|
+
npm install -g @useclickly/mcp-server
|
|
11
|
+
# or run on demand:
|
|
12
|
+
npx @useclickly/mcp-server server
|
|
13
|
+
```
|
|
14
|
+
|
|
15
|
+
## Quick wire-up
|
|
16
|
+
|
|
17
|
+
The fastest way to configure Clickly across every installed agent:
|
|
18
|
+
|
|
19
|
+
```bash
|
|
20
|
+
npx add-mcp "npx -y @useclickly/mcp-server server"
|
|
21
|
+
```
|
|
22
|
+
|
|
23
|
+
`add-mcp` auto-detects your installed agents (Claude Code, Cursor, etc.) and writes the right config.
|
|
24
|
+
|
|
25
|
+
## Manual MCP entry
|
|
26
|
+
|
|
27
|
+
Add this to your agent's MCP config:
|
|
28
|
+
|
|
29
|
+
```json
|
|
30
|
+
{
|
|
31
|
+
"mcpServers": {
|
|
32
|
+
"clickly": {
|
|
33
|
+
"command": "npx",
|
|
34
|
+
"args": ["-y", "@useclickly/mcp-server", "server"]
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
```
|
|
39
|
+
|
|
40
|
+
## Connecting the browser component
|
|
41
|
+
|
|
42
|
+
In your React app:
|
|
43
|
+
|
|
44
|
+
```tsx
|
|
45
|
+
<Clickly endpoint="http://localhost:4747" />
|
|
46
|
+
```
|
|
47
|
+
|
|
48
|
+
The component will POST annotations to the server and keep its session in sync.
|
|
49
|
+
|
|
50
|
+
## CLI
|
|
51
|
+
|
|
52
|
+
```
|
|
53
|
+
clickly-mcp server run the MCP server (stdio + HTTP bridge on :4747)
|
|
54
|
+
clickly-mcp doctor verify Node, port availability, store writability
|
|
55
|
+
clickly-mcp init interactive setup wizard
|
|
56
|
+
```
|
|
57
|
+
|
|
58
|
+
## Status
|
|
59
|
+
|
|
60
|
+
🚧 Phase 10 ships the package scaffold. The MCP tool definitions and HTTP bridge land before v0.2.0.
|
|
61
|
+
|
|
62
|
+
## License
|
|
63
|
+
|
|
64
|
+
MIT
|
package/dist/cli.cjs
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
// src/cli.ts
|
|
4
|
+
var [, , cmd] = process.argv;
|
|
5
|
+
switch (cmd) {
|
|
6
|
+
case "server":
|
|
7
|
+
case "doctor":
|
|
8
|
+
case "init":
|
|
9
|
+
console.error(`clickly-mcp: "${cmd}" not yet implemented (Phase 2 scaffold)`);
|
|
10
|
+
process.exit(2);
|
|
11
|
+
break;
|
|
12
|
+
default:
|
|
13
|
+
console.log("usage: clickly-mcp <server|doctor|init>");
|
|
14
|
+
process.exit(cmd ? 1 : 0);
|
|
15
|
+
}
|
|
16
|
+
//# sourceMappingURL=cli.cjs.map
|
|
17
|
+
//# sourceMappingURL=cli.cjs.map
|
package/dist/cli.cjs.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/cli.ts"],"names":[],"mappings":";;;AAUA,IAAM,KAAK,GAAG,IAAI,OAAA,CAAQ,IAAA;AAE1B,QAAQ,GAAA;AAAK,EACX,KAAK,QAAA;AAAA,EACL,KAAK,QAAA;AAAA,EACL,KAAK,MAAA;AACH,IAAA,OAAA,CAAQ,KAAA,CAAM,CAAA,cAAA,EAAkB,GAAG,CAAA,wCAAA,CAA2C,CAAA;AAC9E,IAAA,OAAA,CAAQ,KAAK,CAAC,CAAA;AACd,IAAA;AAAA,EACF;AACE,IAAA,OAAA,CAAQ,IAAI,yCAAyC,CAAA;AACrD,IAAA,OAAA,CAAQ,IAAA,CAAK,GAAA,GAAM,CAAA,GAAI,CAAC,CAAA;AAC5B","file":"cli.cjs","sourcesContent":["/**\n * `clickly-mcp` CLI. (Shebang prepended by tsup banner.)\n *\n * Subcommands (planned):\n * server Run the MCP server (stdio + HTTP bridge on :4747)\n * doctor Verify Node version, port availability, store writability\n * init Interactive setup for Claude Code / Cursor / Codex\n *\n * Phase 2 stub.\n */\nconst [, , cmd] = process.argv;\n\nswitch (cmd) {\n case \"server\":\n case \"doctor\":\n case \"init\":\n console.error(`clickly-mcp: \\\"${cmd}\\\" not yet implemented (Phase 2 scaffold)`);\n process.exit(2);\n break;\n default:\n console.log(\"usage: clickly-mcp <server|doctor|init>\");\n process.exit(cmd ? 1 : 0);\n}\n"]}
|
package/dist/cli.js
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
// src/cli.ts
|
|
3
|
+
var [, , cmd] = process.argv;
|
|
4
|
+
switch (cmd) {
|
|
5
|
+
case "server":
|
|
6
|
+
case "doctor":
|
|
7
|
+
case "init":
|
|
8
|
+
console.error(`clickly-mcp: "${cmd}" not yet implemented (Phase 2 scaffold)`);
|
|
9
|
+
process.exit(2);
|
|
10
|
+
break;
|
|
11
|
+
default:
|
|
12
|
+
console.log("usage: clickly-mcp <server|doctor|init>");
|
|
13
|
+
process.exit(cmd ? 1 : 0);
|
|
14
|
+
}
|
|
15
|
+
//# sourceMappingURL=cli.js.map
|
|
16
|
+
//# sourceMappingURL=cli.js.map
|
package/dist/cli.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/cli.ts"],"names":[],"mappings":";;AAUA,IAAM,KAAK,GAAG,IAAI,OAAA,CAAQ,IAAA;AAE1B,QAAQ,GAAA;AAAK,EACX,KAAK,QAAA;AAAA,EACL,KAAK,QAAA;AAAA,EACL,KAAK,MAAA;AACH,IAAA,OAAA,CAAQ,KAAA,CAAM,CAAA,cAAA,EAAkB,GAAG,CAAA,wCAAA,CAA2C,CAAA;AAC9E,IAAA,OAAA,CAAQ,KAAK,CAAC,CAAA;AACd,IAAA;AAAA,EACF;AACE,IAAA,OAAA,CAAQ,IAAI,yCAAyC,CAAA;AACrD,IAAA,OAAA,CAAQ,IAAA,CAAK,GAAA,GAAM,CAAA,GAAI,CAAC,CAAA;AAC5B","file":"cli.js","sourcesContent":["/**\n * `clickly-mcp` CLI. (Shebang prepended by tsup banner.)\n *\n * Subcommands (planned):\n * server Run the MCP server (stdio + HTTP bridge on :4747)\n * doctor Verify Node version, port availability, store writability\n * init Interactive setup for Claude Code / Cursor / Codex\n *\n * Phase 2 stub.\n */\nconst [, , cmd] = process.argv;\n\nswitch (cmd) {\n case \"server\":\n case \"doctor\":\n case \"init\":\n console.error(`clickly-mcp: \\\"${cmd}\\\" not yet implemented (Phase 2 scaffold)`);\n process.exit(2);\n break;\n default:\n console.log(\"usage: clickly-mcp <server|doctor|init>\");\n process.exit(cmd ? 1 : 0);\n}\n"]}
|
package/dist/index.cjs
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
// src/server.ts
|
|
4
|
+
async function createServer(_options = {}) {
|
|
5
|
+
throw new Error("@useclickly/mcp-server: not yet implemented (Phase 2 scaffold)");
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
exports.createServer = createServer;
|
|
9
|
+
//# sourceMappingURL=index.cjs.map
|
|
10
|
+
//# sourceMappingURL=index.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/server.ts"],"names":[],"mappings":";;;AAoBA,eAAsB,YAAA,CAAa,QAAA,GAA0B,EAAC,EAA0B;AACtF,EAAA,MAAM,IAAI,MAAM,gEAAgE,CAAA;AAClF","file":"index.cjs","sourcesContent":["import type { Annotation } from \"@useclickly/core\";\n\nexport interface ServerOptions {\n /** HTTP port for the browser bridge. Default: 4747. */\n port?: number;\n /** On-disk path for session persistence. Default: ~/.clickly/sessions.json. */\n storePath?: string;\n}\n\nexport interface ServerHandle {\n port: number;\n close(): Promise<void>;\n getAnnotations(sessionId: string): Annotation[];\n}\n\n/**\n * Phase 2 stub. Real MCP wiring + HTTP/SSE bridge + tool definitions\n * arrive after Phase 8 (output format) so we have a stable schema to\n * advertise to MCP clients.\n */\nexport async function createServer(_options: ServerOptions = {}): Promise<ServerHandle> {\n throw new Error(\"@useclickly/mcp-server: not yet implemented (Phase 2 scaffold)\");\n}\n"]}
|
package/dist/index.d.cts
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { Annotation } from '@useclickly/core';
|
|
2
|
+
|
|
3
|
+
interface ServerOptions {
|
|
4
|
+
/** HTTP port for the browser bridge. Default: 4747. */
|
|
5
|
+
port?: number;
|
|
6
|
+
/** On-disk path for session persistence. Default: ~/.clickly/sessions.json. */
|
|
7
|
+
storePath?: string;
|
|
8
|
+
}
|
|
9
|
+
interface ServerHandle {
|
|
10
|
+
port: number;
|
|
11
|
+
close(): Promise<void>;
|
|
12
|
+
getAnnotations(sessionId: string): Annotation[];
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* Phase 2 stub. Real MCP wiring + HTTP/SSE bridge + tool definitions
|
|
16
|
+
* arrive after Phase 8 (output format) so we have a stable schema to
|
|
17
|
+
* advertise to MCP clients.
|
|
18
|
+
*/
|
|
19
|
+
declare function createServer(_options?: ServerOptions): Promise<ServerHandle>;
|
|
20
|
+
|
|
21
|
+
export { type ServerOptions, createServer };
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { Annotation } from '@useclickly/core';
|
|
2
|
+
|
|
3
|
+
interface ServerOptions {
|
|
4
|
+
/** HTTP port for the browser bridge. Default: 4747. */
|
|
5
|
+
port?: number;
|
|
6
|
+
/** On-disk path for session persistence. Default: ~/.clickly/sessions.json. */
|
|
7
|
+
storePath?: string;
|
|
8
|
+
}
|
|
9
|
+
interface ServerHandle {
|
|
10
|
+
port: number;
|
|
11
|
+
close(): Promise<void>;
|
|
12
|
+
getAnnotations(sessionId: string): Annotation[];
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* Phase 2 stub. Real MCP wiring + HTTP/SSE bridge + tool definitions
|
|
16
|
+
* arrive after Phase 8 (output format) so we have a stable schema to
|
|
17
|
+
* advertise to MCP clients.
|
|
18
|
+
*/
|
|
19
|
+
declare function createServer(_options?: ServerOptions): Promise<ServerHandle>;
|
|
20
|
+
|
|
21
|
+
export { type ServerOptions, createServer };
|
package/dist/index.js
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
// src/server.ts
|
|
3
|
+
async function createServer(_options = {}) {
|
|
4
|
+
throw new Error("@useclickly/mcp-server: not yet implemented (Phase 2 scaffold)");
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
export { createServer };
|
|
8
|
+
//# sourceMappingURL=index.js.map
|
|
9
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/server.ts"],"names":[],"mappings":";;AAoBA,eAAsB,YAAA,CAAa,QAAA,GAA0B,EAAC,EAA0B;AACtF,EAAA,MAAM,IAAI,MAAM,gEAAgE,CAAA;AAClF","file":"index.js","sourcesContent":["import type { Annotation } from \"@useclickly/core\";\n\nexport interface ServerOptions {\n /** HTTP port for the browser bridge. Default: 4747. */\n port?: number;\n /** On-disk path for session persistence. Default: ~/.clickly/sessions.json. */\n storePath?: string;\n}\n\nexport interface ServerHandle {\n port: number;\n close(): Promise<void>;\n getAnnotations(sessionId: string): Annotation[];\n}\n\n/**\n * Phase 2 stub. Real MCP wiring + HTTP/SSE bridge + tool definitions\n * arrive after Phase 8 (output format) so we have a stable schema to\n * advertise to MCP clients.\n */\nexport async function createServer(_options: ServerOptions = {}): Promise<ServerHandle> {\n throw new Error(\"@useclickly/mcp-server: not yet implemented (Phase 2 scaffold)\");\n}\n"]}
|
package/package.json
ADDED
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@useclickly/mcp-server",
|
|
3
|
+
"version": "0.2.0",
|
|
4
|
+
"description": "Model Context Protocol stdio server that exposes Clickly annotations to AI coding agents (Claude Code, Cursor, Codex, Windsurf).",
|
|
5
|
+
"license": "MIT",
|
|
6
|
+
"author": "Clickly contributors",
|
|
7
|
+
"homepage": "https://github.com/clickly/clickly#readme",
|
|
8
|
+
"repository": {
|
|
9
|
+
"type": "git",
|
|
10
|
+
"url": "git+https://github.com/clickly/clickly.git",
|
|
11
|
+
"directory": "packages/mcp-server"
|
|
12
|
+
},
|
|
13
|
+
"bugs": {
|
|
14
|
+
"url": "https://github.com/clickly/clickly/issues"
|
|
15
|
+
},
|
|
16
|
+
"keywords": [
|
|
17
|
+
"mcp",
|
|
18
|
+
"model-context-protocol",
|
|
19
|
+
"clickly",
|
|
20
|
+
"claude",
|
|
21
|
+
"cursor",
|
|
22
|
+
"ai",
|
|
23
|
+
"agent"
|
|
24
|
+
],
|
|
25
|
+
"type": "module",
|
|
26
|
+
"files": [
|
|
27
|
+
"dist",
|
|
28
|
+
"README.md",
|
|
29
|
+
"LICENSE"
|
|
30
|
+
],
|
|
31
|
+
"main": "./dist/index.cjs",
|
|
32
|
+
"module": "./dist/index.js",
|
|
33
|
+
"types": "./dist/index.d.ts",
|
|
34
|
+
"bin": {
|
|
35
|
+
"clickly-mcp": "./dist/cli.js"
|
|
36
|
+
},
|
|
37
|
+
"exports": {
|
|
38
|
+
".": {
|
|
39
|
+
"types": "./dist/index.d.ts",
|
|
40
|
+
"import": "./dist/index.js",
|
|
41
|
+
"require": "./dist/index.cjs"
|
|
42
|
+
}
|
|
43
|
+
},
|
|
44
|
+
"dependencies": {
|
|
45
|
+
"@modelcontextprotocol/sdk": "^1.0.0",
|
|
46
|
+
"@useclickly/core": "0.2.0"
|
|
47
|
+
},
|
|
48
|
+
"devDependencies": {
|
|
49
|
+
"@types/node": "^20.16.10",
|
|
50
|
+
"rimraf": "^6.0.1",
|
|
51
|
+
"tsup": "^8.3.0",
|
|
52
|
+
"typescript": "^5.6.2",
|
|
53
|
+
"vitest": "^2.1.2"
|
|
54
|
+
},
|
|
55
|
+
"engines": {
|
|
56
|
+
"node": ">=18.17"
|
|
57
|
+
},
|
|
58
|
+
"publishConfig": {
|
|
59
|
+
"access": "public"
|
|
60
|
+
},
|
|
61
|
+
"scripts": {
|
|
62
|
+
"build": "tsup",
|
|
63
|
+
"dev": "tsup --watch",
|
|
64
|
+
"test": "vitest run --passWithNoTests",
|
|
65
|
+
"typecheck": "tsc --noEmit",
|
|
66
|
+
"clean": "rimraf dist .turbo",
|
|
67
|
+
"start": "node dist/cli.js server"
|
|
68
|
+
}
|
|
69
|
+
}
|