server.mjs
20 lines 577 B
Raw
sha256:c2dbf04d56308f3bbf2d06e6d2eb022b8948b1e827195fe525a44e5e18d5f9c0 feat(auth): Phase B Connect cloud agent (RFC 8628) + Hermes… Human minor ⚠ breaking 12 days ago
1 #!/usr/bin/env node
2 /**
3 * Knowtation MCP entry: stdio (default) or Streamable HTTP when MCP_TRANSPORT=http
4 * (or KNOWTATION_MCP_TRANSPORT=http). Run: node mcp/server.mjs | knowtation mcp
5 */
6
7 import '../lib/load-env.mjs';
8
9 const useHttp =
10 process.env.MCP_TRANSPORT === 'http' || process.env.KNOWTATION_MCP_TRANSPORT === 'http';
11
12 if (useHttp) {
13 const { startKnowtationMcpHttp } = await import('./http-server.mjs');
14 startKnowtationMcpHttp().catch((err) => {
15 console.error(err.message || err);
16 process.exit(1);
17 });
18 } else {
19 await import('./stdio-main.mjs');
20 }
File History 1 commit
sha256:93bcf8f9bd56d8c5b9339f4ec73b9ebd66571398d56262d38eedc2cfa9db9882 fix(test): align Band B landing assertion with desktop MCP … Human 12 days ago