Commit graph

69 commits

Author SHA1 Message Date
Joan Xie
6bfd100b60
feat: export CURRENT_MANIFEST_VERSION from schemas index 2025-09-24 13:53:13 -07:00
Joan Xie
336e878252
fix: add dxt_version support to v0.2 schemas with deprecation notice 2025-09-24 13:51:40 -07:00
Joan Xie
9f078c6163
fix: add deprecation notice to dxt_version in v0.1 schemas 2025-09-24 13:50:16 -07:00
Joan Xie
16f173824c
fix: correct strict schemas for v0.1 and v0.2 2025-09-24 13:48:52 -07:00
Joan Xie
3d9c966951
fix: rename CURRENT_MANIFEST_VERSION to MANIFEST_VERSION and set correct versions 2025-09-24 13:45:19 -07:00
Joan Xie
2e9e70c5ff
fix: update schema imports to versioned paths 2025-09-24 13:43:02 -07:00
Joan Xie
8e2ec66564
fix: add privacy_policies and passthrough to loose schema v0.2 2025-09-24 13:42:03 -07:00
Joan Xie
a43769d94b
feat: restructure schemas into versioned folders
- Move schemas.ts and schemas-loose.ts into separate versioned folders
- Create schemas/0.1.ts and schemas/0.2.ts for strict validation
- Create schemas_loose/0.1.ts and schemas_loose/0.2.ts for loose validation
- Add index files to export all historical schema versions
- Update all imports to use schemas/0.2.ts
- Enforce exact version values using z.literal() for both v0.1 and v0.2
- Remove dxt_version support from v0.2 schemas
- Remove all passthrough() from v0.2 strict schemas
- Validate privacy_policies as URLs in v0.2

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-09-24 13:42:03 -07:00
adam jones
9ac5d8806c
Merge pull request #104 from asklar/patch-1
Change syntax highlighting to jsonc in MANIFEST.md
2025-09-24 11:47:21 +01:00
adam jones
f2284f6681
Merge pull request #108 from nicolasff/manifest-md-jsonc-syntax
docs: use jsonc syntax highlighting for manifest example
2025-09-24 11:47:01 +01:00
adam jones
8c231cfbdb
Merge pull request #111 from anthropics/jwei/push-for-node
Add language choice recommendation to readme
2025-09-24 11:46:35 +01:00
Justin Wei
454b0be584
Add language choice recommendation to readme 2025-09-23 20:22:21 -04:00
joan-anthropic
c2d42b3e0a
Merge pull request #109 from anthropics/feat/validate-manifest-version-in-pack v1.1.1
feat: validate manifest version during pack command
2025-09-22 15:42:51 -07:00
Joan Xie
b7a2acb969
bump version 2025-09-22 15:32:23 -07:00
Joan Xie
e772ed753d
fix: update test to match new validation message
🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-09-22 15:28:42 -07:00
Joan Xie
232e6b3f91
improve schema validation logs 2025-09-22 15:17:16 -07:00
Joan Xie
16e569a337
fix examples 2025-09-22 14:59:42 -07:00
Joan Xie
f92fe4ab69
feat: validate manifest version during pack command
Add validation to ensure the manifest_version matches the current expected
version (0.2) during the mcpb pack command. This prevents users from
packing extensions with outdated or incorrect manifest versions.

