error-transport-context

Propagate command and sessionId metadata across MCP and CLI error envelopes.

Updated Apr 22, 2026
One-click install
npx skills add https://github.com/MicroTools-Hub/Excel-V2 --skill error-transport-context
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: error-transport-context
Source: https://github.com/MicroTools-Hub/Excel-V2/tree/main/sources/mcp-server-excel-main/mcp-server-excel-main/.squad/skills/error-transport-context
Command: npx skills add https://github.com/MicroTools-Hub/Excel-V2 --skill error-transport-context

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Preserve service request context across MCP and CLI error envelopes to enable unified diagnostics and troubleshooting without altering Core or COM behavior.

Core Features & Use Cases

  • Propagate originating command and session metadata across MCP and CLI error responses for consistent diagnostics.
  • Mirror new shared fields in ExcelToolsBase and CliErrorOutput to support unified error reporting while maintaining backward compatibility.
  • Avoid introducing transport diagnostics into core commands; ensure additive changes only.

Quick Start

Enable error-context propagation across MCP and CLI and verify that the origin command and sessionId appear in error envelopes.

Frequently Asked Questions about error-transport-context

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I preserve error context across MCP and CLI boundaries?

To preserve error context across MCP and CLI, propagate originating command and session metadata into error envelopes. This ensures consistent diagnostics by attaching consistent fields like command and sessionId to all failures crossing these boundaries.

What is context propagation for error diagnostics in CLI applications?

Context propagation for error diagnostics is the process of maintaining service request metadata, such as sessionId and command, across transport layers. It enables unified troubleshooting by mirroring shared fields in error output objects without altering core behavior.

How do I add error logging metadata without breaking Core or COM behavior?

You can add error logging metadata without breaking Core or COM behavior by applying lightweight, additive changes to transport and error objects. Mirror new shared fields in base output structures to maintain backward compatibility while capturing diagnostic context.

Does adding session metadata to error envelopes require modifying core commands?

No, adding session metadata to error envelopes does not require modifying core commands. The approach ensures transport diagnostics are not introduced into core commands, relying solely on additive changes to error and transport objects for backward compatibility.

Why are my CLI error responses missing the originating command information?

CLI error responses miss originating command information when error context propagation is not enabled across transport boundaries. Mirroring shared fields like command and sessionId in CLI error output objects ensures this metadata is consistently attached to failures.