Enable npx execution for MCP server
Remove import.meta.url entry point guard that prevented npx from invoking main(), and bump version to 0.1.7. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@ironclads/incus-mcp",
|
"name": "@ironclads/incus-mcp",
|
||||||
"version": "0.1.6",
|
"version": "0.1.7",
|
||||||
"description": "MCP server for Incus container management",
|
"description": "MCP server for Incus container management",
|
||||||
"main": "build/index.js",
|
"main": "build/index.js",
|
||||||
"type": "module",
|
"type": "module",
|
||||||
|
|||||||
10
src/index.ts
10
src/index.ts
@@ -343,9 +343,7 @@ async function main() {
|
|||||||
await server.run();
|
await server.run();
|
||||||
}
|
}
|
||||||
|
|
||||||
if (import.meta.url === `file://${process.argv[1]}`) {
|
main().catch((error) => {
|
||||||
main().catch((error) => {
|
console.error('Server error:', error);
|
||||||
console.error('Server error:', error);
|
process.exit(1);
|
||||||
process.exit(1);
|
});
|
||||||
});
|
|
||||||
}
|
|
||||||
Reference in New Issue
Block a user