parism
Executes and parses curl commands, including HTTP header inspection with curl -I and allowlisted downloads with curl -o, returning structured output.
Runs and parses Docker commands, including docker inspect JSON output, so agents can query container and image information in structured form.
Runs ESLint and returns structured lint diagnostics with file/line details and failure information.
Executes and parses Git commands such as status, log, diff, show, branch, grep, and reflog, with read-only and build/CI profiles plus safeguards for Git invocations.
Supports GitHub CLI commands such as gh pr list and can export execution receipts in GitHub-compatible format.
Runs and parses Helm commands such as helm list, returning structured release information.
Runs Jest tests and returns structured test results with pass/fail counts and failure details.
Supports running pnpm commands when added to the allowlist, returning structured output for supported command forms.
Runs pytest and returns structured test results with failure details and modified-line attribution.
Runs Ruff checks and returns structured lint diagnostics.
Runs and parses Terraform commands such as terraform plan under the build profile, returning structured output.
Runs Vitest tests and returns structured results, including failure messages and modified-line attribution against git diff.
Supports running Yarn commands when added to the allowlist, returning structured output for supported command forms.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@parism list the 10 largest files in src sorted by size"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Parism
AI 에이전트가 셸 명령을 셸 없이 실행하고 결과를 JSON으로 받게 하는 MCP 서버이자 Node.js 라이브러리입니다.
문서: SPECIFICATION · SECURITY · CHANGELOG
run({ "command": "ls -la src | grep engine" }){
"ok": true,
"cmd": "ls",
"args": ["-la", "src"],
"stdout": {
"raw": "",
"parsed": {
"entries": [{ "name": "engine", "type": "directory", "size_bytes": 4096, "permissions": "drwxrwxr-x", "owner": "user", "modified_at": "Nov 12 07:27" }],
"_summary": { "total": 15, "matched": 1, "shown": 1 }
}
}
}61개 명령에 파서가 있고, 직접 만든 파서를 더할 수 있습니다.
파이프 뒤의
grep,head,tail,wc,sort,uniq,cut은 Parism이 파싱된 행에 적용합니다.파싱에 성공하면
raw는 비웁니다. 같은 202개 항목의ls -la가 원문 5,448토큰에서 2,061토큰이 됩니다.비밀값 가리기, 명령 허용 목록, 경로 제한을 실행 전후에 적용합니다.
설치
npx @nerdvana/parism # stdio MCP 서버MCP 클라이언트 설정:
{ "mcpServers": { "parism": { "command": "npx", "args": ["-y", "@nerdvana/parism"] } } }클라이언트별 위치: Claude Code · Claude Desktop · Cursor · Gemini CLI · Codex CLI · Copilot CLI
필요하면 함께 설치합니다.
npx @nerdvana/parism skill install # 에이전트 스킬: Parism을 적은 호출로 쓰는 법 (.claude/skills/parism)
npx @nerdvana/parism hook install # 에이전트의 Bash 호출을 Parism으로 돌리고 확인 없는 종료를 막는다Node.js 20 이상이 필요합니다.
Related MCP server: Pare
도구
도구 | 용도 |
| 명령 실행. 행 고르기·정렬, 태스크와 서비스 시작·조회, 원문 페이지 읽기 |
| 보관한 결과를 다시 실행하지 않고 다시 고르기, 값의 출처( |
| 허용 명령, 파서, 가드 확인. |
mcp.surface: "full"로 두면 2.x의 9개 도구를 씁니다.
run
인자 | 뜻 |
| 명령 한 줄. 또는 |
| 작업 디렉터리 |
| 행 고르기 |
|
|
| 태스크·서비스 조회와 중지 |
|
|
명령 한 줄
따옴표, 백슬래시, ~, 글로브, # 주석, 맨 앞의 cd <dir> &&, 2>&1, 2>/dev/null을 셸처럼 처리합니다. git -C <dir>은 그 디렉터리에서 실행합니다.
$(...), $VAR, 리다이렉션, &, ;, &&, ||는 실행하지 않고 unsupported_shell_operator와 대안(failure.suggestion)을 돌려줍니다. 명령은 호출 하나에 하나씩 줍니다.
명령 앞 대입(CI=1 npm test, env CFLAGS=-O0 make)은 빌드 플래그, 색, 로그처럼 그 명령의 동작만 바꾸는 변수만 받습니다(CFLAGS, LDFLAGS, CI, NODE_ENV, DEBIAN_FRONTEND, NO_COLOR, RUST_LOG 등). PATH, LD_*, NODE_OPTIONS, PYTHONPATH처럼 실행할 프로그램이나 불러올 코드를 바꾸는 변수는 거절합니다.
행 고르기
{ "command": "ls -l", "where": [{ "field": "size_bytes", "op": "gt", "value": 1000 }],
"sort_by": { "field": "size_bytes", "order": "desc" }, "limit": 10, "select": ["name", "size_bytes"] }연산자:
eqneprefixcontainsgtgteltlte_summary의total은 명령이 낸 행,matched는 조건을 통과한 행,shown은 돌려준 행입니다.limit: 0이면 개수만 받습니다.aggregate: { group_by, sum, distinct }는 묶음마다count,sum_<필드>,distinct_<필드>를 냅니다(contract_version: "next").
큰 결과
행이 100개를 넘고 limit이 없으면 앞 50행과 result_id를 돌려줍니다. 나머지는 query_result({ result_id, where, select, limit })로 읽습니다. 보관은 300초입니다.
응답이 mcp.max_response_bytes(기본 40,000)를 넘으면 stdout.raw를 줄 경계에서 자르고 options.page로 나머지를 읽게 안내합니다.
시험, 빌드, 린트
{ "command": "npx vitest run", "options": { "contract_version": "next", "machine_format": true } }{ "kind": "test", "tool": "vitest", "passed": 41, "failed": 1,
"failures": [{ "file": "src/math.test.ts", "line": 12, "message": "expected 2 to be 3", "attribution": "modified_line" }] }대상:
vitest,jest,pytest,go test,cargo test|build|check,tsc,eslint,ruff check,mypy실패와 진단은 모두 싣고, 통과한 항목은 개수만 싣습니다.
attribution은git diff HEAD와 대조한 결과입니다.modified_line(바꾼 줄),modified_file(바꾼 파일의 다른 줄),unmodified중 하나입니다.러너 뒤의
| head,| tail은 적용하지 않습니다.
태스크와 서비스
{ "command": "cargo test", "mode": "task", "options": { "contract_version": "next" } }
{ "task_id": "task_…", "wait_ms": 30000 }
{ "command": "npm run dev", "mode": "service", "options": { "ready_port": 5173 } }태스크는
tasks.timeout_ms(기본 10분)까지 실행합니다.wait_ms(최대 30초)는 끝나거나 새 실패가 나오면 바로 답합니다.서비스는
ready_port나ready_pattern으로 준비를 확인하고,lease_ms(최대 5분)가 지나면 종료합니다.동시에
tasks.max_concurrency(기본 2)개까지 실행합니다. 슬롯이 차면task_slots_full입니다.
실패
ok: false이면 failure.kind로 나눕니다.
| 뜻 | 할 일 |
| 가드가 막음. 실행하지 않음 |
|
| 셸 문법, 파이프 단계, 필터 인자 오류 |
|
| 실행 실패, 시간 초과, 명령 없음 |
|
| 파서가 없거나 그 인자 형식을 읽지 못함 |
|
가드
실행 전에 차례로 검사합니다.
allowed_commands에 없는 명령:command_not_allowedallowed_paths밖의 작업 디렉터리나 경로 인자:path_not_allowed인자 안의 셸 메타문자:
injection_pattern. 검색어, 출력 형식, 인터프리터의 인라인 코드(python3 -c), SQL, pip 버전 조건은 검사하지 않습니다.명령별 인자 정책(
node -e,npx --yes등):arg_not_allowed
프로필 | git | 그 밖 |
| 조회( | 조회 명령 |
| 로컬 쓰기 추가( |
|
git push는guard.allow_git_remote_write: true일 때만 허용합니다.모든 git 실행에
core.hooksPath=/dev/null과core.editor=true를 붙입니다.가드는 프로세스 수준의 방어선이고 커널 샌드박스가 아닙니다. 격리는 SECURITY.md에 있습니다.
지원 명령
분류 | 명령 | 기본 허용 |
파일 |
| O |
프로세스·네트워크 |
| O |
텍스트 |
| O |
Git |
| O |
배포 |
| O |
시스템 |
| O |
빌드 |
| build 프로필 |
시험·진단 |
| 허용 목록에 추가 |
기타 |
| 허용 목록에 추가 |
명령별 결과 필드는 describe({ cmd: "git" })로 봅니다. kubectl -o json, docker inspect처럼 JSON을 내는 명령은 그대로 parsed에 들어갑니다.
훅
npx @nerdvana/parism hook install # Claude Code, .claude/settings.json
npx @nerdvana/parism hook install --scope user # ~/.claude/settings.json
npx @nerdvana/parism hook install --client gemini # .gemini/settings.json
npx @nerdvana/parism hook install --client agy # Antigravity CLI, .agents/hooks.json훅 | 하는 일 |
| 파서가 있는 Bash 명령을 |
| 시작 시점의 작업 공간 상태를 기록합니다 |
| 작업 공간이 바뀌었는데 지금 상태에서 통과한 시험·빌드가 없으면 종료를 막습니다 |
훅 설정은 ~/.parism/hook.config.json(build 프로필, 영수증과 리댁션 켬)입니다. 렉서가 받지 않는 명령은 원래 셸이 실행합니다.
영수증
호스트 설정에 "receipts": { "enabled": true }를 두면 실행마다 ~/.parism/receipts/receipts.jsonl에 명령, 종료 코드, 시험 합계, 작업 공간 상태를 남깁니다. 줄마다 앞 줄의 해시와 HMAC 서명이 붙습니다.
parism receipts check --require "npx vitest run" # 지금 작업 공간에서 통과했는지. 아니면 종료 코드 1
parism receipts verify # 줄 고침, 삭제, 끼워 넣기 검사
parism receipts export --format github # markdown, github, sarif, json판정은 ok, missing, failed, stale(실행 뒤에 바뀜), unverifiable, bad_signature 가운데 하나입니다. 서명 키는 receipts.key_file, 없으면 ~/.parism/receipts/receipts.key를 만들어 씁니다. 같은 사용자 계정의 프로세스는 이 키를 읽을 수 있으므로, 영수증을 근거로 삼으려면 키를 에이전트가 읽지 못하는 곳에 둡니다.
설정
위치 | 범위 |
| 호스트. 모든 키 |
| 프로젝트. 가드를 넓히지 못하고, |
|
|
키 | 기본 | 뜻 |
| 조회 명령 | 실행할 수 있는 명령 |
| 서버를 띄운 디렉터리 | 작업 디렉터리와 경로 인자의 범위. |
|
|
|
| 10000 |
|
|
| 출력, 파싱 결과, 보관 결과의 비밀값을 |
|
| 파싱에 성공해도 |
| 100, 50 | 큰 결과 미리보기 |
|
|
|
| 40000 | 응답 한 건의 상한 |
| 2, 600000 | 태스크 |
|
| 실행 영수증 |
|
|
|
전체 필드는 SPECIFICATION.md 6장에 있습니다. parism doctor가 설정과 설치 상태를 점검합니다.
라이브러리
import { createEngine } from "@nerdvana/parism/engine";
const engine = await createEngine();
const result = await engine.run("", { command: "git status" });
import { sh } from "@nerdvana/parism/sdk";
const status = await sh.git.status(); // 타입이 붙은 결과
const tests = await sh.vitest.run(); // 실패마다 attribution가드 거절과 실행 실패는 예외가 아니라 ok: false 결과입니다.
커스텀 파서
parism capture "htop -b -n 1" # 실제 출력을 fixture로 저장
parism init-parser htop # 파서 팩 생성
parism test ~/.parism/fixtures # fixture로 파서 검증
parism add ./htop # 등록등록한 팩은 팩마다 워커 스레드에서 실행됩니다(장애 격리). 인터페이스와 fixture 형식은 SPECIFICATION.md 5장에 있습니다.
CLI
명령 | 하는 일 |
| MCP 서버 |
| 명령 한 줄을 Parism으로 실행하고 셸처럼 출력 |
| 훅 설치 |
| 에이전트 스킬 설치 |
| 영수증 |
| 사용 통계, 설정 점검 |
| 커스텀 파서 |
2.x에서 3.0으로
대상 | 2.x | 3.0 |
MCP 도구 | 9개 |
|
| 항상 | 파싱에 성공하면 비움. |
큰 결과 | 500행까지 전부 | 100행을 넘으면 앞 50행과 |
| 최상위 인자 |
|
태스크 조회 |
|
|
리댁션 범위 |
| 파싱 결과와 보관 결과까지 |
영수증 |
| 해시 체인과 자동 키 서명 |
나머지 변경은 CHANGELOG.md에 있습니다.
Available Tools
3 toolsdescribeARead-onlyIdempotent
Without arguments: allowed commands, parsers, guard, side effects, version. With cmd: that command's allowed subcommands, flags, parser formats, side effect and examples. With command (or cmd+args): check whether it would pass the guard without running it.
Inputs: cmd, cwd, args, command.
query_resultARead-onlyIdempotent
Read a kept result again WITHOUT re-running the command: filter, sort, limit, pick fields or aggregate the full rows; or explain a value (pointer), read the next page (cursor), or compare with another result (compare_with). An expired or unknown id is an error and is never re-executed.
Inputs: result_id (required), limit, where, cursor, +6 more.
runARead-only
Run a command without a shell and get parsed JSON. Pass the whole line as command (pipes to grep/head/tail/wc/sort/uniq/cut work). Large results return a preview, result_id and _hint; continue with query_result. Commands pass an execution guard. mode starts tasks and services; task_id reads or stops them.
Inputs: cmd, cwd, args, mode, +9 more.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 3 tools
The three tools have clearly distinct roles: run executes commands, query_result operates only on previously kept results without re-execution, and describe provides metadata or guard checks. Although query_result is related to run's output, the split between execution and post-processing is explicit and unlikely to be confused.
All names are lowercase snake_case, which is consistent. However, the pattern is not a strict verb_noun convention: run and describe are bare verbs while query_result is verb_noun, a minor stylistic deviation.
Three tools are well-scoped for a command-execution server: one to execute, one to query saved results, and one to describe capabilities or test the guard. Each tool has a clear purpose and no tool feels redundant or missing at this surface level.
The surface covers the core lifecycle: execute commands, inspect/filter/compare kept results, and discover allowed commands or test guard behavior. Minor gaps remain, such as no explicit tool to list all active tasks or all retained result IDs, though run's task_id and describe partially mitigate this.
Maintenance
Related MCP Connectors
Operate Linux, macOS and Windows from your LLM. Every action runs through an auditable allowlist.
Use your own Windows, Mac or Linux computer from ChatGPT, Claude, Cursor or Gemini CLI: run commands, read, write and search files, run long processes. Your computer only makes an outgoing connection (no open ports or VPN). Read-only mode, allowed folders, blocked commands and an action log keep you in control. Free plan available.
Let AI operate servers without SSH. Choose actions, approve risky changes, and audit every step.
JSON/YAML, regex, diff, JWT, SQL dialects — the keyless millisecond ops an agent needs mid-task.
Related MCP Servers
- AlicenseNot gradedqualityCmaintenanceEnables AI agents to run shell commands over SSH on a fixed, pre-registered set of Linux machines, returning structured results with audit logging, enforced timeouts, output limits, and explicit registry management. It also supports safe file upload/download and multi-host command execution.MIT
- AlicenseNot gradedqualityAmaintenanceEnables AI agents to work with developer tools such as git, npm, Docker, and test runners through structured, schema-validated JSON outputs. Reduces token usage and eliminates fragile terminal text parsing for reliable cross-platform workflows.4 npmMIT
- AlicenseNot gradedqualityAmaintenanceEnables AI agents to invoke common developer tools such as git, npm, Docker, and test runners and receive clean, schema-validated JSON instead of fragile terminal text, reducing token usage and parsing errors.4 npmMIT
- AlicenseNot gradedqualityAmaintenanceEnables AI agents to invoke common developer tools — git, GitHub, npm, Python, cargo, Docker, Kubernetes, linters, and test runners — and receive schema-validated structured JSON instead of raw terminal text. This removes brittle string parsing and cuts token usage dramatically on verbose commands like builds, installs, and test runs.4 npmMIT