anam-mcp 0.1.0__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.
- anam_mcp-0.1.0/.env.example +6 -0
- anam_mcp-0.1.0/.github/workflows/publish.yml +55 -0
- anam_mcp-0.1.0/.gitignore +101 -0
- anam_mcp-0.1.0/LICENSE +21 -0
- anam_mcp-0.1.0/PKG-INFO +175 -0
- anam_mcp-0.1.0/PLAN.md +504 -0
- anam_mcp-0.1.0/README.md +147 -0
- anam_mcp-0.1.0/anam_mcp/__init__.py +3 -0
- anam_mcp-0.1.0/anam_mcp/client.py +271 -0
- anam_mcp-0.1.0/anam_mcp/server.py +395 -0
- anam_mcp-0.1.0/pyproject.toml +47 -0
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
name: Publish to PyPI
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
push:
|
|
5
|
+
tags:
|
|
6
|
+
- "v*"
|
|
7
|
+
|
|
8
|
+
jobs:
|
|
9
|
+
validate:
|
|
10
|
+
runs-on: ubuntu-latest
|
|
11
|
+
steps:
|
|
12
|
+
- uses: actions/checkout@v4
|
|
13
|
+
|
|
14
|
+
- name: Set up Python
|
|
15
|
+
uses: actions/setup-python@v5
|
|
16
|
+
with:
|
|
17
|
+
python-version: "3.12"
|
|
18
|
+
|
|
19
|
+
- name: Validate version matches tag
|
|
20
|
+
run: |
|
|
21
|
+
TAG_VERSION=${GITHUB_REF#refs/tags/v}
|
|
22
|
+
PKG_VERSION=$(python -c "import tomllib; print(tomllib.load(open('pyproject.toml', 'rb'))['project']['version'])")
|
|
23
|
+
if [ "$TAG_VERSION" != "$PKG_VERSION" ]; then
|
|
24
|
+
echo "::error::Tag version ($TAG_VERSION) does not match package version ($PKG_VERSION)"
|
|
25
|
+
exit 1
|
|
26
|
+
fi
|
|
27
|
+
echo "Version validated: $TAG_VERSION"
|
|
28
|
+
|
|
29
|
+
publish:
|
|
30
|
+
needs: validate
|
|
31
|
+
runs-on: ubuntu-latest
|
|
32
|
+
environment: release
|
|
33
|
+
permissions:
|
|
34
|
+
id-token: write # Required for trusted publishing
|
|
35
|
+
|
|
36
|
+
steps:
|
|
37
|
+
- uses: actions/checkout@v4
|
|
38
|
+
|
|
39
|
+
- name: Set up Python
|
|
40
|
+
uses: actions/setup-python@v5
|
|
41
|
+
with:
|
|
42
|
+
python-version: "3.12"
|
|
43
|
+
|
|
44
|
+
- name: Install build dependencies
|
|
45
|
+
run: |
|
|
46
|
+
python -m pip install --upgrade pip
|
|
47
|
+
pip install build
|
|
48
|
+
|
|
49
|
+
- name: Build package
|
|
50
|
+
run: python -m build
|
|
51
|
+
|
|
52
|
+
- name: Publish to PyPI
|
|
53
|
+
uses: pypa/gh-action-pypi-publish@release/v1
|
|
54
|
+
# Uses trusted publishing - no API token needed
|
|
55
|
+
# Configure at: https://pypi.org/manage/project/anam-mcp/settings/publishing/
|
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
# Byte-compiled / optimized / DLL files
|
|
2
|
+
__pycache__/
|
|
3
|
+
*.py[cod]
|
|
4
|
+
*$py.class
|
|
5
|
+
|
|
6
|
+
# C extensions
|
|
7
|
+
*.so
|
|
8
|
+
|
|
9
|
+
# Distribution / packaging
|
|
10
|
+
.Python
|
|
11
|
+
build/
|
|
12
|
+
develop-eggs/
|
|
13
|
+
dist/
|
|
14
|
+
downloads/
|
|
15
|
+
eggs/
|
|
16
|
+
.eggs/
|
|
17
|
+
lib/
|
|
18
|
+
lib64/
|
|
19
|
+
parts/
|
|
20
|
+
sdist/
|
|
21
|
+
var/
|
|
22
|
+
wheels/
|
|
23
|
+
share/python-wheels/
|
|
24
|
+
*.egg-info/
|
|
25
|
+
.installed.cfg
|
|
26
|
+
*.egg
|
|
27
|
+
MANIFEST
|
|
28
|
+
|
|
29
|
+
# PyInstaller
|
|
30
|
+
*.manifest
|
|
31
|
+
*.spec
|
|
32
|
+
|
|
33
|
+
# Installer logs
|
|
34
|
+
pip-log.txt
|
|
35
|
+
pip-delete-this-directory.txt
|
|
36
|
+
|
|
37
|
+
# Unit test / coverage reports
|
|
38
|
+
htmlcov/
|
|
39
|
+
.tox/
|
|
40
|
+
.nox/
|
|
41
|
+
.coverage
|
|
42
|
+
.coverage.*
|
|
43
|
+
.cache
|
|
44
|
+
nosetests.xml
|
|
45
|
+
coverage.xml
|
|
46
|
+
*.cover
|
|
47
|
+
*.py,cover
|
|
48
|
+
.hypothesis/
|
|
49
|
+
.pytest_cache/
|
|
50
|
+
|
|
51
|
+
# Translations
|
|
52
|
+
*.mo
|
|
53
|
+
*.pot
|
|
54
|
+
|
|
55
|
+
# Environments
|
|
56
|
+
.env
|
|
57
|
+
.venv
|
|
58
|
+
env/
|
|
59
|
+
venv/
|
|
60
|
+
ENV/
|
|
61
|
+
env.bak/
|
|
62
|
+
venv.bak/
|
|
63
|
+
|
|
64
|
+
# Spyder project settings
|
|
65
|
+
.spyderproject
|
|
66
|
+
.spyproject
|
|
67
|
+
|
|
68
|
+
# Rope project settings
|
|
69
|
+
.ropeproject
|
|
70
|
+
|
|
71
|
+
# mkdocs documentation
|
|
72
|
+
/site
|
|
73
|
+
|
|
74
|
+
# mypy
|
|
75
|
+
.mypy_cache/
|
|
76
|
+
.dmypy.json
|
|
77
|
+
dmypy.json
|
|
78
|
+
|
|
79
|
+
# Pyre type checker
|
|
80
|
+
.pyre/
|
|
81
|
+
|
|
82
|
+
# pytype static type analyzer
|
|
83
|
+
.pytype/
|
|
84
|
+
|
|
85
|
+
# Cython debug symbols
|
|
86
|
+
cython_debug/
|
|
87
|
+
|
|
88
|
+
# IDE
|
|
89
|
+
.idea/
|
|
90
|
+
.vscode/
|
|
91
|
+
*.swp
|
|
92
|
+
*.swo
|
|
93
|
+
*~
|
|
94
|
+
|
|
95
|
+
# OS
|
|
96
|
+
.DS_Store
|
|
97
|
+
Thumbs.db
|
|
98
|
+
|
|
99
|
+
# Local development
|
|
100
|
+
*.local
|
|
101
|
+
.env.local
|
anam_mcp-0.1.0/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2025 Anam AI
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
anam_mcp-0.1.0/PKG-INFO
ADDED
|
@@ -0,0 +1,175 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: anam-mcp
|
|
3
|
+
Version: 0.1.0
|
|
4
|
+
Summary: Official Anam AI MCP server for managing AI personas
|
|
5
|
+
Project-URL: Homepage, https://github.com/anam-org/anam-mcp
|
|
6
|
+
Project-URL: Documentation, https://docs.anam.ai
|
|
7
|
+
Project-URL: Repository, https://github.com/anam-org/anam-mcp
|
|
8
|
+
Project-URL: Issues, https://github.com/anam-org/anam-mcp/issues
|
|
9
|
+
Author-email: Anam AI <support@anam.ai>
|
|
10
|
+
License-Expression: MIT
|
|
11
|
+
License-File: LICENSE
|
|
12
|
+
Keywords: ai,anam,avatar,digital-human,mcp,persona
|
|
13
|
+
Classifier: Development Status :: 4 - Beta
|
|
14
|
+
Classifier: Intended Audience :: Developers
|
|
15
|
+
Classifier: License :: OSI Approved :: MIT License
|
|
16
|
+
Classifier: Programming Language :: Python :: 3
|
|
17
|
+
Classifier: Programming Language :: Python :: 3.10
|
|
18
|
+
Classifier: Programming Language :: Python :: 3.11
|
|
19
|
+
Classifier: Programming Language :: Python :: 3.12
|
|
20
|
+
Requires-Python: >=3.10
|
|
21
|
+
Requires-Dist: httpx>=0.27.0
|
|
22
|
+
Requires-Dist: mcp>=1.0.0
|
|
23
|
+
Requires-Dist: pydantic>=2.0.0
|
|
24
|
+
Provides-Extra: dev
|
|
25
|
+
Requires-Dist: pytest-asyncio>=0.23.0; extra == 'dev'
|
|
26
|
+
Requires-Dist: pytest>=8.0.0; extra == 'dev'
|
|
27
|
+
Description-Content-Type: text/markdown
|
|
28
|
+
|
|
29
|
+
# Anam MCP Server
|
|
30
|
+
|
|
31
|
+
Official MCP (Model Context Protocol) server for [Anam AI](https://anam.ai) - manage AI personas, avatars, voices, and sessions directly from Claude or any MCP client.
|
|
32
|
+
|
|
33
|
+
## Installation
|
|
34
|
+
|
|
35
|
+
### Using uvx (recommended)
|
|
36
|
+
|
|
37
|
+
```bash
|
|
38
|
+
uvx anam-mcp
|
|
39
|
+
```
|
|
40
|
+
|
|
41
|
+
### Using pip
|
|
42
|
+
|
|
43
|
+
```bash
|
|
44
|
+
pip install anam-mcp
|
|
45
|
+
```
|
|
46
|
+
|
|
47
|
+
## Configuration
|
|
48
|
+
|
|
49
|
+
### Claude Desktop
|
|
50
|
+
|
|
51
|
+
Add to your Claude Desktop configuration (`~/Library/Application Support/Claude/claude_desktop_config.json` on macOS):
|
|
52
|
+
|
|
53
|
+
```json
|
|
54
|
+
{
|
|
55
|
+
"mcpServers": {
|
|
56
|
+
"anam": {
|
|
57
|
+
"command": "uvx",
|
|
58
|
+
"args": ["anam-mcp"],
|
|
59
|
+
"env": {
|
|
60
|
+
"ANAM_API_KEY": "<your-api-key>"
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
```
|
|
66
|
+
|
|
67
|
+
### Claude Code
|
|
68
|
+
|
|
69
|
+
Add to your project's `.mcp.json`:
|
|
70
|
+
|
|
71
|
+
```json
|
|
72
|
+
{
|
|
73
|
+
"mcpServers": {
|
|
74
|
+
"anam": {
|
|
75
|
+
"type": "stdio",
|
|
76
|
+
"command": "uvx",
|
|
77
|
+
"args": ["anam-mcp"],
|
|
78
|
+
"env": {
|
|
79
|
+
"ANAM_API_KEY": "<your-api-key>"
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
```
|
|
85
|
+
|
|
86
|
+
## Getting Your API Key
|
|
87
|
+
|
|
88
|
+
1. Sign up at [Anam Lab](https://lab.anam.ai)
|
|
89
|
+
2. Navigate to the [API Keys page](https://lab.anam.ai/api-keys)
|
|
90
|
+
3. Click "Create API key" and save it securely
|
|
91
|
+
|
|
92
|
+
## Available Tools
|
|
93
|
+
|
|
94
|
+
### Persona Management
|
|
95
|
+
|
|
96
|
+
| Tool | Description |
|
|
97
|
+
|------|-------------|
|
|
98
|
+
| `list_personas` | List all personas in your account |
|
|
99
|
+
| `get_persona` | Get details of a specific persona |
|
|
100
|
+
| `create_persona` | Create a new persona with avatar, voice, and personality |
|
|
101
|
+
| `update_persona` | Update an existing persona |
|
|
102
|
+
| `delete_persona` | Delete a persona |
|
|
103
|
+
|
|
104
|
+
### Avatar Management
|
|
105
|
+
|
|
106
|
+
| Tool | Description |
|
|
107
|
+
|------|-------------|
|
|
108
|
+
| `list_avatars` | List all available avatars |
|
|
109
|
+
| `create_avatar` | Create custom avatar from image (enterprise/pro) |
|
|
110
|
+
| `delete_avatar` | Delete a custom avatar |
|
|
111
|
+
|
|
112
|
+
### Voice Management
|
|
113
|
+
|
|
114
|
+
| Tool | Description |
|
|
115
|
+
|------|-------------|
|
|
116
|
+
| `list_voices` | List all available voices (400+ in 50+ languages) |
|
|
117
|
+
|
|
118
|
+
### Tool Management
|
|
119
|
+
|
|
120
|
+
| Tool | Description |
|
|
121
|
+
|------|-------------|
|
|
122
|
+
| `list_tools` | List all tools in your organization |
|
|
123
|
+
| `create_webhook_tool` | Create a webhook tool for API integrations |
|
|
124
|
+
| `create_knowledge_tool` | Create a knowledge/RAG tool |
|
|
125
|
+
| `delete_tool` | Delete a tool |
|
|
126
|
+
|
|
127
|
+
### Session Management
|
|
128
|
+
|
|
129
|
+
| Tool | Description |
|
|
130
|
+
|------|-------------|
|
|
131
|
+
| `create_session_token` | Generate a session token for the client SDK |
|
|
132
|
+
|
|
133
|
+
### Knowledge Base
|
|
134
|
+
|
|
135
|
+
| Tool | Description |
|
|
136
|
+
|------|-------------|
|
|
137
|
+
| `list_knowledge_folders` | List knowledge folders |
|
|
138
|
+
| `create_knowledge_folder` | Create a new folder for documents |
|
|
139
|
+
|
|
140
|
+
## Example Usage
|
|
141
|
+
|
|
142
|
+
Once configured, you can ask Claude:
|
|
143
|
+
|
|
144
|
+
- "List all my Anam personas"
|
|
145
|
+
- "Create a new persona named 'Sales Assistant' with a friendly personality"
|
|
146
|
+
- "What avatars are available?"
|
|
147
|
+
- "Generate a session token for my customer support persona"
|
|
148
|
+
|
|
149
|
+
## Default IDs
|
|
150
|
+
|
|
151
|
+
For quick testing, you can use these default IDs:
|
|
152
|
+
|
|
153
|
+
| Resource | ID |
|
|
154
|
+
|----------|-----|
|
|
155
|
+
| Avatar (Cara) | `30fa96d0-26c4-4e55-94a0-517025942e18` |
|
|
156
|
+
| Voice (Cara) | `6bfbe25a-979d-40f3-a92b-5394170af54b` |
|
|
157
|
+
| Default LLM | `0934d97d-0c3a-4f33-91b0-5e136a0ef466` |
|
|
158
|
+
|
|
159
|
+
## Environment Variables
|
|
160
|
+
|
|
161
|
+
| Variable | Description | Default |
|
|
162
|
+
|----------|-------------|---------|
|
|
163
|
+
| `ANAM_API_KEY` | Your Anam API key (required) | - |
|
|
164
|
+
| `ANAM_API_URL` | API base URL (for staging) | `https://api.anam.ai` |
|
|
165
|
+
|
|
166
|
+
## Documentation
|
|
167
|
+
|
|
168
|
+
- [Anam Developer Docs](https://docs.anam.ai)
|
|
169
|
+
- [API Reference](https://docs.anam.ai/api-reference)
|
|
170
|
+
- [Avatar Gallery](https://docs.anam.ai/resources/avatar-gallery)
|
|
171
|
+
- [Voice Gallery](https://docs.anam.ai/resources/voice-gallery)
|
|
172
|
+
|
|
173
|
+
## License
|
|
174
|
+
|
|
175
|
+
MIT License - see [LICENSE](LICENSE) for details.
|