Skip to content

Commit f2ef8e1

Browse files
committed
commit: 0.3.14
1 parent 731ea8e commit f2ef8e1

103 files changed

Lines changed: 164403 additions & 156124 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

β€Ž.cargo/config.tomlβ€Ž

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
# Cargo build configuration for MagicTunnel
2+
# Optimized for faster builds and development workflow
3+
4+
[build]
5+
jobs = 12 # Full M2 Max CPU utilization (12 cores)
6+
incremental = true # Enable incremental compilation
7+
pipelining = true # Enable build pipelining
8+
9+
[env]
10+
RUST_INCREMENTAL = "1" # Force enable incremental compilation
11+
# RUSTC_WRAPPER = "sccache" # Uncomment if you have sccache installed
12+
13+
# Faster linker settings per platform
14+
# Using LLD linker for maximum performance (now properly installed)
15+
16+
[target.x86_64-apple-darwin]
17+
rustflags = ["-C", "link-arg=-fuse-ld=lld"]
18+
19+
[target.aarch64-apple-darwin]
20+
rustflags = ["-C", "link-arg=-fuse-ld=lld"]
21+
22+
[target.x86_64-unknown-linux-gnu]
23+
rustflags = ["-C", "link-arg=-fuse-ld=lld"]
24+
25+
# Optional: Use mold linker on Linux (if installed)
26+
# [target.x86_64-unknown-linux-gnu]
27+
# rustflags = ["-C", "link-arg=-fuse-ld=mold"]

