Upgrade to Pro — share decks privately, control downloads, hide ads and more …

CSC310 Lecture 20

CSC310 Lecture 20

MCP
(20260824)

Avatar for Javier Gonzalez-Sanchez

Javier Gonzalez-Sanchez PRO

November 08, 2026

More Decks by Javier Gonzalez-Sanchez

Other Decks in Programming

Transcript

  1. CSC 3100 Fundamentals of Software Engineering Lecture 20. Model Context

    Protocol Dr. Javier Gonzalez-Sanchez [email protected] www.javiergs.phd ffi o ce: 14 -227
  2. Model Context Protocol (MCP) a a a a st nd

    rd w y to discover nd c ll tools in other a a a a a • MCP gives AI pplic tions softw re.
  3. MCP is a restaurant menu Customer Waiter Menu User request

    Claude MCP tool list Order Kitchen Dish MCP tool call Lambda / REST API Tool result
  4. A menu needs descriptions BAD MENU USEFUL MENU Dish 1

    convert_temperature Dish 2 “Convert Fahrenheit and Celsius” Dish 3 Inputs: value, from, to
  5. MCP: two operations 1 tools/list 2 tools/call Server advertises tool

    names, descriptions, and input schemas. Claude chooses a tool and supplies validated arguments. Claude chooses the tool. The server executes it.
  6. Model Context Protocol (MCP) • In the ex mple Cl

    ude Desktop discovers the tools the J v server o ers, including get_position, move, nd set_pen. • When Cl ude c lls move with dx = 40 nd dy = 0, the J v server moves the cursor 40 pixels to the right nd returns its new position. If the pen is down, the c nv s shows line. ff a a a a a a a a a a a a a a a a a a a • Cl ude chooses the ction. J v performs it nd reports the result.
  7. One MCP tool call { "jsonrpc": "2.0", "id": 3, "method":

    "tools/call", "params": { "name": "move", "arguments": {"dx": 40, "dy": 0} } }
  8. Claude Desktop setup · the JAR Install Claude Desktop. Download

    the runnable JAR from GitHub Releases, or build it from the repository folder with Maven. mvn clean verify java -jar target/mcp-paint-1.0.jar realpath target/mcp-paint-1.0.jar The last command prints the absolute path you’ll paste into Claude’s config.
  9. Claude Desktop setup · the con ig ile Open claude_desktop_config.json

    - macOS - Windows ~/Library/Application Support/Claude %APPDATA%\Claude If mcpServers already exists, add only the mcp-paint entry inside it. Save, fully quit Claude Desktop, and reopen it. { "mcpServers": { "mcp-paint": { "command": "/absolute/path/to/jdk/bin/java", "args": [ "-jar", "/absolute/path/to/mcp-paint-1.0.jar" ] } } } f f Replace both paths with your own.
  10. CSC 3100 Fundamentals of Software Engineering Javier Gonzalez-Sanchez, Ph.D. [email protected]

    Fall 2026 Copyright Notice. These slides are provided exclusively for educational use in CSC 3100 within the California State University system. Redistribution or use for any other purpose is prohibited without prior written permission.