Changes:
- Add CURRENT_MANIFEST_VERSION constant to centralize version management
- Validate manifest version in pack command before creating bundle
- Update init command to use version constant
- Update tests to use version constant
- Fix prettier formatting issues
2025-09-22 14:43:28 -07:00
Nicolas Favre-Felix
9fce5b58d9
docs: use jsonc syntax highlighting for manifest example
The example at the start of MANIFEST.md uses // comments in a ```json
code block, which are highlighted as errors on GitHub. Change this
syntax hint to ```jsonc (JSON with comments) for better rendering.
2025-09-20 07:32:09 -07:00
Alexander Sklar
8ce2cc3840
Change syntax highlighting to jsonc in MANIFEST.md
fix json -> jsonc in manifest.md
2025-09-16 00:10:49 -07:00
joan-anthropic
2825da1d6a
Merge pull request #100 from anthropics/bump-version-1.1.0 v1.1.0
chore: bump version to 1.1.0
2025-09-12 13:48:34 -07:00
Joan Xie
a65e7d0c59
chore: bump version to 1.1.0 2025-09-12 13:15:49 -07:00
joan-anthropic
b991c5fcfc
Merge pull request #99 from anthropics/feat/add-privacy-policies-to-manifest
feat: add privacy_policies field to manifest schema
2025-09-12 13:11:21 -07:00
Joan Xie
bc129a7223
docs: bump manifest version to 0.2
Update manifest spec version from 0.1 to 0.2 to reflect the addition
of the privacy_policies field. Update last updated date to current date.
2025-09-12 12:04:38 -07:00
Joan Xie
9d62ba5d50
docs: clarify privacy_policies field description for external services
Update the privacy_policies field description to be more specific about
its purpose - linking to privacy policies of external services that
handle user data, as required for extensions connecting to first- or
third-party services.
2025-09-12 12:02:52 -07:00
Joan Xie
bd7fdf7e3c
docs: update privacy_policies example to show single URL
Simplify the privacy_policies field example in the documentation to
show a single privacy policy URL.
2025-09-12 11:59:18 -07:00
Joan Xie
a48002ec69
feat: add privacy_policies field to manifest schema
Add optional privacy_policies array field to manifest.json that allows
developers to declare their data handling practices. This field accepts
an array of privacy policy statements that describe how the extension
collects, uses, and protects user data.

- Update manifest schema to include privacy_policies field
- Add empty privacy_policies array to all example manifests
- Document the new field in MANIFEST.md
2025-09-12 11:53:11 -07:00
joan-anthropic
241c65be00
Merge pull request #92 from anthropics/joan/rename-dxt-mcpb v1.0.0
chore: rename DXT -> MCP Bundle (MCPB)
2025-08-28 11:46:01 -07:00
Joan Xie
841698fbe2
update README - project "is being renamed" 2025-08-28 11:14:47 -07:00
Joan Xie
5a46a05108
Revert "feat: replace manifest_version with $schema field"
This reverts commit 7997e72758.
2025-08-27 11:24:18 -07:00
Joan Xie
1de373a9c9
docs: update package rename notice to future tense 2025-08-27 10:51:03 -07:00
Joan Xie
7997e72758
feat: replace manifest_version with $schema field
- Replace manifest_version with $schema field pointing to official schema URL
- Support backward compatibility with legacy dxt_version field
- Update all examples and tests to use new $schema field
- Mark dxt_version as deprecated but still functional
- Require either $schema or dxt_version (at least one must be present)
2025-08-27 10:38:57 -07:00
Joan Xie
cd922a0704
update package version 2025-08-26 13:28:18 -07:00
Joan Xie
76949836e0
fix: update schema to reflect manifest_version 2025-08-25 21:09:45 -07:00
Joan Xie
cc7b6cde44
Remove 'For App Developers' section from README
This section was added alongside the rename but is not necessary for the dxt -> mcpb rename itself. Removing to keep the rename commit focused on just the naming changes.
2025-08-22 13:08:57 -07:00
Joan Xie
0b2658f5b0
lint 2025-08-21 15:28:01 -07:00
Joan Xie
e1938b9933
rename dxt -> mcpb 2025-08-21 14:56:54 -07:00
Felix Rieseberg
bf01918080
fix: allow repeat runs of "dxt clean" (#83) 2025-07-31 13:07:28 -07:00
Jacob
b062c0efad
fix: missing extension directory prefix in 'mcp_config' of python (#80) 2025-07-23 09:55:54 -07:00
Felix Rieseberg
4fbb2aed2c
chore: bump version to 0.2.6 (#76) v0.2.6 2025-07-20 14:08:24 -07:00
Felix Rieseberg
7c9d61d9e6
chore: A round of "yarn fix" for everyone (#75) 2025-07-18 10:09:52 -07:00
David Dworken
08b34f4f76
fix: prevent zip slip attacks in DXT unpack function (#74)
* fix: prevent zip slip attacks in DXT unpack function

Add path validation to prevent directory traversal attacks when unpacking DXT files.
The fix validates that extracted file paths remain within the intended output directory
before writing files to disk.

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>

* fix: make zip slip protection cross-platform compatible

Use path.sep instead of hardcoded '/' separator to ensure path validation
works correctly on both Windows and Unix systems. This fixes failing tests
on Windows while maintaining security protection against directory traversal.

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>

---------

Co-authored-by: Claude <noreply@anthropic.com>
2025-07-18 09:35:32 -07:00
Felix Rieseberg
a3ba5fc984
v0.2.5 (#69) v0.2.5 2025-07-13 14:31:02 -07:00
Samuel Attard
505c81a258
feat: add clean command to clean manifest and trip dev deps for node (#67)
* feat: add clean command to clean manifest and trip dev deps for node

* fix: lazy import no loop

* Update src/cli/cli.ts

Co-authored-by: Felix Rieseberg <f@anthropic.com>

---------

Co-authored-by: Felix Rieseberg <f@anthropic.com>
2025-07-11 15:30:08 -07:00
Samuel Attard
9523b5af19
fix: strictly validate manifests (#66)
* fix: strictly validate manifests

* spec: align tests with strict schema
2025-07-11 14:36:52 -07:00
Felix Rieseberg
641213ad47
chore: v0.2.4 (#62) v0.2.4 2025-07-10 16:12:59 -07:00
Samuel Attard
2dcc7efe6f
fix: handle invalid values in arrays (#61) 2025-07-10 16:10:48 -07:00
Felix Rieseberg
6f4ed9d662
0.2.3 (#60) v0.2.3
* fix: Go back to zod/v3

* chore: v0.2.3
2025-07-10 15:32:56 -07:00
Felix Rieseberg
e2a87144e9
fix: Go back to zod/v3 (#59) 2025-07-10 15:31:26 -07:00
Felix Rieseberg
a9544e29a7
chore: v0.2.2 (#58) v0.2.2 2025-07-10 09:46:50 -07:00