Skip to content

Commit 5c97e9a

Browse files
MCP prototype (#120)
Co-authored-by: Jakub Schwenkbeck <168542356+JakubSchwenkbeck@users.noreply.github.com>
1 parent c1ff8b7 commit 5c97e9a

25 files changed

Lines changed: 2197 additions & 3871 deletions

esbuild.js

Lines changed: 24 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -65,14 +65,35 @@ async function main() {
6565
logLevel: 'silent',
6666
});
6767

68+
const mcpCtx = await esbuild.context({
69+
entryPoints: ['src/mcp/index.ts'],
70+
bundle: true,
71+
platform: 'node',
72+
format: 'cjs',
73+
outfile: 'dist/mcp/server.js',
74+
sourcemap: false,
75+
minify: false,
76+
banner: { js: '#!/usr/bin/env node' },
77+
logLevel: 'silent',
78+
plugins: [
79+
copyPlugin({
80+
assets: {
81+
from: ['src/mcp/effekt.instructions.md'],
82+
to: ['.'],
83+
},
84+
}),
85+
],
86+
});
87+
6888
if (watch) {
69-
await Promise.all([extCtx.watch(), webCtx.watch()]);
89+
await Promise.all([extCtx.watch(), webCtx.watch(), mcpCtx.watch()]);
7090
} else {
71-
await Promise.all([extCtx.rebuild(), webCtx.rebuild()]);
72-
await Promise.all([extCtx.dispose(), webCtx.dispose()]);
91+
await Promise.all([extCtx.rebuild(), webCtx.rebuild(), mcpCtx.rebuild()]);
92+
await Promise.all([extCtx.dispose(), webCtx.dispose(), mcpCtx.dispose()]);
7393
}
7494
}
7595

96+
7697
/**
7798
* @type {import('esbuild').Plugin}
7899
*/

0 commit comments

Comments
 (0)