Install
$ agentstack add mcp-kayroone-custom-mcp-server ✓ scanned · ✓ verified, works with Claude Code, Cursor, and more.
Security review
✓ PassedNo issues found. Passed automated security review. · v0.1.0 How review works →
- ✓ Prompt-injection patterns
- ✓ Secret / credential exfiltration
- ✓ Dangerous shell & filesystem operations
- ✓ Untrusted network calls
- ✓ Known-malicious package signatures
What it can access
- ✓ Network access No
- ✓ Filesystem access No
- ✓ Shell / process execution No
- ✓ Environment & secrets No
- ✓ Dynamic code execution No
From automated source analysis of v0.1.0. “Used” means the capability is present in the source — more access means more to trust, not that it’s unsafe.
Verified badge
Passed review? Show it. Paste this badge into your README, it links to the public security report.
Reliability & compatibility
Declared compatibility
Compatibility is declared by the source manifest. End-to-end runtime verification is coming, see below.
We're building live execution health for every listing: tool-call success rate, median latency, uptime, and last-checked timestamps, measured, not self-reported. It isn't live yet, so we don't show numbers we can't stand behind.
How agent discovery & health will work →About
Custom MCP Server
Ein Lernprojekt zur Implementierung eines MCP (Model Context Protocol) Servers in Java.
Projektbeschreibung
Dieses Projekt dient dem Erlernen der Grundlagen des Model Context Protocol (MCP). Der Fokus liegt auf dem Verständnis, wie MCP Server funktionieren und wie sie mit Clients kommunizieren.
Technologie-Stack
- Java 17
- Spring Boot 3.2.0 - Dependency Injection und Application Framework
- Maven - Build-Tool
- Jackson - JSON Serialisierung/Deserialisierung
- Lombok - Reduzierung von Boilerplate Code
Projekt-Architektur
Das Projekt folgt dem ECB-Pattern (Entity-Control-Boundary):
src/main/java/com/mcpserver/
├── entity/ # Domain-Objekte und Datenstrukturen
│ ├── JsonRpcRequest.java
│ ├── JsonRpcResponse.java
│ ├── JsonRpcError.java
│ ├── Tool.java
│ ├── Resource.java
│ └── ServerCapabilities.java
├── control/ # Business-Logik und Koordination
│ ├── McpServer.java
│ └── McpRequestHandler.java
└── boundary/ # Schnittstellen nach außen (I/O)
└── StdioTransport.java
Build und Ausführung
Projekt bauen
mvn clean install
Server starten
mvn spring-boot:run
JAR bauen und ausführen
mvn package
java -jar target/custom-mcp-server-1.0-SNAPSHOT.jar
MCP Konzepte
Der Server implementiert die folgenden MCP-Kernkonzepte:
- JSON-RPC 2.0: Kommunikationsprotokoll zwischen Client und Server
- stdio Transport: Kommunikation über Standard Input/Output
- Tools: Funktionen, die der Client aufrufen kann (z.B.
echo) - Initialize Handshake: Capability-Negotiation beim Server-Start
Wie funktioniert MCP?
Das folgende Sequenzdiagramm zeigt den kompletten Ablauf einer MCP-Interaktion:
sequenceDiagram
participant User
participant Client as Claude Desktop(MCP Client)
participant LLM as Claude LLM
participant Server as MCP Server(Java)
Client->>Server: initialize
Server-->>Client: Server Info + Capabilities
Client->>Server: tools/list
Server-->>Client: Tools (name, description, inputSchema)
Client->>LLM: Tools verfügbar machen
User->>Client: "Lese todo.txt"
Client->>LLM: User-Anfrage + Tools
Note over LLM: Analysiert und wähltpassendes Tool
LLM->>Client: Tool Call: read_file
Client->>Server: tools/call {name: "read_file", arguments: {...}}
Server->>Server: Datei lesen
Server-->>Client: Tool Result (Dateiinhalt)
Client->>LLM: Tool-Ergebnis
LLM->>Client: Generierte Antwort
Client->>User: "In deiner todo.txt steht: ..."
Aktueller Stand
Implementierte Features:
- [x] JSON-RPC 2.0 Request/Response Handling
- [x] stdio Transport Layer
- [x] Initialize Handshake
- [x] Tool Listing (
tools/list) - [x] Tool Execution (
tools/call) mit Echo-Beispiel
Geplante Features:
- [ ] Resources (Datenquellen)
- [ ] Prompts (Template-System)
- [ ] Erweiterte Tool-Implementierungen
- [ ] Error Handling und Logging
Lizenz
MIT License - siehe [LICENSE](LICENSE)
Source & license
This open-source MCP server is cataloged on AgentStack and links to its original source — we do not rehost the code.
- Author: kayroone
- Source: kayroone/custom-mcp-server
- License: MIT
Install and usage instructions live in the source repository linked above.
Reviews
No reviews yet, be the first.
Write a review
Versions
- v0.1.0 Imported from the upstream source.