Skip to content

Commit 64ba311

Browse files
docs: Update MCP examples for Merton jump-diffusion and multi-container
Add Merton jump-diffusion model documentation to Monte Carlo section, update title and headers to reflect WildFly 32/39 and Tomcat 11 validation, list all four MCP tools in catalog, fix WildFly deployment notes to cover both versions. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 79ad7c1 commit 64ba311

1 file changed

Lines changed: 20 additions & 16 deletions

File tree

src/site/markdown/docs/mcp-examples.md

Lines changed: 20 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
1-
# MCP Examples: Financial Services on Axis2/Java + WildFly
1+
# MCP Examples: Financial Services on Axis2/Java
22

33
**Summary**: Apache Axis2/Java serves the same financial calculations as Axis2/C —
4-
portfolio variance, Monte Carlo VaR, scenario analysis — over JSON on WildFly 32
5-
with Spring Security JWT authentication. This document shows the same live demos
6-
as the Axis2/C `MCP_EXAMPLES.md`, run against the Java implementation, with
7-
head-to-head performance numbers.
4+
portfolio variance, Monte Carlo VaR (GBM and Merton jump-diffusion), scenario
5+
analysis — over JSON on WildFly 32/39 and Tomcat 11 with Spring Security JWT
6+
authentication. This document shows the same live demos as the Axis2/C
7+
`MCP_EXAMPLES.md`, run against the Java implementation, with head-to-head
8+
performance numbers.
89

910
The financial results are identical (same algorithms, same inputs, same outputs).
1011
The implementations compete only on performance.
@@ -93,7 +94,7 @@ All curl examples below include paired MCP stdio equivalents.
9394

9495
---
9596

96-
## Live Examples (Tested on WildFly 32)
97+
## Live Examples (Tested on WildFly 32/39 and Tomcat 11)
9798

9899
### Portfolio Variance — 5 assets
99100

@@ -175,9 +176,12 @@ just wrapped in `tools/call` JSON-RPC as shown above.)
175176
### Monte Carlo VaR — 100K simulations
176177

177178
Monte Carlo Value at Risk estimates portfolio loss at a given confidence
178-
level by simulating thousands of random price paths using Geometric
179-
Brownian Motion: `S(t+dt) = S(t) × exp((μ − σ²/2)·dt + σ·√dt·Z)` where
180-
Z ~ N(0,1). Run 100,000 paths, sort the terminal values, read off the
179+
level by simulating thousands of random price paths. The default model is
180+
Geometric Brownian Motion (GBM): `S(t+dt) = S(t) × exp((μ − σ²/2)·dt + σ·√dt·Z)`
181+
where Z ~ N(0,1). A Merton jump-diffusion model is also available
182+
(`"model":"merton"`) which adds Poisson-distributed jumps for fat-tailed
183+
scenarios — configurable via `jumpIntensity`, `jumpMean`, and `jumpVol`
184+
parameters. Run 100,000 paths, sort the terminal values, read off the
181185
1st percentile loss — that's your 99% VaR. Production risk systems run
182186
this nightly for regulatory capital calculations.
183187

@@ -583,10 +587,10 @@ GET https://localhost:8443/axis2-json-api/openapi-mcp.json
583587
```
584588

585589
This endpoint returns the same tool schema structure that Claude Desktop
586-
and other MCP clients consume. The three financial tools (`portfolioVariance`,
587-
`monteCarlo`, `scenarioAnalysis`) are described with full input schemas,
588-
parameter types, constraints, and defaults — identical in capability to the
589-
Axis2/C MCP stdio server.
590+
and other MCP clients consume. The catalog includes `doLogin`,
591+
`portfolioVariance`, `monteCarlo`, and `scenarioAnalysis` — each with full
592+
input schemas, parameter types, constraints, and defaults. The three
593+
financial tools are identical in capability to the Axis2/C MCP stdio server.
590594

591595
---
592596

@@ -685,12 +689,12 @@ See the sample READMEs for the complete test flow covering all services.
685689

686690
---
687691

688-
## WildFly 32 Deployment Notes
692+
## WildFly Deployment Notes
689693

690694
See `WILDFLY32_DEPLOY_STATE.md` in the Axis2/C repo for the full deployment
691-
walkthrough. Key points:
695+
walkthrough. Key points (apply to both WildFly 32 and WildFly 39):
692696

693-
- WildFly 32.0.1.Final with `--add-modules=java.se` in `standalone.conf`
697+
- WildFly 32.0.1.Final or WildFly 39 with `--add-modules=java.se` in `standalone.conf`
694698
- `jboss-deployment-structure.xml` from production deployment template (includes `jdk.net` module dependency)
695699
- `beans.xml` with `bean-discovery-mode="none"` (satisfies Weld without CDI scanning)
696700
- Spring Boot 3.4.3 starts in ~0.9 seconds inside WildFly

0 commit comments

Comments
 (0)