Arithmetic + Logic MCP Implementation - #2
Closed
Alexandre-Roussel48 wants to merge 7 commits into
Closed
Alexandre-Roussel48 wants to merge 7 commits into
Alexandre-Roussel48 wants to merge 7 commits into
Conversation
Alexandre-Roussel48
marked this pull request as draft
November 15, 2025 23:26
Repository owner
locked as resolved and limited conversation to collaborators
Nov 16, 2025
Repository owner
unlocked this conversation
Nov 16, 2025
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This pull request introduces the implementation of an Arithmetic + Logic MCP (Model Context Protocol) server in Scala 3 using ZIO and Circe. It establishes a modular, layered architecture for a JSON-RPC server over STDIO, providing arithmetic and logic tools for editor integrations such as VS Code with Copilot Agent Mode. The changes include project setup, a comprehensive README, the main application entrypoint, configuration and data models for the MCP protocol, error handling, and the initial routing and handler layers.
The most important changes are:
Project Setup & Documentation
README.mddescribing the server's purpose, architecture, usage with Docker and VS Code, Copilot Agent Mode requirements, and testing approach.build.propertiesspecifying sbt version andplugins.sbtadding the assembly plugin for packaging. [1] [2]Core Application & Architecture
Main.scala, composing ZIO layers for configuration, session, tool registry, routing, and STDIO transport, and implementing the main loop for handling JSON-RPC messages.ServerConfig.scala, including server metadata and capabilities, exposed as a ZIO layer.Protocol & Data Models
JsonRpcMessage.scala), error codes (JsonRpcError.scala), and request IDs (JsonRpcId.scala). [1] [2] [3]Routing & Error Handling
InitializeHandler.scalafor handling initialization requests, andErrorMapping.scalafor mapping internal errors to JSON-RPC error responses. [1] [2]These changes lay the foundation for a robust, testable MCP server providing arithmetic and logic tools over a standard protocol for editor integrations.
Project Setup & Documentation:
README.mdand project build files (build.properties,plugins.sbt). [1] [2] [3]Core Application & Architecture:
Main.scalawith ZIO layer composition and main server loop.ServerConfig.scalaas a ZIO layer.Protocol & Data Models:
Routing & Error Handling:
InitializeHandlerfor initialization requests andErrorMappingfor error translation. [1] [2]