@hasna/markdown
v0.1.6
Published
Open Markdown Protocol (OMP) — structured markdown as intermediate representation between AI models. Smart LLM writes it, cheap LLM/regex executes it.
Maintainers
Readme
@hasna/markdown
Open Markdown Protocol (OMP) — structured markdown as intermediate representation between AI models. Smart LLM writes it, cheap LLM/regex executes it.
Install
npm install -g @hasna/markdownCLI Usage
omp --helpomp validate <file>omp run <file>omp compile <file>omp lint <file>omp inspect <file>omp init
MCP Server
omp-mcpHTTP mode
Long-lived Streamable HTTP transport for shared agent connections (stdio remains the default):
omp-mcp --http
# or: MCP_HTTP=1 omp-mcp
# default port: 8822 (override with --port or MCP_HTTP_PORT)Endpoints on 127.0.0.1 only:
GET /health→{"status":"ok","name":"markdown"}POST /mcp→ MCP Streamable HTTP
REST API
omp-serveCloud Sync
This package supports cloud sync via @hasna/cloud:
cloud setup
cloud sync push --service markdown
cloud sync pull --service markdownData Directory
Data is stored in ~/.hasna/markdown/.
License
Apache-2.0 -- see LICENSE
