-
-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathstart-http.js
More file actions
27 lines (23 loc) · 721 Bytes
/
Copy pathstart-http.js
File metadata and controls
27 lines (23 loc) · 721 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
const { ClaudeFafMcpServer } = require('./dist/src/server.js');
async function main() {
const port = process.env.PORT || 3001;
const host = process.env.HOST || '0.0.0.0';
const server = new ClaudeFafMcpServer({
transport: 'http-sse',
port: port,
host: host,
fafEnginePath: 'faf',
debug: true,
cors: true
});
await server.start();
console.log(`FAF MCP Server started on ${host}:${port}`);
console.log('Endpoints:');
console.log(` Health: http://${host}:${port}/health`);
console.log(` Info: http://${host}:${port}/info`);
console.log(` SSE: http://${host}:${port}/sse`);
}
main().catch((error) => {
console.error('Failed to start:', error);
process.exit(1);
});