mirror of
https://github.com/Jeuners/ECC.git
synced 2026-09-09 15:02:30 +02:00
fix: disable claude plugin bundled mcps
This commit is contained in:
parent
d49f0329a9
commit
0c61710c43
5 changed files with 61 additions and 2 deletions
|
|
@ -217,6 +217,24 @@ test('claude plugin.json commands is an array', () => {
|
|||
assert.ok(Array.isArray(claudePlugin.commands), 'Expected commands to be an array');
|
||||
});
|
||||
|
||||
test('claude plugin.json disables bundled MCP servers for provider tool-name compatibility', () => {
|
||||
const reportedOverlongToolName = `mcp__plugin_${claudePlugin.name}_github__create_pull_request_review`;
|
||||
|
||||
assert.ok(
|
||||
reportedOverlongToolName.length > 64,
|
||||
'Expected the reported GitHub MCP tool name to exceed strict provider limits without the MCP opt-out',
|
||||
);
|
||||
assert.ok(
|
||||
Object.prototype.hasOwnProperty.call(claudePlugin, 'mcpServers'),
|
||||
'Expected mcpServers to be explicitly declared so Claude Code does not auto-load root .mcp.json',
|
||||
);
|
||||
assert.deepStrictEqual(
|
||||
claudePlugin.mcpServers,
|
||||
{},
|
||||
'Claude plugin installs must not auto-bundle root MCP servers; document/manual MCP install remains supported',
|
||||
);
|
||||
});
|
||||
|
||||
test('claude plugin.json does NOT have explicit hooks declaration', () => {
|
||||
assert.ok(
|
||||
!('hooks' in claudePlugin),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue