技能潮 SkillTide 提交收录
官方说明3 个来源MCP 服务3 天前
tersePrompts/fastMCP4J

tersePrompts/fastMCP4J

☕ 🏠 - Lightweight Java library for building MCP servers using annotations
在 GitHub 查看 ↗直链 · 无中转页
官方说明☕ 🏠 - Lightweight Java library for building MCP servers using annotations. Annotation-driven development with only 12 dependencies, built-in tools (memory, todo, planner, file ops, bash, telemetry), m
来源明细
收录自 rohitg00/awesome-devops-mcp-servers 榜单(我们从中收集的条目之一) · 条目类型:MCP 服务
收录与活跃
收录于 2026-10-14 · 最近见到 2026-10-16 · 共见到 4 次 · 被 3 个来源列出
评分构成
综合分 303 · 3 个来源 · mcp
常见问题(答案都来自我们的记录)
怎么安装?
我们【没有】从该仓库取到安装命令(我们的 install 覆盖率只有约 4%)。请看它的 README 或 releases 页。
它适合谁 / 用来做什么?
我们把它归在这些标签下: MCP 服务。标签来自条目自身,不是我们强加的分类。
谁维护它、还在更新吗?
我们收录于 2026-10-14;最近见到 2026-10-16。这里没有"官方认证"或"质量评级"——我们只记录来源与时间。
第三方质量标记

FastMCP4J

以下摘录自该仓库的 README(片段) · 在 GitHub 读完整 README →

**Annotate a Java class. Ship an MCP server.**
Tools, resources, prompts, memory — and a sandboxed bash terminal that can't
touch your machine. No boilerplate, no containers, no 50-jar framework.
**AI Agents →** Share this skill with Claude for code generation
FastMCP4J is an annotation-driven SDK for the
Model Context Protocol (spec 2.0.1) on
Java 17+. One annotation turns a class into an MCP server; one more gives your
AI agent a real terminal — **a bash sandbox where the host is unreachable by
construction**. Cold start in under 500 ms, twelve dependencies, everything
testable in-process.
> **Status**: beta (v0.5.0-beta) — API stable, 235 tests passing, published to
> Maven Central.
---
Quick start (2 minutes)
**Maven**
**Gradle**
That's the whole install story: **Java 17+**, one artifact on Maven Central,
MCP Java SDK 2.0.1 underneath. No annotation processor, no codegen step, no
container runtime.
Create your server
**That's it. Your MCP server is running.**
**Working example**: EchoServer.java
---
Why this exists
Every Java team wiring AI agents to tools faces the same choice, and every
option hurts:
| | Raw MCP SDK | Spring AI / LangChain4j | **FastMCP4J** |
|---|---|---|---|
| Lines per tool | 35+ | varies, plus framework glue | **~8** |
| Dependencies | 1 + your patience | 30–50+ jars | **12 jars** |
| Startup | fast | framework-sized | ** **Before:** a day of JSON-schema plumbing per tool, and shell access means a
> rogue prompt is a node down.
> **After:** annotations on Tuesday, agents in production Wednesday — and the
> terminal they use can't touch your disk.
---
The API tour
1 · Make a tool — sync or async
2 · Built-in brains — one annotation each
| Annotation | Tools you get |
|------------|---------------|
| @McpMemory | list, read, create, replace, insert, delete, rename |
| @McpTodo | add, list, updateStatus, updateTask, delete, clearCompleted |
| @McpPlanner | createPlan, listPlans, getPlan, addTask, addSubtask |
| @McpFileRead | readLines, readFile, grep, getStats |
| @McpFileWrite | writeFile, appendFile, writeLines, deleteFile, createDirectory |
3 · Sandboxed bash — give the agent a terminal, not your machine
Scripts run in a bashkit4j
in-memory sandbox: POSIX-style bash with 160+ commands re-implemented
natively, a virtual filesystem, network denied by default. **No real bash is
ever spawned.** Then the agent calls the bash tool:
| | Host shell (ProcessBuilder, Docker) | **Sandbox mode** |
|---|---|---|
| Real bash on the host | ✅ runs — full attack surface | **❌ never — bash re-implemented natively** |
| Host filesystem visible | ✅ all of it | **❌ invisible until you mount, read-only by default** |
| OS processes per command | ✅ one per call | **❌ zero — in-process** |
| Network access | ✅ open | **❌ denied by default** |
| One rogue script | node down | **sandbox reset** |
State persists across calls (cwd, env, files) — multi-step agent workflows
work. Mounts are enforced inside the native library: canonicalized,
symlink-safe, and impossible without allowMountsUnder. Need the real shell
for trusted automation? mode = BashMode.HOST keeps the legacy tool with its
path guardrails.
> Sandbox mode requires the optional
> io.github.terseprompts:bashkit4j:0.2.0 dependency — native libs for
> Windows/Linux/macOS (x86-64 + ARM64) are bundled and auto-detected.
> **🔭 Future scope — a third mode, BashMode.DOCKER.** The isolation ladder
> gets one more rung: HOST = the full computer (trusted use) → SANDBOX =
来源
awesome · https://github.com/tersePrompts/fastMCP4J
按领域浏览
MCP 服务
收录于
昨天

更多MCP 服务

查看MCP 服务全部 5,525 条 →

所属领域与标签

每个标签都能点进去看同类的全部条目。数字是当前库里的真实条数。

浏览全部领域 →

← 返回索引