feat: enhanced structural validation for mcpb validate (#57)
Add three pre-pack validators to catch common runtime failures early:
- validateEntryPoint: checks file exists, extension matches server type,
binary has executable bit (Unix)
- validateCommandVariables: scans mcp_config for unrecognized ${...}
variables against the runtime allowlist
- validateSensitiveFiles: warns about credentials.json, *.pem, *.key,
.ssh/, etc. that would be bundled
validateManifest() now accepts optional { projectDir } to separate the
manifest directory from the source file directory.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
parent
1dca91e2be
commit
f14863bcdc
1 changed files with 629 additions and 8 deletions
1
test/server/index.js
Normal file
1
test/server/index.js
Normal file
|
|
@ -0,0 +1 @@
|
|||
// test fixture
|
||||
Loading…
Reference in a new issue