AgentStack
Browse Sign in
Browse Why AgentStack Sell Docs
Sign in
MCP verified MIT Self-run

Custom Mcp Server

mcp-kayroone-custom-mcp-server · by kayroone

A custom MCP server - small project for learning MCP. :)

No reviews yet
0 installs
21 views
0.0% view→install

Install

$ agentstack add mcp-kayroone-custom-mcp-server

✓ scanned · ✓ verified, works with Claude Code, Cursor, and more.

Security review

✓ Passed

No 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.

View the full security report →

Verified badge

Passed review? Show it. Paste this badge into your README, it links to the public security report.

AgentStack Verified badge Links to your public security report.
[![AgentStack Verified](https://agentstack.voostack.com/badges/verified.svg)](https://agentstack.voostack.com/security/report/mcp-kayroone-custom-mcp-server)

Reliability & compatibility

Security review passed
0 installs to date
no reviews yet
10mo ago

Declared compatibility

Claude CodeClaude DesktopCursorWindsurf

Compatibility is declared by the source manifest. End-to-end runtime verification is coming, see below.

Preview Execution monitoring

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 →
Are you the author of Custom Mcp Server? Claim this listing to set pricing, connect Stripe payouts, and keep 70% of every sale.
Sign up to claim

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.

Install and usage instructions live in the source repository linked above.

Reviews

No reviews yet, be the first.

Versions

  • v0.1.0 Imported from the upstream source.