Skip to content

Commit ebae50f

Browse files
sigodenmatias-ceau
authored andcommitted
refactor(mcp): change mcp: <name> for mcp tool declarations (sigoden#151)
1 parent e0d7a9e commit ebae50f

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

mcp/bridge/index.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ async function startMcpServer(id, serverConfig) {
4646
name: `${formatToolName(id, name, prefix)}`,
4747
description,
4848
parameters: inputSchema,
49+
mcp: id,
4950
},
5051
impl: async args => {
5152
const res = await client.callTool({

scripts/mcp.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ start() {
2222
index_js="$(cygpath -w "$index_js")"
2323
llm_functions_dir="$(cygpath -w "$llm_functions_dir")"
2424
fi
25-
echo "Run MCP Bridge server"
25+
echo "Start MCP Bridge server..."
2626
nohup node "$index_js" "$llm_functions_dir" > "$MCP_DIR/mcp-bridge.log" 2>&1 &
2727
wait-for-server
2828
echo "Merge MCP tools into functions.json"
@@ -114,7 +114,7 @@ recovery-functions() {
114114

115115
# @cmd Generate function declarations for the mcp tools
116116
generate-declarations() {
117-
curl -sS http://localhost:$MCP_BRIDGE_PORT/tools | jq '.[] |= . + {mcp: true}'
117+
curl -sS http://localhost:$MCP_BRIDGE_PORT/tools
118118
}
119119

120120
# @cmd Wait for the mcp bridge server to ready

0 commit comments

Comments
 (0)