Skip to content

Commit 45eee13

Browse files
committed
Final v1.0.0 polish: fix license badge and add defensive error handling
- Replace auto-detect license badge with hardcoded BUSL-1.1 badge - Update package.json license field to BUSL-1.1 - Update CHANGELOG.md release date to 2025-08-30 - Add try/catch error handling to POST /mcp endpoint for consistency
1 parent abcd596 commit 45eee13

File tree

4 files changed

+18
-4
lines changed

4 files changed

+18
-4
lines changed

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
77

88
## [Unreleased]
99

10-
## [1.0.0] - TBD
10+
## [1.0.0] - 2025-08-30
1111

1212
### Added
1313
- Complete MCP (Model Context Protocol) server implementation

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# FPE Demo MCP — FF3 Format Preserving Encryption Server
22

3-
![Version](https://img.shields.io/github/v/tag/Horizon-Digital-Engineering/fpe-demo-mcp?label=version&color=blue) ![License](https://img.shields.io/github/license/Horizon-Digital-Engineering/fpe-demo-mcp?color=green) ![CI](https://github.com/Horizon-Digital-Engineering/fpe-demo-mcp/actions/workflows/ci.yml/badge.svg) ![Node](https://img.shields.io/badge/node-%3E%3D18-brightgreen) ![TypeScript](https://img.shields.io/badge/TypeScript-5.0+-blue)
3+
![Version](https://img.shields.io/github/v/tag/Horizon-Digital-Engineering/fpe-demo-mcp?label=version&color=blue) ![License](https://img.shields.io/badge/license-BUSL--1.1-green) ![CI](https://github.com/Horizon-Digital-Engineering/fpe-demo-mcp/actions/workflows/ci.yml/badge.svg) ![Node](https://img.shields.io/badge/node-%3E%3D18-brightgreen) ![TypeScript](https://img.shields.io/badge/TypeScript-5.0+-blue)
44

55
**FPE Demo MCP** is a lightweight MCP (Model Context Protocol) server that demonstrates **authentication** and **format‑preserving encryption (FF3 FPE)** in a clean, readable implementation. MCP is a JSON-RPC protocol that enables LLMs to securely call external tools and services.
66

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,6 @@
6868
"url": "https://github.com/Horizon-Digital-Engineering/fpe-demo-mcp/issues"
6969
},
7070
"homepage": "https://github.com/Horizon-Digital-Engineering/fpe-demo-mcp#readme",
71-
"license": "SEE LICENSE",
71+
"license": "BUSL-1.1",
7272
"author": "Leslie Gutschow <[email protected]>"
7373
}

src/http-server.ts

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -257,7 +257,21 @@ app.post("/mcp", async (req, res) => {
257257
}
258258

259259
// Handle the request
260-
await transport.handleRequest(req, res, req.body);
260+
try {
261+
await transport.handleRequest(req, res, req.body);
262+
} catch (err) {
263+
console.error("POST request error:", err);
264+
if (!res.headersSent) {
265+
res.status(500).json({
266+
jsonrpc: "2.0",
267+
error: {
268+
code: -32603,
269+
message: "Internal Error"
270+
},
271+
id: req.body?.id || null
272+
});
273+
}
274+
}
261275
});
262276

263277
// GET endpoint for server→client notifications

0 commit comments

Comments
 (0)