Skip to main content

OSMP MCP Server — Agentic AI instruction encoding. 86.8% byte reduction vs JSON. Inference-free decode. Any channel.

Project description

OSMP MCP Server

MCP server for the Octid Semantic Mesh Protocol (OSMP). Gives any MCP-compatible AI client native OSMP capability: encode, decode, validate, and resolve agentic instructions by table lookup. No inference at decode.

Install

pip install osmp-mcp

Or with uvx:

uvx osmp-mcp

What it does

  • osmp_encode — Encode structured fields into a SAL instruction
  • osmp_decode — Decode SAL to structured fields
  • osmp_validate — Check composed SAL against composition rules before emission
  • osmp_lookup — Search the opcode dictionary by namespace/keyword
  • osmp_resolve — Resolve a domain code from D:PACK/BLK (ICD-10, ISO 20022, MITRE ATT&CK)
  • osmp_discover — Search domain corpora by keyword
  • osmp_benchmark — Run the canonical conformance suite
  • osmp_compound_decode — Analyze DAG topology and loss tolerance
  • osmp_batch_resolve — Multiple domain codes in one call

342 opcodes. 26 namespaces. Three MDR corpora (124,215 resolvable codes).

Composition Rules

SAL has a grammar (how to write a legal instruction) and a usage doctrine (which instruction to write). Both matter.

The taco test: K:ORD is financial order entry (ISO 20022). "Order me some tacos" is NL passthrough, not K:ORD[TACOS]. Read the ASD definition, not the mnemonic.

The lookup gate: Always call osmp_lookup before composing. If the opcode doesn't exist in the dictionary, it doesn't exist in the protocol.

Validation: Call osmp_validate after composing and before emitting. It catches hallucinated opcodes, missing consequence classes, namespace-as-target errors, byte inflation, and other structural violations.

Full composition doctrine: SAL-usage-doctrine-v1.md

octid.io | GitHub

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

osmp_mcp-1.0.23.tar.gz (1.8 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

osmp_mcp-1.0.23-py3-none-any.whl (1.8 MB view details)

Uploaded Python 3

File details

Details for the file osmp_mcp-1.0.23.tar.gz.

File metadata

  • Download URL: osmp_mcp-1.0.23.tar.gz
  • Upload date:
  • Size: 1.8 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.3

File hashes

Hashes for osmp_mcp-1.0.23.tar.gz
Algorithm Hash digest
SHA256 3895707fcc801e56e3bb150a0845734aa3067afa827b165667128887cce68fa1
MD5 2af0971f6fe5532474e5247f0b8aafec
BLAKE2b-256 3d7de5af5962b9f014c680d445374e6c069224b4478399f2139bcd99e00e894a

See more details on using hashes here.

File details

Details for the file osmp_mcp-1.0.23-py3-none-any.whl.

File metadata

  • Download URL: osmp_mcp-1.0.23-py3-none-any.whl
  • Upload date:
  • Size: 1.8 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.3

File hashes

Hashes for osmp_mcp-1.0.23-py3-none-any.whl
Algorithm Hash digest
SHA256 ada760e850c4303c17e89f83903d75834f0fb79f7b12790cc1c8164d22722323
MD5 fb78ba15012e39bf39d94ca42bc127c8
BLAKE2b-256 7f3918fd98e46a09e064b609d14e6ee41078488c63152d027e4df6cad6c384df

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page