Skip to content

Commit ae6d7a1

Browse files
committed
.
1 parent 1855d6c commit ae6d7a1

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

README.md

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,13 @@
77

88
## Introduction
99

10-
Model Context Shell is an [MCP](https://modelcontextprotocol.io/) server that lets AI agents compose MCP tool calls similar to Unix shell scripting. Instead of the agent orchestrating each tool call individually (loading all intermediate data into context), agents can express complex workflows as pipelines that execute server-side.
10+
Model Context Shell is a system that lets AI agents compose [MCP](https://modelcontextprotocol.io/) tool calls similar to Unix shell scripting. Instead of the agent orchestrating each tool call individually (loading all intermediate data into context), agents can express complex workflows as pipelines that execute server-side.
1111

1212
For example, an agent can express a multi-step workflow as a single pipeline:
1313

1414
```mermaid
1515
flowchart LR
16-
A["Fetch users (MCP)"] --> B["Extract profile URLs (Shell)"] --> C["for_each: Fetch profile (MCP)"] --> D["Filter and sort (Shell)"]
16+
A["Fetch users (MCP)"] --> B["Extract profile URLs (Shell)"] --> C["for_each (Shell)"] --> C1["Fetch profile (MCP)"] --> D["Filter and sort (Shell)"]
1717
```
1818

1919
This pipeline fetches a list, extracts URLs, fetches each one, filters the results, and returns only the final output to the agent — no intermediate data in context.
@@ -59,12 +59,14 @@ Instead of 7+ separate tool calls loading all Pokemon data into context, the age
5959
- Fetched each Pokemon's details (7 API calls)
6060
- Filtered by weight and formatted the results
6161

62-
**Result**: 50%+ reduction in tokens and only the final answer loaded into context.
62+
**Result**: Only the final answer is loaded into context — no intermediate API responses.
6363

6464
In practice, agents don't construct the perfect pipeline on the first try. They typically run a few exploratory queries first to understand the shape of the data before building the final pipeline. To keep this process fast and cheap, the server includes a preview stage powered by [headson](https://github.com/kantord/headson) that returns a compact structural summary of the data — enough for the agent to plan its transformations without loading the full dataset into context.
6565

6666
### How it works
6767

68+
Model Context Shell is packaged as an MCP server, which makes it easy to use with any agent that supports the protocol. It could also be packaged as a library built directly into an agent.
69+
6870
The server exposes four tools to the agent via MCP:
6971

7072
| Tool | Purpose |

0 commit comments

Comments
 (0)