caplets 0.11.0 → 0.12.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/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "caplets",
3
- "version": "0.11.0",
4
- "description": "Progressive disclosure gateway for MCP servers.",
3
+ "version": "0.12.1",
4
+ "description": "Progressive disclosure gateway CLI for MCP servers and native Caplets adapters.",
5
5
  "keywords": [
6
6
  "caplets",
7
7
  "gateway",
@@ -17,73 +17,38 @@
17
17
  "author": "Spirit-Led Software LLC",
18
18
  "repository": {
19
19
  "type": "git",
20
- "url": "git+https://github.com/spiritledsoftware/caplets.git"
20
+ "url": "git+https://github.com/spiritledsoftware/caplets.git",
21
+ "directory": "packages/cli"
21
22
  },
22
23
  "bin": {
23
24
  "caplets": "dist/index.js"
24
25
  },
25
26
  "files": [
26
27
  "dist",
27
- "caplets",
28
- "schemas",
29
- "README.md",
30
- "LICENSE"
28
+ "README.md"
31
29
  ],
32
30
  "type": "module",
33
31
  "main": "dist/index.js",
34
- "exports": {
35
- ".": "./dist/index.js"
36
- },
37
32
  "publishConfig": {
38
33
  "access": "public"
39
34
  },
40
35
  "dependencies": {
41
- "@apidevtools/swagger-parser": "^12.1.0",
42
36
  "@modelcontextprotocol/sdk": "^1.29.0",
43
- "commander": "^14.0.3",
44
- "graphql": "^16.14.0",
45
- "vfile": "^6.0.3",
46
- "vfile-matter": "^5.0.1",
47
- "zod": "^4.4.3"
37
+ "@caplets/core": "0.12.1"
48
38
  },
49
39
  "devDependencies": {
50
- "@changesets/cli": "^2.31.0",
51
- "@types/node": "^25.6.2",
52
- "husky": "^9.1.7",
53
- "lint-staged": "^17.0.3",
54
- "oxfmt": "^0.48.0",
55
- "oxlint": "^1.63.0",
40
+ "@types/node": "^25.7.0",
56
41
  "rolldown": "^1.0.0",
57
42
  "typescript": "^6.0.3",
58
- "vitest": "^4.1.5"
59
- },
60
- "lint-staged": {
61
- "*.{js,cjs,mjs,ts,json,md,yml,yaml}": "oxfmt --check",
62
- "*.{js,cjs,mjs,ts}": "oxlint"
43
+ "vitest": "^4.1.6"
63
44
  },
64
45
  "engines": {
65
46
  "node": ">=22"
66
47
  },
67
48
  "scripts": {
68
- "build": "rolldown -c",
69
- "build:watch": "rolldown -c --watch",
70
- "benchmark": "node benchmarks/run-deterministic.mjs",
71
- "benchmark:check": "node benchmarks/run-deterministic.mjs --check",
72
- "benchmark:live": "node benchmarks/run-live.mjs",
73
- "benchmark:live:opencode": "node benchmarks/run-live.mjs --agent opencode",
74
- "benchmark:live:pi": "node benchmarks/run-live.mjs --agent pi",
75
- "changeset": "changeset",
76
- "dev": "node ./scripts/dev.mjs",
77
- "format": "oxfmt .",
78
- "format:check": "oxfmt --check .",
79
- "lint": "oxlint .",
80
- "lint:fix": "oxlint --fix .",
81
- "release": "pnpm build && changeset publish",
82
- "schema:check": "rolldown -c rolldown.schema.config.ts && node dist-schema/generate-config-schema.js --check && rm -rf dist-schema",
83
- "schema:generate": "rolldown -c rolldown.schema.config.ts && node dist-schema/generate-config-schema.js && rm -rf dist-schema",
49
+ "build": "rm -rf dist && rolldown -c",
50
+ "dev": "node ../../scripts/dev.mjs",
84
51
  "typecheck": "tsc --noEmit",
85
- "test": "vitest run",
86
- "verify": "pnpm format:check && pnpm lint && pnpm typecheck && pnpm schema:check && pnpm test && pnpm benchmark:check && pnpm build",
87
- "version-packages": "changeset version"
52
+ "test": "vitest run --passWithNoTests"
88
53
  }
89
54
  }
