fa-mcp-sdk 0.2.106 → 0.2.108
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
<component name="ProjectRunConfigurationManager">
|
|
2
|
+
<configuration default="false" name="kill-port {{port}}" type="NodeJSConfigurationType" application-parameters="3030" path-to-js-file="scripts/kill-port.js" working-dir="$PROJECT_DIR$">
|
|
3
|
+
<method v="2" />
|
|
4
|
+
</configuration>
|
|
5
|
+
</component>
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
<svg xmlns="http://www.w3.org/2000/svg"
|
|
2
|
-
<
|
|
3
|
-
d="m 17.622437,19.155864 v -2.611959 h 2.251659 v 2.611959 H 22.468 v 2.251688 h -2.593904 v 2.581936 h -2.251659 v -2.581936 h -2.632933 v -2.251688 z m -5.686183,2.592444 v 2.251688 H 1.4 V 0 H 22.404961 V 15.011256 H 20.153302 V 2.251689 H 3.6516577 V 21.748308 H 11.937755 Z M 7.4959862,7.535651 V 6.034525 h 8.9705968 v 1.501126 z m 0.02402,4.552914 v -1.501126 h 8.9180578 v 1.501126 z m 0.02252,4.420814 v -1.501125 h 5.9278628 v 1.501125 z" />
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16">
|
|
2
|
+
<rect width="16" height="16" fill="${appConfig.uiColor.primary || '#007ACC'}"/>
|
|
4
3
|
</svg>
|
|
@@ -1,8 +1,6 @@
|
|
|
1
1
|
// Import all project data from existing files
|
|
2
2
|
// @ts-ignore
|
|
3
|
-
import { appConfig, initMcpServer, McpServerData } from 'fa-mcp-sdk';
|
|
4
|
-
import { readFileSync } from 'fs';
|
|
5
|
-
import { join } from 'path';
|
|
3
|
+
import { appConfig, initMcpServer, McpServerData, getAsset } from 'fa-mcp-sdk';
|
|
6
4
|
import { tools } from './tools/tools.js';
|
|
7
5
|
import { handleToolCall } from './tools/handle-tool-call.js';
|
|
8
6
|
import { AGENT_BRIEF } from './prompts/agent-brief.js';
|
|
@@ -20,17 +18,7 @@ const isConsulProd = (process.env.NODE_CONSUL_ENV || process.env.NODE_ENV) === '
|
|
|
20
18
|
*/
|
|
21
19
|
const startProject = async (): Promise<void> => {
|
|
22
20
|
// Read favicon from assets
|
|
23
|
-
const
|
|
24
|
-
let favicon: string;
|
|
25
|
-
|
|
26
|
-
try {
|
|
27
|
-
favicon = readFileSync(faviconPath, 'utf-8');
|
|
28
|
-
} catch (_error) {
|
|
29
|
-
// Fallback if favicon not found
|
|
30
|
-
favicon = `<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16">
|
|
31
|
-
<rect width="16" height="16" fill="${appConfig.uiColor.primary || '#007ACC'}"/>
|
|
32
|
-
</svg>`;
|
|
33
|
-
}
|
|
21
|
+
const favicon = getAsset('favicon.svg')!;
|
|
34
22
|
|
|
35
23
|
// Assemble all data to pass to the core
|
|
36
24
|
const serverData: McpServerData = {
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "fa-mcp-sdk",
|
|
3
3
|
"productName": "FA MCP SDK",
|
|
4
|
-
"version": "0.2.
|
|
4
|
+
"version": "0.2.108",
|
|
5
5
|
"description": "Core infrastructure and templates for building Model Context Protocol (MCP) servers with TypeScript",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"main": "dist/core/index.js",
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
<component name="ProjectRunConfigurationManager">
|
|
2
|
-
<configuration default="false" name="kill-port 3030" type="NodeJSConfigurationType" application-parameters="3030" path-to-js-file="scripts/kill-port.js" working-dir="$PROJECT_DIR$">
|
|
3
|
-
<method v="2" />
|
|
4
|
-
</configuration>
|
|
5
|
-
</component>
|