Skip to content

Commit e4d0beb

Browse files
committed
core: update readme in scripts/scaffold
1 parent 167e1a8 commit e4d0beb

File tree

1 file changed

+24
-22
lines changed

1 file changed

+24
-22
lines changed

scripts/scaffold/README.md

Lines changed: 24 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,6 @@
2121

2222
</div>
2323

24-
---
25-
2624
> [!IMPORTANT]
2725
> If you have not been across the MCPStack main orchestrator repository, please start
2826
> there: [View Org](https://github.com/MCP-Pipeline)
@@ -44,8 +42,6 @@ developers to create pipelines by stacking MCP tools of interest and launching t
4442
This allows the LLM to use all the tools stacked, and of course, if a tool is not of interest, do not include it in the
4543
pipeline and the LLM won't have access to it.
4644

47-
---
48-
4945
## Installation
5046

5147
> [!NOTE]
@@ -75,10 +71,6 @@ Using `pip`:
7571
pip install -e .[dev]
7672
```
7773

78-
> **Note**
79-
> Python `3.9+` is supported. If you have project-specific constraints, adjust the `pyproject.toml` accordingly.
80-
81-
8274
### Install pre-commit hooks
8375

8476
Via `UV`:
@@ -93,66 +85,71 @@ Via `pip`:
9385
pre-commit install
9486
```
9587

96-
---
97-
9888
## Create Your Tool's Skeleton
9989

10090
Once dependencies are installed, you can use the `mcpstack_tool` CLI to bootstrap and customise your tool’s skeleton.
101-
Every commands is run with `uv run mcpstack_tool.py` or `python mcpstack_tool.py` if you are not using `UV`, followed by the command you want to run.
102-
103-
As follows
91+
Every commands is run with `uv run mcpstack_tool.py` or `python mcpstack_tool.py` if you are not using `UV`, followed by the command you want to run; as follows:
10492

10593
<img src="assets/readme/help.gif" width="61.8%" align="left" style="border-radius: 10px;"/>
10694

107-
1. `Help` Banner
95+
### `Help` Banner
10896

10997
Run with `--help` or `-h` to display the banner and see all available commands.
11098

111-
11299
```bash
113100
uv run mcpstack_tool.py --help
114101
```
115102

116103
<br clear="left">
117104

105+
<br />
106+
118107
<img src="assets/readme/init.gif" width="61.8%" align="right" style="border-radius: 10px;"/>
119108

120-
2. `Init`
109+
### `Init`
121110

122111
init starts an interactive prompt command-line-based process to generate your tool configuration.
123112
It will ask you for values like `tool_slug`, `class_name`, and `env_prefix`.
124113

125114

126115
<br clear="right">
127116

117+
<br />
118+
128119
<img src="assets/readme/preview.gif" width="61.8%" align="left" style="border-radius: 10px;"/>
129120

130-
3. `Preview`
121+
### `Preview`
131122

132123
preview shows you the replacements that would be applied across the codebase and displays an example diff.
133124
Note this could be also run from the `init`.
134125

135126
<br clear="left">
136127

128+
<br />
129+
137130
<img src="assets/readme/apply.gif" width="61.8%" align="right" style="border-radius: 10px;"/>
138131

139-
4. `Apply`
132+
### `Apply`
140133

141134
Once happy, use apply to perform replacements and rename the package directory. Note this could be also run from the `init`.
142135

143136
<br clear="right">
144137

138+
<br />
139+
145140
<img src="assets/readme/validate.gif" width="61.8%" align="left" style="border-radius: 10px;"/>
146141

147-
5. `Validate`
142+
### `Validate`
148143

149144
Run validate to ensure placeholders were replaced correctly (or to check if any remain).
150145

151146
<br clear="left">
152147

148+
<br />
149+
153150
<img src="assets/readme/reset.gif" width="61.8%" align="right" style="border-radius: 10px;"/>
154151

155-
6. `Reset` (Optional)
152+
### `Reset` (Optional)
156153

157154
Need to start fresh? Restore everything back from the scaffold with reset.
158155

@@ -161,9 +158,11 @@ Need to start fresh? Restore everything back from the scaffold with reset.
161158
162159
<br clear="right">
163160

161+
<br />
162+
164163
<img src="assets/readme/doctor.gif" width="61.8%" align="left" style="border-radius: 10px;"/>
165164

166-
7. `Doctor`
165+
### `Doctor`
167166

168167
Finally, check the health of your repository with doctor.
169168
It reports `package dirs`, `entry points`, and `placeholder` status.
@@ -174,7 +173,10 @@ It reports `package dirs`, `entry points`, and `placeholder` status.
174173

175174
Here you go! 🎉 You now have a working `MCPStack` tool skeleton ready to customise.
176175
From here, edit `src/mcpstack_<your_tool_name>/tool.py` with the actions your MCP is aimed to be doing,
177-
and `cli.py` to implement your configurablity logic. Refer to the `MCPStack` documentation for more details on how to implement your tool logic.
176+
and `cli.py` to implement your configurability logic. Remove a couple of files and folders not necessary as per the template
177+
and you may be good to go to submit this to the org or to play with it yourself!
178+
179+
Refer to the `MCPStack` documentation for more details on how to implement your tool logic.
178180

179181
## 🔐 License
180182

0 commit comments

Comments
 (0)