usando el mcp siempre ya no se necesita lllamar /planilla
All checks were successful
Deploy conversation layer / deploy (push) Successful in 22s
All checks were successful
Deploy conversation layer / deploy (push) Successful in 22s
This commit is contained in:
@@ -44,7 +44,8 @@ app.post('/', async (req, res) => {
|
|||||||
try {
|
try {
|
||||||
const contents = `Repo information: ${repoInfo}\nUser message: ${message}`;
|
const contents = `Repo information: ${repoInfo}\nUser message: ${message}`;
|
||||||
const config: any = {};
|
const config: any = {};
|
||||||
if (message.toLowerCase().includes('/planilla')) {
|
// if (message.toLowerCase().includes('/planilla')) {
|
||||||
|
if (true) {
|
||||||
console.log('Using Model Context Protocol tools ', MCP_URL);
|
console.log('Using Model Context Protocol tools ', MCP_URL);
|
||||||
const client = await getMcpClient();
|
const client = await getMcpClient();
|
||||||
config.tools = [mcpToTool(client)];
|
config.tools = [mcpToTool(client)];
|
||||||
|
|||||||
Reference in New Issue
Block a user