| ํญ๋ชฉ | ๋ด์ฉ |
|---|---|
| Invoke | /mcp-toolkit:dump-bloc |
| Category | cocode-flutter |
| Complexity | simple |
| MCP Servers | mcp_flutter |
/mcp-toolkit dump-bloc โ ํ๋ฉด ์ํ ๋ค์ฌ๋ค๋ณด๊ธฐ#
ํ๋ง๋๋ก#
์คํ ์ค์ธ ์ฑ์ด "์ง๊ธ ๋ฌด์จ ์ํ์ธ์ง"๋ฅผ ๋ณด๊ธฐ ์ข๊ฒ ์ฐ์ด์ ๋ณด์ฌ์ฃผ๋ ๋ช ๋ น์ ๋๋ค. ์์ฌ๊ฐ ์ฒญ์ง๊ธฐ๋ก ํ์์ ํ์ฌ ์ํ๋ฅผ ๊ทธ ์๋ฆฌ์์ ํ์ธํ๋ ๊ฒ๊ณผ ๋น์ทํด์.
๋๊ฐยท์ธ์ ์ฐ๋์#
- ํ ์คํธ ์๋๋ฆฌ์ค ๋์ค์ "์ง๊ธ ํ๋ฉด์ด ์ ๋๋ก ๋ ์ํ์ธ์ง" ์ค๊ฐ ์ ๊ฒํ๊ณ ์ถ์ ๋
- AI ์์ด์ ํธ๊ฐ ๋ค๋ฅธ ์์ ์ ํ๋ ๋์, ์ฌ๋์ด ์ง์ ์ํ๋ฅผ ํ์ธํ๋ฉฐ ๋๋ฒ๊น ํ๊ณ ์ถ์ ๋
- ํซ ๋ฆฌ๋ก๋(์ฝ๋ ์ฆ์ ๋ฐ์) ์ ํ๋ก ์ํ๊ฐ ์ด๋ป๊ฒ ๋ฐ๋์๋์ง ๋น๊ตํ๊ณ ์ถ์ ๋
๋ฌด์์ ํด์ฃผ๋์#
์ง์ ํ ํ๋ฉด ๋จ์(BLoC)์ ํ์ฌ ์ํ๋ฅผ ๊น๋ํ๊ฒ ์ ๋ฆฌ๋ JSON ํํ๋ก ๋ํ์ฐฝ์ ๋ณด์ฌ์ค๋๋ค. ํ์ํ๋ฉด ๊ทธ ๊ฒฐ๊ณผ๋ฅผ ํ์ผ๋ก๋ ์ ์ฅํด ์ค๋๋ค.
- ๊ธฐ๋ณธ์ ์ผ๋ก ๊ฐ์ธ์ ๋ณด(PII)๋ ๊ฐ๋ ค์ง ์ฑ ์ถ๋ ฅ๋์ด ์์ ํ๊ฒ ๊ณต์ ํ ์ ์์ต๋๋ค.
--output๊ฒฝ๋ก๋ฅผ ์ง์ ํ๋ฉด ๊ฐ์ ๋ด์ฉ์ด JSON ํ์ผ๋ก๋ ๋จ์ต๋๋ค.
์ด๋ป๊ฒ ์ฐ๋์#
/mcp-toolkit dump-bloc --type=FeedBloc
--type(ํ์): ๋ค์ฌ๋ค๋ณผ ํ๋ฉด ๋จ์ ์ด๋ฆ. ์)FeedBloc. ์ ์ฒด๋ฅผ ๋ณด๋ ค๋ฉด*์ฌ์ฉ.--redact-pii(์ ํ): ๊ธฐ๋ณธ๊ฐtrue(๊ฐ์ธ์ ๋ณด ๊ฐ๋ฆผ). ๋ก์ปฌ ๋๋ฒ๊น ๋๋งfalse๋ก ๋์ธ์.--output(์ ํ): ๊ฒฐ๊ณผ JSON์ ์ ์ฅํ ํ์ผ ๊ฒฝ๋ก. ์ง์ ํ์ง ์์ผ๋ฉด ๋ํ์ฐฝ์๋ง ์ถ๋ ฅ๋ฉ๋๋ค.
์์์ ๋ฌด์จ ์ผ์ด ๋ฒ์ด์ง๋์#
- ์ง์ ํ ํ๋ฉด ๋จ์์ ํ์ฌ ์ํ๋ฅผ ์ฑ์ ์์ฒญํฉ๋๋ค.
- ๊ฐ์ธ์ ๋ณด ๊ฐ๋ฆผ ์ค์ ์ด ๊บผ์ ธ ์์ผ๋ฉด, ๊ฐ๋ฆฌ์ง ์๊ณ ๊ทธ๋๋ก ๋ณด์ฌ์ฃผ๋๋ก ์ฒ๋ฆฌํฉ๋๋ค(์ฑ ์ง์ ํ์).
- ๊ฒฐ๊ณผ๋ฅผ ๋ณด๊ธฐ ์ข๊ฒ ์ ๋ฆฌํด ๋ํ์ฐฝ์ ๋ณด์ฌ์ฃผ๊ณ ,
--output์ด ์์ผ๋ฉด ํ์ผ๋ก๋ ์ ์ฅํฉ๋๋ค.
โ๏ธ ์์ธ ์ต์ ยท์คํ ๋ช ์ธ (๊ฐ๋ฐ์ / AI ์์ด์ ํธ์ฉ)
Parameters#
| Parameter | Required | Description |
|---|---|---|
--type | โ | BLoC runtimeType name, e.g. FeedBloc. Use * for all. |
--redact-pii | โ | Default true. Set false only for local debugging. |
--output | โ | Path for the JSON dump (default printed inline only) |
Behaviour#
- Calls
bloc.dump_statewith{ type: <type> }. - If PII redaction is off, instructs the tool handler to skip the redaction step (requires app support โ see
TEMPLATES.md). - Pretty-prints to the chat and, if
--output, also writes to file.
Example#
/mcp-toolkit dump-bloc --type=FeedBloc{
" FeedBloc " : {
" status " : " loaded " ,
" posts " : { " length " : 10 },
" filter " : null,
" lastRefreshedAt " : " 2026-05-11T13:45:00Z "
}
}Use cases#
- Mid-scenario assertions (combined with
/mcp-toolkit scenario). - Manual debugging while the agent is doing something else.
- Snapshotting state before/after a hot reload.