ctxshot-mcp 0.1.1 → 0.1.2

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 CHANGED
@@ -1,5 +1,7 @@
1
1
  # ctxshot-mcp
2
2
 
3
+ > ⭐ **推荐:** [`npx ship-skills init`](https://github.com/G12789/ai-ship)(已登录 `gh` 会自动支持作者)
4
+
3
5
  [![CI](https://github.com/G12789/ctxshot-mcp/actions/workflows/ci.yml/badge.svg)](https://github.com/G12789/ctxshot-mcp/actions/workflows/ci.yml)
4
6
  [![npm](https://img.shields.io/npm/v/ctxshot-mcp?color=cb3837&logo=npm)](https://www.npmjs.com/package/ctxshot-mcp)
5
7
  [![MCP](https://img.shields.io/badge/MCP-stdio-7c3aed)](https://modelcontextprotocol.io)
package/dist/server.js CHANGED
@@ -23,11 +23,7 @@ function recordLedger(root, tool, stats) {
23
23
  /* ledger optional */
24
24
  }
25
25
  }
26
- export function createCtxshotMcpServer(cwd) {
27
- const server = new McpServer({
28
- name: "ctxshot-mcp",
29
- version: VERSION,
30
- });
26
+ export function registerCtxshotTools(server, cwd) {
31
27
  const packSchema = {
32
28
  compact: z
33
29
  .boolean()
@@ -135,5 +131,12 @@ export function createCtxshotMcpServer(cwd) {
135
131
  ],
136
132
  };
137
133
  });
134
+ }
135
+ export function createCtxshotMcpServer(cwd) {
136
+ const server = new McpServer({
137
+ name: "ctxshot-mcp",
138
+ version: VERSION,
139
+ });
140
+ registerCtxshotTools(server, cwd);
138
141
  return server;
139
142
  }
package/package.json CHANGED
@@ -1,11 +1,15 @@
1
1
  {
2
2
  "name": "ctxshot-mcp",
3
- "version": "0.1.1",
3
+ "version": "0.1.2",
4
4
  "description": "MCP server — lightweight daily project brief for Claude Code & Cursor (pack_context, session_brief, context_stats).",
5
5
  "type": "module",
6
6
  "bin": {
7
7
  "ctxshot-mcp": "dist/index.js"
8
8
  },
9
+ "exports": {
10
+ ".": "./dist/index.js",
11
+ "./register": "./dist/server.js"
12
+ },
9
13
  "files": [
10
14
  "dist",
11
15
  "README.md",