MCP-Server-Proyecto-

Desckars/MCP-Server-Proyecto-

3.2

If you are the rightful owner of MCP-Server-Proyecto- and would like to certify it and/or have it hosted online, please leave a comment on the right or send an email to henry@mcphub.com.

The Model Context Protocol (MCP) server is a versatile tool designed to facilitate communication between various AI models and applications, enabling seamless integration and data exchange.

Para mandar una consulta a Gemini desde el servidor MCP hay que modificar en la carpeta resources el archivo application.properties en la seccion de "google.gemini.api-key" camiar por la Api-Key de tu proyecto de Gemini. Esta la consigues de la siguiente forma: Inicias sesion en Google AI Studio y entras a este link" https://aistudio.google.com/apikey?hl=es-419&_gl=1*177foj1*_ga*MjExNDEwMjU2Mi4xNzU2MzI4NDEz*_ga_P1DBVKWT6V*czE3NTY5NTI0MzMkbzIkZzAkdDE3NTY5NTI0MzQkajU5JGwwJGg3MTIyNDQwODQ." O vas al apartado de Get API Key. Ahi hay un boton que dice +crear clave de API y la clave generada es la que ira en ese parte.

Para ejecutar el servidor MCP Necesitas tener Node.js en las variables de entorno del sistema(esto en Windows) asi como Maven JDK Ejecutar: mvn clean package Y despues: mvn spring-boot:run

Probar con Postman peticion a Gemini: Metodo:Get http://localhost:8081/api/ask-gemini?question=Cual es la capital de Uruguay

Probar con Postman peticion a O3: Para esto tener en cuenta que debe estar abierto el servidor de O3 Metodo:POST http://localhost:8081/api/mdx/query Body: Raw y elejis Text Peticion:SELECT {Measures.[Units Sold], Measures.[Cost]} ON COLUMNS, {Customers.Customers.[Major Accounts]} ON ROWS FROM Demo WHERE Measures.Discount

Configuracion de Claude Desktop { "mcpServers": { "MCP_O3_Server": { "command": "java", "args": [ "-Dspring.ai.mcp.server.stdio=true", "-Dspring.main.banner-mode=off", "-jar", "C:/Users/User/Desktop/Proyecto/MCP-Prueba/ProyectoIde/target/ProyectoIde-0.0.1-SNAPSHOT.jar" ] } } }