β€Ž.gitignoreβ€Ž

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@
33
**/*.rs.bk
44
*.pdb
55

6+
storage/
7+
68
# MagjcTunnel binaries
79
./magictunnel
810
magictunnel

β€ŽCHANGELOG.mdβ€Ž

Lines changed: 16 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,19 @@ All notable changes to the MagicTunnel project will be documented in this file.
55
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
66
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
77

8+
## [0.3.14]
9+
10+
### Fixed - Navigation Architecture βœ…
11+
- **Startup Optimization**: Moved to async processing, whatever could
12+
- **Fixed LLM Enhancments**: Fixed loading, saving and deduplication
13+
- **Duplicate Navigation Logic**: Removed hardcoded navigation from dashboard.rs, now delegates to mode_api.rs
14+
- **Navigation Order**: Resources moved to position after Roots in MCP Services menu
15+
- **Roots API Integration**: Added missing roots API routes configuration in HTTP server
16+
17+
### Added - API Consistency βœ…
18+
- **Single Source Navigation**: Both `/api/mode` and `/dashboard/api/mode` use same navigation structure
19+
- **Roots API Routes**: Configured `/api/roots/*` endpoints with proper dependency injection
20+
821
## [0.3.13] - 2025-08-12 - OAuth 2.1 Phase 6 MCP Protocol Integration Complete βœ…
922

1023
### Added - CRITICAL BREAKTHROUGH: OAuth Context Flow Through MCP Protocol βœ…
@@ -477,7 +490,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
477490
- **Dual Transport Support**: HTTP+SSE (deprecated) and Streamable HTTP (preferred) with graceful migration
478491
- **Enhanced Security Model**: MCP-specific consent flows, capability permissions, and tool approval workflows
479492
- **Streamable HTTP Transport**: NDJSON streaming, enhanced batching, and session management
480-
- **Backward Compatibility**: Maintained HTTP+SSE support at `/mcp/stream` with deprecation guidance
493+
- **Backward Compatibility**: Maintained HTTP+SSE support at `/mcp/sse` and `/mcp/sse/messages` with deprecation guidance
481494

482495
#### **πŸ€– Automatic LLM Generation Workflow Complete**
483496
- **Sampling Service**: AI-powered tool description enhancement with OpenAI/Anthropic/Ollama support
@@ -1258,7 +1271,7 @@ cargo run --bin graphql_generator -- \
12581271
**OpenAPI Capability Generation:**
12591272
```bash
12601273
# Generate MCP tools from OpenAPI specification
1261-
cargo run --bin openapi-generator -- \
1274+
cargo run --bin magictunnel-cli openapi -- \
12621275
--spec "petstore.json" \
12631276
--base-url "https://petstore.swagger.io/v2" \
12641277
--prefix "petstore" \
@@ -1267,7 +1280,7 @@ cargo run --bin openapi-generator -- \
12671280
--output "capabilities/petstore_tools.yaml"
12681281
12691282
# Generate with filtering and custom naming
1270-
cargo run --bin openapi-generator -- \
1283+
cargo run --bin magictunnel-cli openapi -- \
12711284
--spec "https://api.example.com/openapi.yaml" \
12721285
--base-url "https://api.example.com" \
12731286
--prefix "api" \

β€ŽCLAUDE.mdβ€Ž

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -415,7 +415,7 @@ smart_discovery:
415415
- **Parameter errors**: Check array syntax in substitution.rs
416416
- **External MCP**: File permissions, working directory
417417
- **Visibility**: Use `magictunnel-visibility` CLI
418-
- **Transport**: Use `/mcp/streamable` (preferred) or `/mcp/stream` (deprecated)
418+
- **Transport**: Use `/mcp/streamable` (preferred) or `/mcp/sse` (deprecated)
419419

420420
### Git
421421
- Binary tracked: `git rm --cached magictunnel`

β€ŽCargo.tomlβ€Ž

Lines changed: 24 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "magictunnel"
3-
version = "0.3.13"
3+
version = "0.3.14"
44
edition = "2021"
55
authors = ["gouravd"]
66
description = "MagicTunnel - Fastest way to make LLMs talk to your internal systems and external ones"
@@ -147,24 +147,34 @@ codegen-units = 1
147147
panic = "abort"
148148

149149
[profile.dev]
150-
debug = true
151-
opt-level = 0
150+
opt-level = 1 # Some optimization for faster builds
151+
debug = 1 # Reduced debug info for faster compilation
152+
incremental = true # Enable incremental compilation
153+
split-debuginfo = "unpacked" # Faster debug info generation (macOS/Linux)
154+
codegen-units = 512 # Maximum parallel codegen units for M2 Max
152155

153-
[[bin]]
154-
name = "magictunnel"
155-
path = "src/main.rs"
156+
# Optimize heavy dependencies in dev builds
157+
[profile.dev.package.serde]
158+
opt-level = 3
156159

157-
[[bin]]
158-
name = "openapi-generator"
159-
path = "src/bin/openapi_generator.rs"
160+
[profile.dev.package.serde_json]
161+
opt-level = 3
160162

161-
[[bin]]
162-
name = "grpc-generator"
163-
path = "src/bin/grpc_generator.rs"
163+
[profile.dev.package.tokio]
164+
opt-level = 2
165+
166+
[profile.dev.package.actix-web]
167+
opt-level = 2
168+
169+
[profile.dev.package.reqwest]
170+
opt-level = 2
171+
172+
[profile.dev.package.tonic]
173+
opt-level = 2
164174

165175
[[bin]]
166-
name = "graphql-generator"
167-
path = "src/bin/graphql_generator.rs"
176+
name = "magictunnel"
177+
path = "src/main.rs"
168178

169179
[[bin]]
170180
name = "magictunnel-cli"

β€ŽREADME.mdβ€Ž

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ tools:
139139
Or generate from existing APIs:
140140
```bash
141141
# From OpenAPI specs
142-
./target/release/openapi-generator --spec https://api.example.com/openapi.json --output tools.yaml
142+
magictunnel-cli openapi --spec https://api.example.com/openapi.json --output tools.yaml
143143
```
144144

145145
πŸ”§ **[Complete Tools Guide](docs/tools.md)** - Tool creation, API generation, and management
@@ -185,7 +185,7 @@ MagicTunnel is **fully compliant** with the latest MCP 2025-06-18 specification:
185185
### 🌐 **Transport Layer**
186186
- **βœ… Triple Transport Support**:
187187
- **WebSocket**: `GET /mcp/ws` - Real-time bidirectional communication (enabled by default)
188-
- **HTTP-SSE**: `GET /mcp/stream` - Server-Sent Events (deprecated, backward compatibility)
188+
- **HTTP-SSE**: `GET /mcp/sse` + `POST /mcp/sse/messages` - Server-Sent Events (deprecated, backward compatibility)
189189
- **Streamable HTTP**: `POST /mcp/streamable` - **MCP 2025-06-18 preferred transport**
190190
- **βœ… Enhanced Batching**: JSON-RPC batch processing with NDJSON streaming
191191
- **βœ… Graceful Migration**: Automatic upgrade recommendations with deprecation headers
@@ -201,8 +201,8 @@ MagicTunnel is **fully compliant** with the latest MCP 2025-06-18 specification:
201201
- **βœ… Granular Progress Tracking**: Real-time monitoring of long-running operations with sub-operations
202202
- **βœ… Runtime Tool Validation**: Security sandboxing with classification-based policies
203203

204-
### 🎯 **"Super-Charged MCP" Hybrid Processing System**
205-
- **βœ… Hybrid Processing Strategies**: Six configurable processing modes (LocalOnly, ProxyOnly, ProxyFirst, LocalFirst, Parallel, Hybrid)
204+
### 🎯 **"Super-Charged MCP" Proxy System**
205+
- **βœ… Client Forwarding Strategy**: All sampling/elicitation requests forwarded to original client
206206
- **βœ… Intelligent Local Processing**: Enhanced context analysis, multimodal support, and schema intelligence
207207
- **βœ… Multi-Hop Proxy Chains**: Forward requests through MagicTunnel server chains with automatic fallback
208208
- **βœ… Parallel Execution**: Simultaneous local and proxy processing with `tokio::select!` for optimal performance

0 commit comments

Comments
Β (0)