mcp-server-demo

mcp-server-demo

3.1

If you are the rightful owner of mcp-server-demo 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 MCP Server Demo project demonstrates the process of using a large model to call an MCP Server to execute a Spark task.

The MCP Server Demo project is designed to showcase the integration of large language models (LLMs) with the Model Context Protocol (MCP) Server to execute Spark tasks. This project is particularly useful for users of Alibaba Cloud's BaiLian platform, which allows the combination of models with self-built MCPs. However, due to resource constraints, the project uses alternative services to complete the process. The workflow involves obtaining a trial token from BaiLian Cloud, using VS Code with the cline plugin as the MCP host, and configuring the cline to use the Qianwen model. The local MCP server is set up to be called by the model, and the MCP Server Demo is developed using Spring AI for rapid development. The tool method provides an entry point for calling the previous task. The process includes asking the model to start a Spark task via MCP Server, approving the request, executing the task, and returning the execution information to the model, which then relays it to the user.

Features

  • Integration with Alibaba Cloud's BaiLian platform for model and MCP combination.
  • Use of VS Code with cline plugin as MCP host.
  • Configuration of local MCP server for model invocation.
  • Development using Spring AI for quick setup.
  • Execution of Spark tasks via MCP Server with auto-approval options.