meshagent-cli 0.0.28__py3-none-any.whl → 0.0.30__py3-none-any.whl
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.
Potentially problematic release.
This version of meshagent-cli might be problematic. Click here for more details.
- meshagent/cli/cli_mcp.py +7 -7
- meshagent/cli/version.py +1 -1
- meshagent/cli/voicebot.py +4 -2
- {meshagent_cli-0.0.28.dist-info → meshagent_cli-0.0.30.dist-info}/METADATA +5 -5
- {meshagent_cli-0.0.28.dist-info → meshagent_cli-0.0.30.dist-info}/RECORD +8 -8
- {meshagent_cli-0.0.28.dist-info → meshagent_cli-0.0.30.dist-info}/WHEEL +0 -0
- {meshagent_cli-0.0.28.dist-info → meshagent_cli-0.0.30.dist-info}/entry_points.txt +0 -0
- {meshagent_cli-0.0.28.dist-info → meshagent_cli-0.0.30.dist-info}/top_level.txt +0 -0
meshagent/cli/cli_mcp.py
CHANGED
|
@@ -5,7 +5,7 @@ from mcp.client.stdio import stdio_client, StdioServerParameters
|
|
|
5
5
|
|
|
6
6
|
import typer
|
|
7
7
|
from rich import print
|
|
8
|
-
from typing import Annotated, Optional
|
|
8
|
+
from typing import Annotated, Optional, List
|
|
9
9
|
|
|
10
10
|
from meshagent.api.helpers import meshagent_base_url, websocket_room_url
|
|
11
11
|
from meshagent.api import RoomClient, ParticipantToken, WebSocketClientProtocol, RoomException
|
|
@@ -21,6 +21,7 @@ from pathlib import Path
|
|
|
21
21
|
from meshagent.api.services import ServiceHost
|
|
22
22
|
import os
|
|
23
23
|
|
|
24
|
+
from meshagent.cli.services import _kv_to_dict
|
|
24
25
|
|
|
25
26
|
import shlex
|
|
26
27
|
|
|
@@ -64,7 +65,7 @@ async def sse(*, project_id: str = None, room: Annotated[str, typer.Option()], t
|
|
|
64
65
|
await account_client.close()
|
|
65
66
|
|
|
66
67
|
@app.async_command("stdio")
|
|
67
|
-
async def stdio(*, project_id: str = None, room: Annotated[str, typer.Option()], token_path: Annotated[Optional[str], typer.Option()] = None, api_key_id: Annotated[Optional[str], typer.Option()] = None, name: Annotated[str, typer.Option(..., help="Participant name")] = "cli", role: str = "tool", command: Annotated[str, typer.Option()], toolkit_name: Annotated[Optional[str], typer.Option()] = None):
|
|
68
|
+
async def stdio(*, project_id: str = None, room: Annotated[str, typer.Option()], token_path: Annotated[Optional[str], typer.Option()] = None, api_key_id: Annotated[Optional[str], typer.Option()] = None, name: Annotated[str, typer.Option(..., help="Participant name")] = "cli", role: str = "tool", command: Annotated[str, typer.Option()], toolkit_name: Annotated[Optional[str], typer.Option()] = None, env: Annotated[List[str], typer.Option("--env", "-e", help="KEY=VALUE")] = []):
|
|
68
69
|
if toolkit_name == None:
|
|
69
70
|
toolkit_name = "mcp"
|
|
70
71
|
|
|
@@ -83,7 +84,7 @@ async def stdio(*, project_id: str = None, room: Annotated[str, typer.Option()],
|
|
|
83
84
|
async with stdio_client(StdioServerParameters(
|
|
84
85
|
command=parsed_command[0], # Executable
|
|
85
86
|
args=parsed_command[1:], # Optional command line arguments
|
|
86
|
-
env=
|
|
87
|
+
env=_kv_to_dict(env), # Optional environment variables
|
|
87
88
|
)) as (read_stream, write_stream):
|
|
88
89
|
|
|
89
90
|
async with ClientSession(read_stream=read_stream, write_stream=write_stream) as session:
|
|
@@ -108,7 +109,7 @@ async def stdio(*, project_id: str = None, room: Annotated[str, typer.Option()],
|
|
|
108
109
|
|
|
109
110
|
|
|
110
111
|
@app.async_command("stdio-service")
|
|
111
|
-
async def stdio_host(*, command: Annotated[str, typer.Option()], host: Annotated[Optional[str], typer.Option()] = None, port: Annotated[Optional[int], typer.Option()] = None, webhook_secret: Annotated[Optional[str], typer.Option()] = None, path: Annotated[Optional[str], typer.Option()] = None, toolkit_name: Annotated[Optional[str], typer.Option()] = None):
|
|
112
|
+
async def stdio_host(*, command: Annotated[str, typer.Option()], host: Annotated[Optional[str], typer.Option()] = None, port: Annotated[Optional[int], typer.Option()] = None, webhook_secret: Annotated[Optional[str], typer.Option()] = None, path: Annotated[Optional[str], typer.Option()] = None, toolkit_name: Annotated[Optional[str], typer.Option()] = None, env: Annotated[List[str], typer.Option("--env", "-e", help="KEY=VALUE")] = []):
|
|
112
113
|
|
|
113
114
|
try:
|
|
114
115
|
|
|
@@ -117,12 +118,11 @@ async def stdio_host(*, command: Annotated[str, typer.Option()], host: Annotat
|
|
|
117
118
|
async with stdio_client(StdioServerParameters(
|
|
118
119
|
command=parsed_command[0], # Executable
|
|
119
120
|
args=parsed_command[1:], # Optional command line arguments
|
|
120
|
-
env=
|
|
121
|
+
env=_kv_to_dict(env), # Optional environment variables
|
|
121
122
|
)) as (read_stream, write_stream):
|
|
122
123
|
|
|
123
124
|
async with ClientSession(read_stream=read_stream, write_stream=write_stream) as session:
|
|
124
|
-
|
|
125
|
-
|
|
125
|
+
|
|
126
126
|
mcp_tools_response = await session.list_tools()
|
|
127
127
|
|
|
128
128
|
if toolkit_name == None:
|
meshagent/cli/version.py
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
__version__ = "0.0.
|
|
1
|
+
__version__ = "0.0.30"
|
meshagent/cli/voicebot.py
CHANGED
|
@@ -42,7 +42,8 @@ async def make_call(
|
|
|
42
42
|
rule: Annotated[List[str], typer.Option("--rule", "-r", help="a system rule")] = [],
|
|
43
43
|
toolkit: Annotated[List[str], typer.Option("--toolkit", "-t", help="the name or url of a required toolkit")] = [],
|
|
44
44
|
schema: Annotated[List[str], typer.Option("--schema", "-s", help="the name or url of a required schema")] = [],
|
|
45
|
-
|
|
45
|
+
auto_greet_message: Annotated[Optional[str], typer.Option()] = None,
|
|
46
|
+
auto_greet_prompt: Annotated[Optional[str], typer.Option()] = None,
|
|
46
47
|
):
|
|
47
48
|
account_client = await get_client()
|
|
48
49
|
try:
|
|
@@ -75,7 +76,8 @@ async def make_call(
|
|
|
75
76
|
requirements.append(RequiredSchema(name=t))
|
|
76
77
|
|
|
77
78
|
bot = VoiceBot(
|
|
78
|
-
|
|
79
|
+
auto_greet_message=auto_greet_message,
|
|
80
|
+
auto_greet_prompt=auto_greet_prompt,
|
|
79
81
|
name=agent_name,
|
|
80
82
|
requires=requirements,
|
|
81
83
|
rules=rule if len(rule) > 0 else None
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: meshagent-cli
|
|
3
|
-
Version: 0.0.
|
|
3
|
+
Version: 0.0.30
|
|
4
4
|
Summary: CLI for Meshagent
|
|
5
5
|
License-Expression: Apache-2.0
|
|
6
6
|
Project-URL: Documentation, https://docs.meshagent.com
|
|
@@ -10,10 +10,10 @@ Requires-Python: >=3.12
|
|
|
10
10
|
Description-Content-Type: text/markdown
|
|
11
11
|
Requires-Dist: typer~=0.15.3
|
|
12
12
|
Requires-Dist: pydantic-yaml~=1.4.0
|
|
13
|
-
Requires-Dist: meshagent-api~=0.0.
|
|
14
|
-
Requires-Dist: meshagent-agents~=0.0.
|
|
15
|
-
Requires-Dist: meshagent-tools~=0.0.
|
|
16
|
-
Requires-Dist: meshagent-mcp~=0.0.
|
|
13
|
+
Requires-Dist: meshagent-api~=0.0.30
|
|
14
|
+
Requires-Dist: meshagent-agents~=0.0.30
|
|
15
|
+
Requires-Dist: meshagent-tools~=0.0.30
|
|
16
|
+
Requires-Dist: meshagent-mcp~=0.0.30
|
|
17
17
|
Requires-Dist: supabase~=2.15.1
|
|
18
18
|
|
|
19
19
|
### Meshagent CLI
|
|
@@ -7,7 +7,7 @@ meshagent/cli/auth_async.py,sha256=LArKxTxQAPmItv0JaGkW3Ybutl6MVmb6_EeSjI18IbI,4
|
|
|
7
7
|
meshagent/cli/call.py,sha256=M8oMo-hsYIzQzMF0OMNdJuoYCjDwtYUtdV1hCwZs0co,4610
|
|
8
8
|
meshagent/cli/chatbot.py,sha256=ylW_jSvY1OWDs7LPsyEIz8-x_BaInnIgmpcQZqwOdmg,3016
|
|
9
9
|
meshagent/cli/cli.py,sha256=G7RAwd3LzS4LHpvyCD51XS0vjwR2Ml7feUfBP2VdwUs,1338
|
|
10
|
-
meshagent/cli/cli_mcp.py,sha256
|
|
10
|
+
meshagent/cli/cli_mcp.py,sha256=-H4DtUGXZeWT2P7P9_5hOLRDq_l9xr1NoRLW_vDToRo,7462
|
|
11
11
|
meshagent/cli/cli_secrets.py,sha256=U0kdzN3zt7JIqzdRLynAjxdvAsI0enesBd_m7TeXjnQ,13629
|
|
12
12
|
meshagent/cli/developer.py,sha256=5eoDr3kfi-IufA5d6OESqNr739Bdut_IFBtT3nq0xZU,3002
|
|
13
13
|
meshagent/cli/helper.py,sha256=hcY6C5BqGnYmwFVIG7nS9NPIZXbdpOoEna-t0mYmHGY,4632
|
|
@@ -17,11 +17,11 @@ meshagent/cli/projects.py,sha256=Tut8kRCVvgdWzlAR1Zqf0QxAi4sNfQEIHY9zxfS1nuI,110
|
|
|
17
17
|
meshagent/cli/services.py,sha256=5uVfW8LX8IJ_Y03bkaC7wYvuLJltlAhhqNonavgqHqs,11042
|
|
18
18
|
meshagent/cli/sessions.py,sha256=WWvuztYqRfthSq6ztwL_eQ_sz9JRc33jcN6p7YyM_Fs,782
|
|
19
19
|
meshagent/cli/storage.py,sha256=BsagaJfThrUWqXFyAk9IvQtUuDAMckE2mffZ_peozMo,33555
|
|
20
|
-
meshagent/cli/version.py,sha256=
|
|
21
|
-
meshagent/cli/voicebot.py,sha256=
|
|
20
|
+
meshagent/cli/version.py,sha256=8ZeepqkW4DvpVeNm92mx0tIzgvVevS4NKWkTXXHuXNY,23
|
|
21
|
+
meshagent/cli/voicebot.py,sha256=KnWg1OeIPqxn-jfubs6G5FdnNLyJD64RzV4bSlhtv5s,3419
|
|
22
22
|
meshagent/cli/webhook.py,sha256=KBl8U1TcOX3z2uoyH4YMuUuw0vSVX7xpRxYvzxI5c-Y,2811
|
|
23
|
-
meshagent_cli-0.0.
|
|
24
|
-
meshagent_cli-0.0.
|
|
25
|
-
meshagent_cli-0.0.
|
|
26
|
-
meshagent_cli-0.0.
|
|
27
|
-
meshagent_cli-0.0.
|
|
23
|
+
meshagent_cli-0.0.30.dist-info/METADATA,sha256=2ayLTylFsycSeL1DgAzALrjcc5ZqkppkP8A4hHtV6cg,605
|
|
24
|
+
meshagent_cli-0.0.30.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
25
|
+
meshagent_cli-0.0.30.dist-info/entry_points.txt,sha256=WRcGGN4vMtvC5Pgl3uRFqsJiQXNoHuLLa-TCSY3gAhQ,52
|
|
26
|
+
meshagent_cli-0.0.30.dist-info/top_level.txt,sha256=GlcXnHtRP6m7zlG3Df04M35OsHtNXy_DY09oFwWrH74,10
|
|
27
|
+
meshagent_cli-0.0.30.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|