Metadata-Version: 2.4
Name: osmp-mcp
Version: 1.0.6
Summary: MCP server for the Octid Semantic Mesh Protocol (OSMP). Encode, decode, and resolve agentic AI instructions via table lookup.
Project-URL: Homepage, https://octid.io
Project-URL: Repository, https://github.com/octid-io/cloudless-sky
Project-URL: Documentation, https://github.com/octid-io/cloudless-sky/tree/main/mcp
Author-email: Clay Holberg <ack@octid.io>
License-Expression: Apache-2.0
Keywords: agentic,ai,edge,encoding,lora,mcp,mesh,osmp,protocol
Classifier: Development Status :: 4 - Beta
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: Apache Software License
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.13
Classifier: Topic :: Communications
Classifier: Topic :: Scientific/Engineering :: Artificial Intelligence
Requires-Python: >=3.10
Requires-Dist: mcp[cli]>=1.2.0
Requires-Dist: zstandard>=0.22.0
Description-Content-Type: text/markdown

# OSMP MCP Server

<!-- mcp-name: io.github.Octid-io/osmp -->

MCP server for the [Octid Semantic Mesh Protocol (OSMP)](https://octid.io). Deterministic encode/decode of agentic AI instructions by table lookup. No inference at decode.

## Install

```bash
pip install osmp-mcp
```

## Connect

### Claude Code
```bash
claude mcp add osmp -- osmp-mcp
```

### Claude Desktop

Add to `claude_desktop_config.json`:
```json
{
    "mcpServers": {
        "osmp": {
            "command": "osmp-mcp"
        }
    }
}
```

### Cursor / VS Code / Any MCP Client
```json
{
    "servers": {
        "osmp": {
            "command": "osmp-mcp",
            "transport": "stdio"
        }
    }
}
```

## Tools (8)

| Tool | What it does |
|---|---|
| `osmp_encode` | Structured fields to SAL instruction |
| `osmp_decode` | SAL to structured fields (handles compound instructions) |
| `osmp_compound_decode` | DAG topology and loss tolerance analysis |
| `osmp_lookup` | Search the opcode dictionary by namespace and/or keyword |
| `osmp_discover` | Search domain corpora by keyword and/or code prefix (ICD-10-CM, ISO 20022) |
| `osmp_resolve` | Single domain code lookup (exact code required) |
| `osmp_batch_resolve` | Multiple exact domain codes in one call |
| `osmp_benchmark` | Canonical conformance suite |

## Resources (6)

| URI | Content |
|---|---|
| `osmp://system_prompt` | SAL grammar and composition reference (~185 tokens) |
| `osmp://about` | Protocol design philosophy |
| `osmp://dictionary` | Full ASD (339 opcodes, 26 namespaces) |
| `osmp://grammar` | SAL formal grammar (EBNF) |
| `osmp://corpora` | Available D:PACK/BLK domain corpus stats |
| `osmp://examples` | 10 annotated SAL examples |

## Agent Quickstart

1. Read `osmp://system_prompt`
2. Use `osmp_lookup` to find opcodes by namespace or keyword
3. Compose SAL directly from the dictionary
4. Use `osmp_discover` to find domain codes you don't know (keyword + optional prefix)
5. Use `osmp_resolve` for exact code lookup once you have the code
6. Use `osmp_compound_decode` to check DAG topology before transmitting
7. Use `osmp_decode` to parse received instructions

## Context Window Footprint

~124 tokens on connect (server instructions + tool schemas + resource listings). ~308 tokens total after reading the system prompt. Designed to minimize the context overhead that the research shows consumes 30-72% of agent context windows across existing MCP servers.

## Links

- [octid.io](https://octid.io)
- [GitHub](https://github.com/octid-io/cloudless-sky)
- [OSMP Spec](https://github.com/octid-io/cloudless-sky/blob/main/protocol/spec/OSMP-SPEC-v1.md)

## License

Apache 2.0 with express patent grant.
