Signnow
SignNowMCPToolSpec #
Bases: BaseToolSpec
Thin wrapper over McpToolSpec: - creates BasicMCPClient for STDIO spawn, - dynamically pulls tools from SignNow MCP server, - sugar factories: from_env.
See McpToolSpec.to_tool_list() / .to_tool_list_async() for getting FunctionTool.
Source code in llama_index/tools/signnow/base.py
66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 | |
from_env
classmethod
#
from_env(*, allowed_tools: Optional[Iterable[str]] = None, include_resources: bool = False, env_overrides: Optional[Mapping[str, str]] = None, bin: Optional[str] = None, cmd: str = 'serve', args: Optional[Sequence[str]] = None, require_in_path: bool = True) -> SignNowMCPToolSpec
Spawn STDIO: 'sn-mcp serve' with provided environment overrides merged on top of the current process environment.
Supported variables (see server README): SIGNNOW_TOKEN (token-based auth) OR SIGNNOW_USER_EMAIL, SIGNNOW_PASSWORD, SIGNNOW_API_BASIC_TOKEN (credential-based auth) SIGNNOW_APP_BASE, SIGNNOW_API_BASE (optional, defaults can be used)
Parameters#
- bin: binary/command to spawn (default None → uses SIGNNOW_MCP_BIN or 'sn-mcp')
- cmd: subcommand (default 'serve')
- args: additional arguments for the server
- require_in_path: validate presence of binary in PATH if not absolute
Source code in llama_index/tools/signnow/base.py
91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 | |
to_tool_list_async
async
#
to_tool_list_async() -> List[FunctionTool]
Delegate to underlying McpToolSpec with error handling.
Source code in llama_index/tools/signnow/base.py
141 142 143 144 | |
to_tool_list #
to_tool_list(spec_functions: Optional[List[Union[str, Tuple[str, str]]]] = None, func_to_metadata_mapping: Optional[Dict[str, ToolMetadata]] = None) -> List[FunctionTool]
Delegate to underlying McpToolSpec (sync) with error handling.
Source code in llama_index/tools/signnow/base.py
146 147 148 149 150 151 152 153 154 | |
options: members: - SignNowMCPToolSpec