agentledger-mcp 1.2.2__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- agentledger_mcp-1.2.2/.gitignore +62 -0
- agentledger_mcp-1.2.2/PKG-INFO +36 -0
- agentledger_mcp-1.2.2/README.md +21 -0
- agentledger_mcp-1.2.2/examples/README.md +4 -0
- agentledger_mcp-1.2.2/pyproject.toml +24 -0
- agentledger_mcp-1.2.2/src/agentledger_mcp/__init__.py +19 -0
- agentledger_mcp-1.2.2/tests/test_import.py +6 -0
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
.agentledger/
|
|
2
|
+
*.db
|
|
3
|
+
*.sqlite
|
|
4
|
+
*.sqlite3
|
|
5
|
+
|
|
6
|
+
__pycache__/
|
|
7
|
+
**/__pycache__/
|
|
8
|
+
*.py[cod]
|
|
9
|
+
*.pyo
|
|
10
|
+
*.pyd
|
|
11
|
+
$py.class
|
|
12
|
+
.pytest_cache/
|
|
13
|
+
.mypy_cache/
|
|
14
|
+
.ruff_cache/
|
|
15
|
+
.coverage
|
|
16
|
+
coverage.xml
|
|
17
|
+
dist/
|
|
18
|
+
build/
|
|
19
|
+
*.egg-info/
|
|
20
|
+
.venv/
|
|
21
|
+
venv/
|
|
22
|
+
.env
|
|
23
|
+
.DS_Store
|
|
24
|
+
**/.DS_Store
|
|
25
|
+
node_modules/
|
|
26
|
+
**/node_modules/
|
|
27
|
+
npm-debug.log*
|
|
28
|
+
yarn-debug.log*
|
|
29
|
+
yarn-error.log*
|
|
30
|
+
pnpm-debug.log*
|
|
31
|
+
|
|
32
|
+
# Local notes, research dumps, and generated reports that should not ship.
|
|
33
|
+
.claude/
|
|
34
|
+
AI_Agent_Runtime_开源项目构想.md
|
|
35
|
+
*.pdf
|
|
36
|
+
*.docx
|
|
37
|
+
*.pptx
|
|
38
|
+
*.pages
|
|
39
|
+
*.key
|
|
40
|
+
evidence/
|
|
41
|
+
evidence*.html
|
|
42
|
+
time-travel*.html
|
|
43
|
+
|
|
44
|
+
# Local external installer/download artifacts.
|
|
45
|
+
rce
|
|
46
|
+
|
|
47
|
+
# Rust build outputs.
|
|
48
|
+
target/
|
|
49
|
+
**/target/
|
|
50
|
+
rust/crates/*/Cargo.lock
|
|
51
|
+
# Local transient files
|
|
52
|
+
*.tmp
|
|
53
|
+
*.log
|
|
54
|
+
*.bak
|
|
55
|
+
*.swp
|
|
56
|
+
*.swo
|
|
57
|
+
*.orig
|
|
58
|
+
|
|
59
|
+
# Python/pytest leftovers not always covered by tool output
|
|
60
|
+
.coverage.*
|
|
61
|
+
htmlcov/
|
|
62
|
+
.ipynb_checkpoints/
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: agentledger-mcp
|
|
3
|
+
Version: 1.2.2
|
|
4
|
+
Summary: MCP tool and context adapter package for AgentLedger
|
|
5
|
+
Project-URL: Homepage, https://github.com/yaogdu/AgentLedger
|
|
6
|
+
Project-URL: Repository, https://github.com/yaogdu/AgentLedger
|
|
7
|
+
Project-URL: Documentation, https://github.com/yaogdu/AgentLedger/tree/main/docs
|
|
8
|
+
Project-URL: Issues, https://github.com/yaogdu/AgentLedger/issues
|
|
9
|
+
Author: AgentLedger Contributors
|
|
10
|
+
License: Apache-2.0
|
|
11
|
+
Keywords: agents,mcp,runtime,tools
|
|
12
|
+
Requires-Python: >=3.11
|
|
13
|
+
Requires-Dist: agentledger-runtime<2,>=1.2
|
|
14
|
+
Description-Content-Type: text/markdown
|
|
15
|
+
|
|
16
|
+
# agentledger-mcp
|
|
17
|
+
|
|
18
|
+
MCP-style tool and context adapter package for AgentLedger.
|
|
19
|
+
|
|
20
|
+
```bash
|
|
21
|
+
pip install agentledger-mcp
|
|
22
|
+
pip install "agentledger-runtime[mcp]"
|
|
23
|
+
```
|
|
24
|
+
|
|
25
|
+
```python
|
|
26
|
+
from agentledger_mcp import MCPToolAdapter, MCPContextAdapter
|
|
27
|
+
```
|
|
28
|
+
|
|
29
|
+
This package exposes the runtime-owned conversion between MCP-style descriptors and AgentLedger `ToolSpec` objects. Concrete MCP transports can be added behind this package without changing runtime-core.
|
|
30
|
+
|
|
31
|
+
Certification:
|
|
32
|
+
|
|
33
|
+
```bash
|
|
34
|
+
python3 -m agentledger adapter certify --kind mcp --adapter-version 1.2.2
|
|
35
|
+
```
|
|
36
|
+
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
# agentledger-mcp
|
|
2
|
+
|
|
3
|
+
MCP-style tool and context adapter package for AgentLedger.
|
|
4
|
+
|
|
5
|
+
```bash
|
|
6
|
+
pip install agentledger-mcp
|
|
7
|
+
pip install "agentledger-runtime[mcp]"
|
|
8
|
+
```
|
|
9
|
+
|
|
10
|
+
```python
|
|
11
|
+
from agentledger_mcp import MCPToolAdapter, MCPContextAdapter
|
|
12
|
+
```
|
|
13
|
+
|
|
14
|
+
This package exposes the runtime-owned conversion between MCP-style descriptors and AgentLedger `ToolSpec` objects. Concrete MCP transports can be added behind this package without changing runtime-core.
|
|
15
|
+
|
|
16
|
+
Certification:
|
|
17
|
+
|
|
18
|
+
```bash
|
|
19
|
+
python3 -m agentledger adapter certify --kind mcp --adapter-version 1.2.2
|
|
20
|
+
```
|
|
21
|
+
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
[build-system]
|
|
2
|
+
requires = ["hatchling"]
|
|
3
|
+
build-backend = "hatchling.build"
|
|
4
|
+
|
|
5
|
+
[project]
|
|
6
|
+
name = "agentledger-mcp"
|
|
7
|
+
version = "1.2.2"
|
|
8
|
+
description = "MCP tool and context adapter package for AgentLedger"
|
|
9
|
+
readme = "README.md"
|
|
10
|
+
requires-python = ">=3.11"
|
|
11
|
+
license = {text = "Apache-2.0"}
|
|
12
|
+
authors = [{name = "AgentLedger Contributors"}]
|
|
13
|
+
keywords = ["agents", "runtime", "mcp", "tools"]
|
|
14
|
+
dependencies = ["agentledger-runtime>=1.2,<2"]
|
|
15
|
+
|
|
16
|
+
[project.urls]
|
|
17
|
+
Homepage = "https://github.com/yaogdu/AgentLedger"
|
|
18
|
+
Repository = "https://github.com/yaogdu/AgentLedger"
|
|
19
|
+
Documentation = "https://github.com/yaogdu/AgentLedger/tree/main/docs"
|
|
20
|
+
Issues = "https://github.com/yaogdu/AgentLedger/issues"
|
|
21
|
+
|
|
22
|
+
[tool.hatch.build.targets.wheel]
|
|
23
|
+
packages = ["src/agentledger_mcp"]
|
|
24
|
+
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
from agentledger.adapters_mcp import (
|
|
2
|
+
InMemoryMCPContextServer,
|
|
3
|
+
InMemoryMCPToolServer,
|
|
4
|
+
MCPContextAdapter,
|
|
5
|
+
MCPResourceDescriptor,
|
|
6
|
+
MCPToolAdapter,
|
|
7
|
+
)
|
|
8
|
+
|
|
9
|
+
__version__ = "1.2.2"
|
|
10
|
+
|
|
11
|
+
__all__ = [
|
|
12
|
+
"InMemoryMCPContextServer",
|
|
13
|
+
"InMemoryMCPToolServer",
|
|
14
|
+
"MCPContextAdapter",
|
|
15
|
+
"MCPResourceDescriptor",
|
|
16
|
+
"MCPToolAdapter",
|
|
17
|
+
"__version__",
|
|
18
|
+
]
|
|
19
|
+
|