@@ -1,33 +0,0 @@
1
- ---
2
- $schema: https://raw.githubusercontent.com/spiritledsoftware/caplets/main/schemas/caplet.schema.json
3
- name: Context7 Documentation
4
- description: Fetch current library and framework documentation through Context7 before using version-sensitive APIs.
5
- tags:
6
- - docs
7
- - libraries
8
- - frameworks
9
- - api-reference
10
- mcpServer:
11
- command: npx
12
- args:
13
- - -y
14
- - "@upstash/context7-mcp"
15
- ---
16
-
17
- # Context7 Documentation
18
-
19
- Use this Caplet when the agent needs up-to-date library, SDK, framework, CLI, or cloud-service
20
- documentation before writing code or giving technical instructions.
21
-
22
- ## Good Fits
23
-
24
- - Check current API signatures for fast-moving JavaScript, TypeScript, Python, or cloud libraries.
25
- - Look up migration notes before changing framework configuration.
26
- - Retrieve official examples for a specific package version.
27
- - Resolve uncertainty about CLI flags, config files, or SDK initialization.
28
-
29
- ## Use Carefully
30
-
31
- - Prefer primary documentation over snippets when implementation risk is high.
32
- - Record the library or package name clearly before searching.
33
- - Do not use this as a substitute for project-local types and tests.
@@ -1,54 +0,0 @@
1
- ---
2
- $schema: https://raw.githubusercontent.com/spiritledsoftware/caplets/main/schemas/caplet.schema.json
3
- name: GitHub
4
- description: Inspect and manage GitHub repositories, issues, pull requests, branches, commits, and code review workflows.
5
- tags:
6
- - code
7
- - github
8
- - pull-requests
9
- - issues
10
- - reviews
11
- mcpServer:
12
- command: docker
13
- args:
14
- - run
15
- - -i
16
- - --rm
17
- - -e
18
- - GITHUB_PERSONAL_ACCESS_TOKEN
19
- - ghcr.io/github/github-mcp-server
20
- env:
21
- GITHUB_PERSONAL_ACCESS_TOKEN: $env:GITHUB_PERSONAL_ACCESS_TOKEN
22
- ---
23
-
24
- # GitHub
25
-
26
- Use this Caplet when the agent needs live GitHub repository context or needs to act on
27
- issues, pull requests, branches, commits, or review feedback.
28
-
29
- ## Good Fits
30
-
31
- - Summarize recent pull request activity before a code review.
32
- - Inspect open issues and identify implementation work.
33
- - Create or update issues from an implementation plan.
34
- - Compare branches, inspect commits, or review pull request files.
35
- - Leave review comments after the agent has inspected the relevant diff.
36
-
37
- ## Use Carefully
38
-
39
- - Mutating operations can affect real repositories. Prefer read operations first.
40
- - Use a least-privilege `GITHUB_PERSONAL_ACCESS_TOKEN`.
41
- - Do not ask the agent to expose token values, repository secrets, or private issue contents outside
42
- the intended conversation.
43
-
44
- ## Setup
45
-
46
- Create a GitHub personal access token with the minimum repository scopes needed for your workflow,
47
- then export it before starting Caplets:
48
-
49
- ```sh
50
- export GITHUB_PERSONAL_ACCESS_TOKEN=github_pat_...
51
- caplets serve
52
- ```
53
-
54
- This Caplet uses GitHub's official MCP server container, so Docker must be available on the host.
@@ -1,13 +0,0 @@
1
- # GitHub Caplet
2
-
3
- This Caplet wraps GitHub's official MCP server container:
4
-
5
- ```sh
6
- docker run -i --rm -e GITHUB_PERSONAL_ACCESS_TOKEN ghcr.io/github/github-mcp-server
7
- ```
8
-
9
- Install it from this repo:
10
-
11
- ```sh
12
- caplets install spiritledsoftware/caplets github
13
- ```
@@ -1,41 +0,0 @@
1
- ---
2
- $schema: https://raw.githubusercontent.com/spiritledsoftware/caplets/main/schemas/caplet.schema.json
3
- name: GitHub CLI
4
- description: Inspect GitHub pull requests and issues through curated gh CLI commands.
5
- tags:
6
- - cli
7
- - github
8
- - code
9
- cliTools:
10
- actions:
11
- gh_pr_status:
12
- description: Show pull request status for the current branch as JSON.
13
- command: gh
14
- args:
15
- - pr
16
- - status
17
- - --json
18
- - currentBranch
19
- output:
20
- type: json
21
- annotations:
22
- readOnlyHint: true
23
- openWorldHint: true
24
- gh_issue_list:
25
- description: List open GitHub issues as JSON.
26
- command: gh
27
- args:
28
- - issue
29
- - list
30
- - --json
31
- - number,title,state,url
32
- output:
33
- type: json
34
- annotations:
35
- readOnlyHint: true
36
- openWorldHint: true
37
- ---
38
-
39
- # GitHub CLI
40
-
41
- Use this Caplet to expose read-oriented GitHub workflows through `gh` without giving the agent an unrestricted shell.
@@ -1,50 +0,0 @@
1
- ---
2
- $schema: https://raw.githubusercontent.com/spiritledsoftware/caplets/main/schemas/caplet.schema.json
3
- name: Linear
4
- description: Plan and track product work in Linear by reading teams, projects, cycles, issues, comments, and workflow state.
5
- tags:
6
- - planning
7
- - linear
8
- - issues
9
- - projects
10
- - triage
11
- mcpServer:
12
- transport: http
13
- url: https://mcp.linear.app/mcp
14
- auth:
15
- type: oauth2
16
- ---
17
-
18
- # Linear
19
-
20
- Use this Caplet when the agent needs live product planning context from Linear or needs to keep
21
- implementation work synchronized with issues, projects, and team workflows.
22
-
23
- ## Good Fits
24
-
25
- - Find the current issue or project that matches a requested feature.
26
- - Summarize open work by team, project, cycle, label, or assignee.
27
- - Draft issue breakdowns from a technical plan.
28
- - Add implementation notes or status comments after code changes.
29
- - Check whether a bug or feature already has active work before creating a new issue.
30
-
31
- ## Reference Files
32
-
33
- - [Workflows](./workflows.md): recommended lookup, planning, status update, and triage flows.
34
-
35
- ## Use Carefully
36
-
37
- - Linear issue updates are visible to teammates. Read first, then write deliberately.
38
- - Keep issue titles and comments concise; use links to detailed implementation artifacts when useful.
39
- - Avoid broad, noisy searches when a team key, issue ID, project, or label is available.
40
-
41
- ## Setup
42
-
43
- Authenticate once through Caplets:
44
-
45
- ```sh
46
- caplets auth login linear
47
- ```
48
-
49
- The Linear MCP endpoint supports OAuth. Caplets stores the resulting token bundle in your local
50
- Caplets auth store.
@@ -1,9 +0,0 @@
1
- # Linear Workflows
2
-
3
- Useful agent flows:
4
-
5
- - **Issue lookup**: search by issue key first, then by title or project if no key is provided.
6
- - **Planning**: read project context, summarize constraints, then create child issues only when the
7
- requested breakdown is clear.
8
- - **Status updates**: comment with what changed, verification run, and remaining risk.
9
- - **Triage**: group candidate issues by urgency, owner, and whether they are blocked.
@@ -1,37 +0,0 @@
1
- ---
2
- $schema: https://raw.githubusercontent.com/spiritledsoftware/caplets/main/schemas/caplet.schema.json
3
- name: Repository CLI
4
- description: Inspect and run common local repository workflows through curated CLI tools.
5
- tags:
6
- - cli
7
- - code
8
- cliTools:
9
- actions:
10
- git_status:
11
- description: Show concise Git working tree status.
12
- command: git
13
- args:
14
- - status
15
- - --short
16
- annotations:
17
- readOnlyHint: true
18
- git_current_branch:
19
- description: Print the current Git branch name.
20
- command: git
21
- args:
22
- - branch
23
- - --show-current
24
- annotations:
25
- readOnlyHint: true
26
- package_test:
27
- description: Run the repository test script with pnpm.
28
- command: pnpm
29
- args:
30
- - run
31
- - test
32
- timeoutMs: 120000
33
- ---
34
-
35
- # Repository CLI
36
-
37
- Use this Caplet to expose a small, typed set of local repository commands without giving an agent arbitrary shell access.