Dataset Viewer

The dataset viewer is not available because its heuristics could not detect any supported data files. You can try uploading some data files, or configuring the data files location manually.

πŸ›‘οΈ DeepSeek R1 Tool Argument Thought Stripper MCP

Official Turnkey Model Context Protocol (MCP) Guard & Fine-Tuning Suite (FAANG v2.5 Gold Standard)


βš–οΈ Dual-Licensing & Fair-Use Compliance Notice

  • Community & Evaluation License (CC-BY-NC-4.0): This evaluation repository is 100% free for academic research, education, personal experimentation, and local evaluation.
  • Commercial & Enterprise License: Any integration into commercial software, SaaS applications, proprietary models, or corporate pipelines requires a valid commercial license from emgena.com/trainingslager.
  • Developer Tooling & Regulatory Clarification: Client-side deterministic policy control software only. Emgena provides no financial, legal, medical, or custodian services.
  • Launch Discount: Use code LAUNCH20 at checkout for 20% off all commercial tiers (Single, Team, Enterprise).

πŸ“¦ What is Included in this Package

This repository contains the full 500-sample verified dataset and in-IDE guardrails:

  1. Parquet & JSONL Datasets (deepseek_r1_tool_argument_thought_stripper_mcp.parquet, chatml_format.jsonl):
    • 500 verified multi-turn trajectories across 30 production incidents.
    • 100% AST Invariance: Zero syntax errors (validated via ast.parse()).
  2. Deterministic MCP Engine (server.py & server_free.py):
    • Zero-dependency stdio engine (<0.15ms latency, 100% offline).
    • Compatible with Cursor IDE, Claude Desktop, and VS Code.
  3. Dual Fine-Tuning Recipes:
    • Apple Silicon Mac (train_mlx.py): Native LoRA fine-tuning for M1/M2/M3/M4 unified memory in 15 minutes.
    • Nvidia CUDA (train_lora_unsloth.py): 4-bit QLoRA fine-tuning on RTX 4090 / 5090 / Colab.
  4. Active AST Tools:
  • execute_tool('extract_internal_thought_from_arguments'): Strips out conversational thinking sentences mistakenly injected into tool argument JSON fields.
  • execute_tool('repair_nested_argument_quotes'): Repairs broken double-quoting caused by reasoning models embedding thoughts into strings.
  • execute_tool('sanitize_tool_invocation_payload'): Ensures final arguments object matches declared Pydantic tool schema with 100% fidelity.
  • execute_tool('route_extracted_thought_to_log_stream'): Preserves stripped thinking trace into internal debug logs while passing clean data to tool.
  • execute_tool('detect_confused_role_delimiters'): Detects when model outputs assistant or user role tokens inside tool argument payload.
  • execute_tool('benchmark_thought_stripping_latency'): Measures stripping speed to ensure execution completes in under 0.05 milliseconds.
  • execute_tool('validate_clean_parameter_typing'): Casts stringified numbers, booleans, and nulls to strictly expected schema datatypes.
  • execute_tool('export_argument_repair_audit_metrics'): Exports audit count of repaired tool parameters and prevented deserialization errors.

πŸš€ Quickstart: Apple Silicon Fine-Tuning (MLX)

pip install mlx mlx-lm
python train_mlx.py

πŸ’» Quickstart: Cursor IDE & Claude Desktop MCP Setup

Add the following to your .cursor/mcp.json or claude_desktop_config.json:

{
  "mcpServers": {
    "deepseek_r1_tool_argument_thought_stripper_mcp": {
      "command": "python",
      "args": ["server.py"]
    }
  }
}

βš–οΈ License & Commercial Deployment

Distributed under Creative Commons Attribution-NonCommercial 4.0 International (CC-BY-NC-4.0). For commercial enterprise deployment rights, BGB Β§ 97 UrhG indemnification, and EU AI Act Annex IV audit certificates, visit: πŸ‘‰ emgena.com/trainingslager

Downloads last month
62