salesforce-agent 2.3.7__tar.gz → 2.4.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.
- {salesforce_agent-2.3.7/salesforce_agent.egg-info → salesforce_agent-2.4.2}/PKG-INFO +127 -98
- {salesforce_agent-2.3.7 → salesforce_agent-2.4.2}/README.md +124 -95
- {salesforce_agent-2.3.7 → salesforce_agent-2.4.2}/pyproject.toml +3 -7
- {salesforce_agent-2.3.7 → salesforce_agent-2.4.2}/salesforce_agent/__init__.py +1 -1
- {salesforce_agent-2.3.7 → salesforce_agent-2.4.2}/salesforce_agent/api/api_client_admin.py +1 -1
- {salesforce_agent-2.3.7 → salesforce_agent-2.4.2}/salesforce_agent/api/api_client_base.py +1 -1
- {salesforce_agent-2.3.7 → salesforce_agent-2.4.2}/salesforce_agent/api/api_client_bulk.py +7 -9
- {salesforce_agent-2.3.7 → salesforce_agent-2.4.2}/salesforce_agent/api/api_client_records.py +11 -16
- {salesforce_agent-2.3.7 → salesforce_agent-2.4.2}/salesforce_agent/auth.py +11 -16
- salesforce_agent-2.4.2/salesforce_agent/connector_contracts.py +478 -0
- {salesforce_agent-2.3.7 → salesforce_agent-2.4.2}/salesforce_agent/kg_ingest.py +13 -3
- salesforce_agent-2.4.2/salesforce_agent/mcp/__init__.py +8 -0
- salesforce_agent-2.4.2/salesforce_agent/mcp/mcp_salesforce.py +64 -0
- {salesforce_agent-2.3.7 → salesforce_agent-2.4.2}/salesforce_agent/mcp_server.py +2 -16
- {salesforce_agent-2.3.7 → salesforce_agent-2.4.2}/salesforce_agent/ontology/__init__.py +1 -1
- {salesforce_agent-2.3.7 → salesforce_agent-2.4.2}/salesforce_agent/ontology/certification.json +4 -4
- {salesforce_agent-2.3.7 → salesforce_agent-2.4.2}/salesforce_agent/ontology/mappings/source.yaml +4 -4
- {salesforce_agent-2.3.7 → salesforce_agent-2.4.2}/salesforce_agent/ontology/salesforce.ttl +18 -40
- {salesforce_agent-2.3.7 → salesforce_agent-2.4.2}/salesforce_agent/ontology/shapes/connector.shacl.ttl +2 -42
- salesforce_agent-2.4.2/salesforce_agent/prompts/salesforce-crm-data-steward.json +68 -0
- salesforce_agent-2.4.2/salesforce_agent/prompts/salesforce-operator.json +79 -0
- salesforce_agent-2.4.2/salesforce_agent/prompts/salesforce-sales-analyst.json +55 -0
- {salesforce_agent-2.3.7 → salesforce_agent-2.4.2}/salesforce_agent/salesforce_response_models.py +0 -13
- {salesforce_agent-2.3.7 → salesforce_agent-2.4.2}/salesforce_agent/skills/salesforce-agent-development/SKILL.md +18 -2
- salesforce_agent-2.4.2/salesforce_agent/skills/salesforce-agent-operations/SKILL.md +58 -0
- {salesforce_agent-2.3.7 → salesforce_agent-2.4.2}/salesforce_agent/skills/salesforce-agent-operations/references/catalog.md +1 -1
- {salesforce_agent-2.3.7 → salesforce_agent-2.4.2}/salesforce_agent/skills/salesforce-crm-knowledge-graph/SKILL.md +28 -23
- {salesforce_agent-2.3.7 → salesforce_agent-2.4.2}/salesforce_agent/skills/salesforce-crm-knowledge-graph/WORKFLOW.md +11 -17
- salesforce_agent-2.4.2/salesforce_agent/skills/salesforce-record-management/SKILL.md +109 -0
- salesforce_agent-2.4.2/salesforce_agent/skills/salesforce-record-management/WORKFLOW.md +84 -0
- salesforce_agent-2.4.2/salesforce_agent/skills/salesforce-soql-query/SKILL.md +89 -0
- {salesforce_agent-2.3.7 → salesforce_agent-2.4.2}/salesforce_agent/skills/salesforce-soql-query/WORKFLOW.md +22 -27
- {salesforce_agent-2.3.7 → salesforce_agent-2.4.2/salesforce_agent.egg-info}/PKG-INFO +127 -98
- {salesforce_agent-2.3.7 → salesforce_agent-2.4.2}/salesforce_agent.egg-info/SOURCES.txt +6 -3
- {salesforce_agent-2.3.7 → salesforce_agent-2.4.2}/salesforce_agent.egg-info/entry_points.txt +0 -3
- {salesforce_agent-2.3.7 → salesforce_agent-2.4.2}/salesforce_agent.egg-info/requires.txt +2 -2
- {salesforce_agent-2.3.7 → salesforce_agent-2.4.2}/tests/test_auth.py +4 -4
- {salesforce_agent-2.3.7 → salesforce_agent-2.4.2}/tests/test_bulk.py +2 -12
- {salesforce_agent-2.3.7 → salesforce_agent-2.4.2}/tests/test_kg_ingest.py +8 -4
- salesforce_agent-2.4.2/tests/test_ontology_extends_core.py +17 -0
- {salesforce_agent-2.3.7 → salesforce_agent-2.4.2}/tests/test_publication_workflow.py +1 -1
- {salesforce_agent-2.3.7 → salesforce_agent-2.4.2}/tests/test_records.py +6 -32
- salesforce_agent-2.4.2/tests/test_salesforce_mcp_validation.py +311 -0
- salesforce_agent-2.4.2/tests/test_scion_sdk_0_10_imports.py +59 -0
- {salesforce_agent-2.3.7 → salesforce_agent-2.4.2}/tests/test_startup.py +5 -4
- salesforce_agent-2.3.7/salesforce_agent/mcp/__init__.py +0 -19
- salesforce_agent-2.3.7/salesforce_agent/mcp/mcp_salesforce.py +0 -302
- salesforce_agent-2.3.7/salesforce_agent/prompts/crm_specialist.json +0 -42
- salesforce_agent-2.3.7/salesforce_agent/salesforce_input_models.py +0 -161
- salesforce_agent-2.3.7/salesforce_agent/skills/salesforce-agent-operations/SKILL.md +0 -33
- salesforce_agent-2.3.7/salesforce_agent/skills/salesforce-record-management/SKILL.md +0 -91
- salesforce_agent-2.3.7/salesforce_agent/skills/salesforce-record-management/WORKFLOW.md +0 -78
- salesforce_agent-2.3.7/salesforce_agent/skills/salesforce-soql-query/SKILL.md +0 -83
- salesforce_agent-2.3.7/tests/test_salesforce_mcp_validation.py +0 -274
- salesforce_agent-2.3.7/tests/test_salesforce_models.py +0 -62
- {salesforce_agent-2.3.7 → salesforce_agent-2.4.2}/LICENSE +0 -0
- {salesforce_agent-2.3.7 → salesforce_agent-2.4.2}/salesforce_agent/__main__.py +0 -0
- {salesforce_agent-2.3.7 → salesforce_agent-2.4.2}/salesforce_agent/api/__init__.py +0 -0
- {salesforce_agent-2.3.7 → salesforce_agent-2.4.2}/salesforce_agent/api/api_client_describe.py +0 -0
- {salesforce_agent-2.3.7 → salesforce_agent-2.4.2}/salesforce_agent/api/api_client_query.py +0 -0
- {salesforce_agent-2.3.7 → salesforce_agent-2.4.2}/salesforce_agent/api_client.py +0 -0
- {salesforce_agent-2.3.7 → salesforce_agent-2.4.2}/salesforce_agent/connector_sources.py +0 -0
- {salesforce_agent-2.3.7 → salesforce_agent-2.4.2}/salesforce_agent/mcp_config.json +0 -0
- {salesforce_agent-2.3.7 → salesforce_agent-2.4.2}/salesforce_agent/ontology/fixtures/records.json +0 -0
- {salesforce_agent-2.3.7 → salesforce_agent-2.4.2}/salesforce_agent/ontology/migrations/manifest.json +0 -0
- {salesforce_agent-2.3.7 → salesforce_agent-2.4.2}/salesforce_agent/skills/salesforce-agent-operations/agents/openai.yaml +0 -0
- {salesforce_agent-2.3.7 → salesforce_agent-2.4.2}/salesforce_agent.egg-info/dependency_links.txt +0 -0
- {salesforce_agent-2.3.7 → salesforce_agent-2.4.2}/salesforce_agent.egg-info/top_level.txt +0 -0
- {salesforce_agent-2.3.7 → salesforce_agent-2.4.2}/setup.cfg +0 -0
- {salesforce_agent-2.3.7 → salesforce_agent-2.4.2}/tests/test_admin.py +0 -0
- {salesforce_agent-2.3.7 → salesforce_agent-2.4.2}/tests/test_api_wrapper.py +0 -0
- {salesforce_agent-2.3.7 → salesforce_agent-2.4.2}/tests/test_describe.py +0 -0
- {salesforce_agent-2.3.7 → salesforce_agent-2.4.2}/tests/test_errors.py +0 -0
- {salesforce_agent-2.3.7 → salesforce_agent-2.4.2}/tests/test_fleet_name.py +1 -1
- {salesforce_agent-2.3.7 → salesforce_agent-2.4.2}/tests/test_query.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: salesforce-agent
|
|
3
|
-
Version: 2.
|
|
3
|
+
Version: 2.4.2
|
|
4
4
|
Summary: Salesforce REST/SOQL/Bulk API 2.0 connector + MCP Server + A2A Server for Agentic AI!
|
|
5
5
|
Author-email: Repository Maintainers <maintainers@knuckles.team>
|
|
6
6
|
License: MIT
|
|
@@ -12,12 +12,12 @@ Classifier: Programming Language :: Python :: 3
|
|
|
12
12
|
Requires-Python: <3.15,>=3.12
|
|
13
13
|
Description-Content-Type: text/markdown
|
|
14
14
|
License-File: LICENSE
|
|
15
|
-
Requires-Dist: scion-sdk[mcp]<0.
|
|
15
|
+
Requires-Dist: scion-sdk[mcp]<0.15,>=0.14.1
|
|
16
16
|
Requires-Dist: httpx>=0.28.1
|
|
17
17
|
Provides-Extra: jwt
|
|
18
18
|
Requires-Dist: cryptography>=50.0.2; extra == "jwt"
|
|
19
19
|
Provides-Extra: all
|
|
20
|
-
Requires-Dist: scion-sdk[mcp]<0.
|
|
20
|
+
Requires-Dist: scion-sdk[mcp]<0.15,>=0.14.1; extra == "all"
|
|
21
21
|
Requires-Dist: cryptography>=50.0.2; extra == "all"
|
|
22
22
|
Provides-Extra: test
|
|
23
23
|
Requires-Dist: pytest-xdist>=3.8.0; extra == "test"
|
|
@@ -34,26 +34,26 @@ Dynamic: license-file
|
|
|
34
34
|

|
|
35
35
|

|
|
36
36
|

|
|
37
|
+

|
|
38
|
+

|
|
37
39
|

|
|
40
|
+

|
|
38
41
|

|
|
42
|
+

|
|
43
|
+

|
|
44
|
+

|
|
45
|
+

|
|
46
|
+

|
|
47
|
+

|
|
48
|
+

|
|
39
49
|

|
|
50
|
+

|
|
40
51
|
|
|
41
|
-
> **Documentation** — Installation, deployment, usage across the API, CLI,
|
|
42
|
-
>
|
|
43
|
-
>
|
|
52
|
+
> **Documentation** — Installation, deployment, and usage across the API, CLI, MCP,
|
|
53
|
+
> and A2A agent interfaces are maintained in the
|
|
54
|
+
> [official documentation](https://knuckles-team.github.io/salesforce-agent/).
|
|
44
55
|
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
- [Overview](#overview)
|
|
48
|
-
- [Architecture](#architecture)
|
|
49
|
-
- [Installation](#installation)
|
|
50
|
-
- [MCP Tools](#mcp-tools)
|
|
51
|
-
- [Auth Flows](#auth-flows)
|
|
52
|
-
- [Environment Variables](#environment-variables)
|
|
53
|
-
- [Quick Start](#quick-start)
|
|
54
|
-
- [Deployment](#deployment)
|
|
55
|
-
- [Development](#development)
|
|
56
|
-
- [License](#license)
|
|
56
|
+
---
|
|
57
57
|
|
|
58
58
|
## Overview
|
|
59
59
|
|
|
@@ -65,6 +65,8 @@ gates designed for autonomous agents.
|
|
|
65
65
|
No `simple-salesforce`: every endpoint is a documented thin call with its
|
|
66
66
|
Salesforce API doc URL cited in the docstring.
|
|
67
67
|
|
|
68
|
+
---
|
|
69
|
+
|
|
68
70
|
## Architecture
|
|
69
71
|
|
|
70
72
|
```mermaid
|
|
@@ -76,90 +78,29 @@ graph TD
|
|
|
76
78
|
Client --> ExternalAPI([Salesforce REST API])
|
|
77
79
|
```
|
|
78
80
|
|
|
79
|
-
|
|
81
|
+
---
|
|
80
82
|
|
|
81
|
-
|
|
82
|
-
> FastMCP / FastAPI through `scion-sdk[mcp]`; the required Agent Utilities core
|
|
83
|
-
> still carries `epistemic-graph[full]`. The `[agent]` extra also
|
|
84
|
-
> enables model orchestration.
|
|
83
|
+
## MCP
|
|
85
84
|
|
|
86
|
-
|
|
85
|
+
### MCP Tools
|
|
87
86
|
|
|
88
|
-
|
|
89
|
-
|-------|----------|----------|
|
|
90
|
-
| `salesforce-agent` (core) | Owned thin httpx Salesforce client (no server tooling) | The operator only use the **Python `Api` client** |
|
|
91
|
-
| `salesforce-agent[mcp]` | Connector-focused MCP server (`scion-sdk[mcp]` — FastMCP/FastAPI + `epistemic-graph[full]`) | The operator run the **MCP server** (smallest server install / image) |
|
|
92
|
-
| `salesforce-agent[agent]` | Agent runtime (`scion-sdk[agent-runtime,logfire]` — model orchestration + `epistemic-graph[full]`) | The operator run the **integrated agent** |
|
|
93
|
-
| `salesforce-agent[jwt]` | + `cryptography` for the JWT bearer flow | The operator authenticate via OAuth2 JWT bearer |
|
|
94
|
-
| `salesforce-agent[all]` | Everything (`mcp` + `agent` + `jwt` + `logfire`) | Development / all surfaces |
|
|
87
|
+
One typed tool per Salesforce operation, plus the knowledge-graph ingest tool. Operation tools are named `salesforce_<resource>_<operation>` and take typed arguments; no tool takes an `action`.
|
|
95
88
|
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
89
|
+
| Resource | Tools |
|
|
90
|
+
|----------|-------|
|
|
91
|
+
| Query | `salesforce_soql_query`, `salesforce_soql_explain`, `salesforce_soql_search` |
|
|
92
|
+
| Records | `salesforce_records_get`, `_create`, `_update`, `_upsert`, `_delete`*, `_composite`, `_collections_create`, `_collections_update`, `_collections_delete`* |
|
|
93
|
+
| Describe | `salesforce_describe_global_describe`, `_sobject`, `_record_counts`, `_limits` |
|
|
94
|
+
| Bulk API 2.0 | `salesforce_bulk_create_ingest_job`, `_upload`, `_close`, `_abort`, `_status`, `_list_jobs`, `_delete_job`, `_results` |
|
|
95
|
+
| Admin | `salesforce_admin_user_info`, `_org_info`, `_list_reports`, `_run_report` |
|
|
96
|
+
| Graph | `salesforce_ingest_crm` |
|
|
103
97
|
|
|
104
|
-
|
|
98
|
+
`*` gated by the SDK confirmation (`confirm=true`).
|
|
105
99
|
|
|
106
|
-
One multi-stage `docker/Dockerfile` builds two right-sized images, selected by `--target`:
|
|
107
100
|
|
|
108
|
-
|
|
109
|
-
|-----------|--------------|----------|------------|
|
|
110
|
-
| `example/salesforce-agent:mcp` | `--target mcp` | `salesforce-agent[mcp]` — **connector-focused**, includes `epistemic-graph[full]`; no model-orchestration stack | `salesforce-mcp` |
|
|
111
|
-
| `example/salesforce-agent@sha256:<digest>` | `--target agent` (default) | `salesforce-agent[agent]` — **agent runtime**, model orchestration + `epistemic-graph[full]` | `salesforce-agent` |
|
|
101
|
+
`*` Destructive — refused unless the caller confirms (`confirm=true`).
|
|
112
102
|
|
|
113
|
-
|
|
114
|
-
docker build --target mcp -t example/salesforce-agent:mcp docker/ # connector-focused MCP server
|
|
115
|
-
docker build --target agent -t example/salesforce-agent:agent-local docker/ # agent runtime
|
|
116
|
-
```
|
|
117
|
-
|
|
118
|
-
`docker/mcp.compose.yml` runs the connector-focused `:mcp` server; `docker/agent.compose.yml` runs the
|
|
119
|
-
agent (`immutable agent digest`) with a co-located `:mcp` sidecar.
|
|
120
|
-
|
|
121
|
-
### Knowledge-graph database (`epistemic-graph`)
|
|
122
|
-
|
|
123
|
-
Both `[mcp]` and `[agent]` carry the **epistemic-graph** engine through the required
|
|
124
|
-
Agent Utilities core dependency (`epistemic-graph[full]`). The `[mcp]` extra keeps
|
|
125
|
-
the server connector-focused; `[agent]` also enables model orchestration. Local
|
|
126
|
-
deployments can use the bundled engine. For production or shared state, run
|
|
127
|
-
**epistemic-graph as a dedicated database service** and configure the runtime to use it.
|
|
128
|
-
Deployment recipes (single-node + Raft HA), connection configuration, and architecture
|
|
129
|
-
diagrams are documented in the
|
|
130
|
-
[epistemic-graph deployment guide](https://knuckles-team.github.io/epistemic-graph/deployment/).
|
|
131
|
-
|
|
132
|
-
## MCP Tools
|
|
133
|
-
|
|
134
|
-
Consolidated, action-routed tools. Each takes `action` and `params_json`. The table below is auto-generated from the MCP server — do not edit by hand.
|
|
135
|
-
|
|
136
|
-
<!-- MCP-TOOLS-TABLE:START -->
|
|
137
|
-
|
|
138
|
-
#### Condensed action-routed tools (default — `MCP_TOOL_MODE=condensed`)
|
|
139
|
-
|
|
140
|
-
| MCP Tool | Toggle Env Var | Description |
|
|
141
|
-
|----------|----------------|-------------|
|
|
142
|
-
| `salesforce_admin` | `ADMINTOOL` | Inspect the current user/org and run analytics reports. |
|
|
143
|
-
| `salesforce_bulk` | `BULKTOOL` | Drive Bulk API 2.0 ingest jobs: create, upload, close, results. |
|
|
144
|
-
| `salesforce_describe` | `DESCRIBETOOL` | Discover org schema, record counts, and limits/API usage. |
|
|
145
|
-
| `salesforce_records` | `RECORDSTOOL` | CRUD on sObject records, composite batches, and collections. |
|
|
146
|
-
| `salesforce_soql` | `SOQLTOOL` | Run SOQL queries (paginated, capped) and SOSL searches. |
|
|
147
|
-
|
|
148
|
-
#### Verbose 1:1 API-mapped tools (`MCP_TOOL_MODE=verbose` or `both`)
|
|
149
|
-
|
|
150
|
-
<details>
|
|
151
|
-
<summary>1 per-operation tools — one per public API method (click to expand)</summary>
|
|
152
|
-
|
|
153
|
-
| MCP Tool | Toggle Env Var | Description |
|
|
154
|
-
|----------|----------------|-------------|
|
|
155
|
-
| `salesforce_close` | `APITOOL` | Invoke the close operation. |
|
|
156
|
-
|
|
157
|
-
</details>
|
|
158
|
-
|
|
159
|
-
_5 action-routed tool(s) (default) · 1 verbose 1:1 tool(s). Each is enabled unless its `<DOMAIN>TOOL` toggle is set false; `MCP_TOOL_MODE` selects the surface (`condensed` default · `verbose` 1:1 · `both`). Auto-generated — do not edit._
|
|
160
|
-
<!-- MCP-TOOLS-TABLE:END -->
|
|
161
|
-
|
|
162
|
-
`*` Destructive — blocked unless `SALESFORCE_ALLOW_DESTRUCTIVE=true`.
|
|
103
|
+
---
|
|
163
104
|
|
|
164
105
|
## Auth Flows
|
|
165
106
|
|
|
@@ -174,6 +115,8 @@ Sandbox orgs: `SALESFORCE_SANDBOX=true` (`test.salesforce.com`). Tokens are
|
|
|
174
115
|
cached with expiry tracking and refreshed transparently (plus one retry on
|
|
175
116
|
401); secrets are redacted from all errors and logs.
|
|
176
117
|
|
|
118
|
+
---
|
|
119
|
+
|
|
177
120
|
## Environment Variables
|
|
178
121
|
|
|
179
122
|
<!-- ENV-VARS-TABLE:START -->
|
|
@@ -210,7 +153,6 @@ cached with expiry tracking and refreshed transparently (plus one retry on
|
|
|
210
153
|
| `SALESFORCE_JWT_AUDIENCE` | — | |
|
|
211
154
|
| `SALESFORCE_ACCESS_TOKEN` | secret-injected | Static access token (testing / short-lived sessions) |
|
|
212
155
|
| `SALESFORCE_TOKEN_TTL_SECONDS` | secret-injected | Cached-token TTL when the token response has no expires_in |
|
|
213
|
-
| `SALESFORCE_ALLOW_DESTRUCTIVE` | `False` | Gate for record delete, collections delete, and bulk delete/hardDelete jobs |
|
|
214
156
|
| `SALESFORCE_MAX_QUERY_RECORDS` | `2000` | Per-call cap on auto-paginated SOQL results |
|
|
215
157
|
| `SALESFORCE_BULK_RESULTS_MAX_BYTES` | `5000000` | Per-call cap on Bulk API 2.0 result downloads (bytes) |
|
|
216
158
|
| `SALESFORCE_REPORT_MAX_ROWS` | `2000` | Synchronous report row note (Salesforce platform caps at 2000 detail rows) |
|
|
@@ -260,7 +202,6 @@ _38 package + 16 inherited variable(s). Auto-generated from `.env.example` + the
|
|
|
260
202
|
| `SALESFORCE_TOKEN_TTL_SECONDS` | `1800` | Cached-token TTL fallback |
|
|
261
203
|
| `SALESFORCE_TLS_PROFILE` | `system` | TLS verification |
|
|
262
204
|
| `SALESFORCE_TIMEOUT` | `30` | HTTP timeout (seconds) |
|
|
263
|
-
| `SALESFORCE_ALLOW_DESTRUCTIVE` | `False` | Gate for all delete paths |
|
|
264
205
|
| `SALESFORCE_MAX_QUERY_RECORDS` | `2000` | Per-call SOQL pagination cap |
|
|
265
206
|
| `SALESFORCE_BULK_RESULTS_MAX_BYTES` | `5000000` | Bulk result download cap |
|
|
266
207
|
| `SALESFORCE_REPORT_MAX_ROWS` | `2000` | Sync report detail-row note (platform cap) |
|
|
@@ -272,6 +213,8 @@ _38 package + 16 inherited variable(s). Auto-generated from `.env.example` + the
|
|
|
272
213
|
|
|
273
214
|
See `.env.example` for the full annotated list.
|
|
274
215
|
|
|
216
|
+
---
|
|
217
|
+
|
|
275
218
|
## Quick Start
|
|
276
219
|
|
|
277
220
|
```bash
|
|
@@ -288,10 +231,11 @@ rows = api.soql.query("SELECT Id, Name FROM Account", max_records=200)
|
|
|
288
231
|
api.records.upsert("Account", "External_Id__c", "X-1", {"Name": "Acme"})
|
|
289
232
|
```
|
|
290
233
|
|
|
291
|
-
Typed
|
|
292
|
-
`salesforce_agent.salesforce_input_models`; typed error envelopes in
|
|
234
|
+
Typed error envelopes live in
|
|
293
235
|
`salesforce_agent.salesforce_response_models`.
|
|
294
236
|
|
|
237
|
+
---
|
|
238
|
+
|
|
295
239
|
## Deployment
|
|
296
240
|
|
|
297
241
|
```bash
|
|
@@ -326,6 +270,8 @@ the detailed transport contract.
|
|
|
326
270
|
`MCP_ALLOWED_HOSTS` in `AgentConfig`.
|
|
327
271
|
<!-- END GENERATED: additional-deployment-options -->
|
|
328
272
|
|
|
273
|
+
---
|
|
274
|
+
|
|
329
275
|
## Development
|
|
330
276
|
|
|
331
277
|
```bash
|
|
@@ -334,10 +280,93 @@ pytest # mocked httpx suite — no live org required
|
|
|
334
280
|
pre-commit run --all-files # must be fully green before committing
|
|
335
281
|
```
|
|
336
282
|
|
|
283
|
+
---
|
|
284
|
+
|
|
337
285
|
## License
|
|
338
286
|
|
|
339
287
|
MIT — see [LICENSE](LICENSE).
|
|
340
288
|
|
|
289
|
+
---
|
|
290
|
+
|
|
291
|
+
## Installation
|
|
292
|
+
|
|
293
|
+
> **Install the connector-focused `[mcp]` extra.** Examples use `salesforce-agent[mcp]` to add
|
|
294
|
+
> FastMCP / FastAPI through `scion-sdk[mcp]`; the required Meristem core
|
|
295
|
+
> still carries `medulla[full]`. The `[agent]` extra also
|
|
296
|
+
> enables model orchestration.
|
|
297
|
+
|
|
298
|
+
Pick the extra that matches what the operator want to run:
|
|
299
|
+
|
|
300
|
+
| Extra | Installs | Use when |
|
|
301
|
+
|-------|----------|----------|
|
|
302
|
+
| `salesforce-agent` (core) | Owned thin httpx Salesforce client (no server tooling) | The operator only use the **Python `Api` client** |
|
|
303
|
+
| `salesforce-agent[mcp]` | Connector-focused MCP server (`scion-sdk[mcp]` — FastMCP/FastAPI + `medulla[full]`) | The operator run the **MCP server** (smallest server install / image) |
|
|
304
|
+
| `salesforce-agent[agent]` | Agent runtime (`scion-sdk[agent-runtime,logfire]` — model orchestration + `medulla[full]`) | The operator run the **integrated agent** |
|
|
305
|
+
| `salesforce-agent[jwt]` | + `cryptography` for the JWT bearer flow | The operator authenticate via OAuth2 JWT bearer |
|
|
306
|
+
| `salesforce-agent[all]` | Everything (`mcp` + `agent` + `jwt` + `logfire`) | Development / all surfaces |
|
|
307
|
+
|
|
308
|
+
```bash
|
|
309
|
+
pip install salesforce-agent # core client only
|
|
310
|
+
pip install "salesforce-agent[mcp]" # + FastMCP server
|
|
311
|
+
pip install "salesforce-agent[agent]" # + Pydantic AI A2A agent (medulla engine)
|
|
312
|
+
pip install "salesforce-agent[jwt]" # + cryptography for the JWT bearer flow
|
|
313
|
+
pip install "salesforce-agent[all]" # everything
|
|
314
|
+
```
|
|
315
|
+
|
|
316
|
+
### Container images (`:mcp` vs `:agent`)
|
|
317
|
+
|
|
318
|
+
One multi-stage `docker/Dockerfile` builds two right-sized images, selected by `--target`:
|
|
319
|
+
|
|
320
|
+
| Image tag | Build target | Contents | Entrypoint |
|
|
321
|
+
|-----------|--------------|----------|------------|
|
|
322
|
+
| `example/salesforce-agent:mcp` | `--target mcp` | `salesforce-agent[mcp]` — **connector-focused**, includes `medulla[full]`; no model-orchestration stack | `salesforce-mcp` |
|
|
323
|
+
| `example/salesforce-agent@sha256:<digest>` | `--target agent` (default) | `salesforce-agent[agent]` — **agent runtime**, model orchestration + `medulla[full]` | `salesforce-agent` |
|
|
324
|
+
|
|
325
|
+
```bash
|
|
326
|
+
docker build --target mcp -t example/salesforce-agent:mcp docker/ # connector-focused MCP server
|
|
327
|
+
docker build --target agent -t example/salesforce-agent:agent-local docker/ # agent runtime
|
|
328
|
+
```
|
|
329
|
+
|
|
330
|
+
`docker/mcp.compose.yml` runs the connector-focused `:mcp` server; `docker/agent.compose.yml` runs the
|
|
331
|
+
agent (`immutable agent digest`) with a co-located `:mcp` sidecar.
|
|
332
|
+
|
|
333
|
+
### Knowledge-graph database (`medulla`)
|
|
334
|
+
|
|
335
|
+
Both `[mcp]` and `[agent]` carry the **medulla** engine through the required
|
|
336
|
+
Meristem core dependency (`medulla[full]`). The `[mcp]` extra keeps
|
|
337
|
+
the server connector-focused; `[agent]` also enables model orchestration. Local
|
|
338
|
+
deployments can use the bundled engine. For production or shared state, run
|
|
339
|
+
**medulla as a dedicated database service** and configure the runtime to use it.
|
|
340
|
+
Deployment recipes (single-node + Raft HA), connection configuration, and architecture
|
|
341
|
+
diagrams are documented in the
|
|
342
|
+
[medulla deployment guide](https://knuckles-team.github.io/medulla/deployment/).
|
|
343
|
+
|
|
344
|
+
---
|
|
345
|
+
|
|
346
|
+
## Documentation
|
|
347
|
+
|
|
348
|
+
The complete documentation is published as the
|
|
349
|
+
[official documentation site](https://knuckles-team.github.io/salesforce-agent/) and is
|
|
350
|
+
the recommended reference for installation, deployment, and day-to-day operation.
|
|
351
|
+
|
|
352
|
+
---
|
|
353
|
+
|
|
354
|
+
## Repository Owners
|
|
355
|
+
|
|
356
|
+
<img width="100%" height="180em" src="https://github-readme-stats.vercel.app/api?username=example&show_icons=true&hide_border=true&&count_private=true&include_all_commits=true" />
|
|
357
|
+
|
|
358
|
+

|
|
359
|
+

|
|
360
|
+
|
|
361
|
+
---
|
|
362
|
+
|
|
363
|
+
## Contribute
|
|
364
|
+
|
|
365
|
+
Contributions are welcome! Please ensure code quality by running local checks before submitting pull requests:
|
|
366
|
+
- Format code using `ruff format .`
|
|
367
|
+
- Lint code using `ruff check .`
|
|
368
|
+
- Validate type-safety with `mypy .`
|
|
369
|
+
- Run test suites using `pytest`
|
|
341
370
|
|
|
342
371
|
<!-- BEGIN scion-sdk-deployment (generated; do not edit between markers) -->
|
|
343
372
|
|
|
@@ -5,26 +5,26 @@
|
|
|
5
5
|

|
|
6
6
|

|
|
7
7
|

|
|
8
|
+

|
|
9
|
+

|
|
8
10
|

|
|
11
|
+

|
|
9
12
|

|
|
13
|
+

|
|
14
|
+

|
|
15
|
+

|
|
16
|
+

|
|
17
|
+

|
|
18
|
+

|
|
19
|
+

|
|
10
20
|

|
|
21
|
+

|
|
11
22
|
|
|
12
|
-
> **Documentation** — Installation, deployment, usage across the API, CLI,
|
|
13
|
-
>
|
|
14
|
-
>
|
|
23
|
+
> **Documentation** — Installation, deployment, and usage across the API, CLI, MCP,
|
|
24
|
+
> and A2A agent interfaces are maintained in the
|
|
25
|
+
> [official documentation](https://knuckles-team.github.io/salesforce-agent/).
|
|
15
26
|
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
- [Overview](#overview)
|
|
19
|
-
- [Architecture](#architecture)
|
|
20
|
-
- [Installation](#installation)
|
|
21
|
-
- [MCP Tools](#mcp-tools)
|
|
22
|
-
- [Auth Flows](#auth-flows)
|
|
23
|
-
- [Environment Variables](#environment-variables)
|
|
24
|
-
- [Quick Start](#quick-start)
|
|
25
|
-
- [Deployment](#deployment)
|
|
26
|
-
- [Development](#development)
|
|
27
|
-
- [License](#license)
|
|
27
|
+
---
|
|
28
28
|
|
|
29
29
|
## Overview
|
|
30
30
|
|
|
@@ -36,6 +36,8 @@ gates designed for autonomous agents.
|
|
|
36
36
|
No `simple-salesforce`: every endpoint is a documented thin call with its
|
|
37
37
|
Salesforce API doc URL cited in the docstring.
|
|
38
38
|
|
|
39
|
+
---
|
|
40
|
+
|
|
39
41
|
## Architecture
|
|
40
42
|
|
|
41
43
|
```mermaid
|
|
@@ -47,90 +49,29 @@ graph TD
|
|
|
47
49
|
Client --> ExternalAPI([Salesforce REST API])
|
|
48
50
|
```
|
|
49
51
|
|
|
50
|
-
|
|
52
|
+
---
|
|
51
53
|
|
|
52
|
-
|
|
53
|
-
> FastMCP / FastAPI through `scion-sdk[mcp]`; the required Agent Utilities core
|
|
54
|
-
> still carries `epistemic-graph[full]`. The `[agent]` extra also
|
|
55
|
-
> enables model orchestration.
|
|
54
|
+
## MCP
|
|
56
55
|
|
|
57
|
-
|
|
56
|
+
### MCP Tools
|
|
58
57
|
|
|
59
|
-
|
|
60
|
-
|-------|----------|----------|
|
|
61
|
-
| `salesforce-agent` (core) | Owned thin httpx Salesforce client (no server tooling) | The operator only use the **Python `Api` client** |
|
|
62
|
-
| `salesforce-agent[mcp]` | Connector-focused MCP server (`scion-sdk[mcp]` — FastMCP/FastAPI + `epistemic-graph[full]`) | The operator run the **MCP server** (smallest server install / image) |
|
|
63
|
-
| `salesforce-agent[agent]` | Agent runtime (`scion-sdk[agent-runtime,logfire]` — model orchestration + `epistemic-graph[full]`) | The operator run the **integrated agent** |
|
|
64
|
-
| `salesforce-agent[jwt]` | + `cryptography` for the JWT bearer flow | The operator authenticate via OAuth2 JWT bearer |
|
|
65
|
-
| `salesforce-agent[all]` | Everything (`mcp` + `agent` + `jwt` + `logfire`) | Development / all surfaces |
|
|
58
|
+
One typed tool per Salesforce operation, plus the knowledge-graph ingest tool. Operation tools are named `salesforce_<resource>_<operation>` and take typed arguments; no tool takes an `action`.
|
|
66
59
|
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
60
|
+
| Resource | Tools |
|
|
61
|
+
|----------|-------|
|
|
62
|
+
| Query | `salesforce_soql_query`, `salesforce_soql_explain`, `salesforce_soql_search` |
|
|
63
|
+
| Records | `salesforce_records_get`, `_create`, `_update`, `_upsert`, `_delete`*, `_composite`, `_collections_create`, `_collections_update`, `_collections_delete`* |
|
|
64
|
+
| Describe | `salesforce_describe_global_describe`, `_sobject`, `_record_counts`, `_limits` |
|
|
65
|
+
| Bulk API 2.0 | `salesforce_bulk_create_ingest_job`, `_upload`, `_close`, `_abort`, `_status`, `_list_jobs`, `_delete_job`, `_results` |
|
|
66
|
+
| Admin | `salesforce_admin_user_info`, `_org_info`, `_list_reports`, `_run_report` |
|
|
67
|
+
| Graph | `salesforce_ingest_crm` |
|
|
74
68
|
|
|
75
|
-
|
|
69
|
+
`*` gated by the SDK confirmation (`confirm=true`).
|
|
76
70
|
|
|
77
|
-
One multi-stage `docker/Dockerfile` builds two right-sized images, selected by `--target`:
|
|
78
71
|
|
|
79
|
-
|
|
80
|
-
|-----------|--------------|----------|------------|
|
|
81
|
-
| `example/salesforce-agent:mcp` | `--target mcp` | `salesforce-agent[mcp]` — **connector-focused**, includes `epistemic-graph[full]`; no model-orchestration stack | `salesforce-mcp` |
|
|
82
|
-
| `example/salesforce-agent@sha256:<digest>` | `--target agent` (default) | `salesforce-agent[agent]` — **agent runtime**, model orchestration + `epistemic-graph[full]` | `salesforce-agent` |
|
|
72
|
+
`*` Destructive — refused unless the caller confirms (`confirm=true`).
|
|
83
73
|
|
|
84
|
-
|
|
85
|
-
docker build --target mcp -t example/salesforce-agent:mcp docker/ # connector-focused MCP server
|
|
86
|
-
docker build --target agent -t example/salesforce-agent:agent-local docker/ # agent runtime
|
|
87
|
-
```
|
|
88
|
-
|
|
89
|
-
`docker/mcp.compose.yml` runs the connector-focused `:mcp` server; `docker/agent.compose.yml` runs the
|
|
90
|
-
agent (`immutable agent digest`) with a co-located `:mcp` sidecar.
|
|
91
|
-
|
|
92
|
-
### Knowledge-graph database (`epistemic-graph`)
|
|
93
|
-
|
|
94
|
-
Both `[mcp]` and `[agent]` carry the **epistemic-graph** engine through the required
|
|
95
|
-
Agent Utilities core dependency (`epistemic-graph[full]`). The `[mcp]` extra keeps
|
|
96
|
-
the server connector-focused; `[agent]` also enables model orchestration. Local
|
|
97
|
-
deployments can use the bundled engine. For production or shared state, run
|
|
98
|
-
**epistemic-graph as a dedicated database service** and configure the runtime to use it.
|
|
99
|
-
Deployment recipes (single-node + Raft HA), connection configuration, and architecture
|
|
100
|
-
diagrams are documented in the
|
|
101
|
-
[epistemic-graph deployment guide](https://knuckles-team.github.io/epistemic-graph/deployment/).
|
|
102
|
-
|
|
103
|
-
## MCP Tools
|
|
104
|
-
|
|
105
|
-
Consolidated, action-routed tools. Each takes `action` and `params_json`. The table below is auto-generated from the MCP server — do not edit by hand.
|
|
106
|
-
|
|
107
|
-
<!-- MCP-TOOLS-TABLE:START -->
|
|
108
|
-
|
|
109
|
-
#### Condensed action-routed tools (default — `MCP_TOOL_MODE=condensed`)
|
|
110
|
-
|
|
111
|
-
| MCP Tool | Toggle Env Var | Description |
|
|
112
|
-
|----------|----------------|-------------|
|
|
113
|
-
| `salesforce_admin` | `ADMINTOOL` | Inspect the current user/org and run analytics reports. |
|
|
114
|
-
| `salesforce_bulk` | `BULKTOOL` | Drive Bulk API 2.0 ingest jobs: create, upload, close, results. |
|
|
115
|
-
| `salesforce_describe` | `DESCRIBETOOL` | Discover org schema, record counts, and limits/API usage. |
|
|
116
|
-
| `salesforce_records` | `RECORDSTOOL` | CRUD on sObject records, composite batches, and collections. |
|
|
117
|
-
| `salesforce_soql` | `SOQLTOOL` | Run SOQL queries (paginated, capped) and SOSL searches. |
|
|
118
|
-
|
|
119
|
-
#### Verbose 1:1 API-mapped tools (`MCP_TOOL_MODE=verbose` or `both`)
|
|
120
|
-
|
|
121
|
-
<details>
|
|
122
|
-
<summary>1 per-operation tools — one per public API method (click to expand)</summary>
|
|
123
|
-
|
|
124
|
-
| MCP Tool | Toggle Env Var | Description |
|
|
125
|
-
|----------|----------------|-------------|
|
|
126
|
-
| `salesforce_close` | `APITOOL` | Invoke the close operation. |
|
|
127
|
-
|
|
128
|
-
</details>
|
|
129
|
-
|
|
130
|
-
_5 action-routed tool(s) (default) · 1 verbose 1:1 tool(s). Each is enabled unless its `<DOMAIN>TOOL` toggle is set false; `MCP_TOOL_MODE` selects the surface (`condensed` default · `verbose` 1:1 · `both`). Auto-generated — do not edit._
|
|
131
|
-
<!-- MCP-TOOLS-TABLE:END -->
|
|
132
|
-
|
|
133
|
-
`*` Destructive — blocked unless `SALESFORCE_ALLOW_DESTRUCTIVE=true`.
|
|
74
|
+
---
|
|
134
75
|
|
|
135
76
|
## Auth Flows
|
|
136
77
|
|
|
@@ -145,6 +86,8 @@ Sandbox orgs: `SALESFORCE_SANDBOX=true` (`test.salesforce.com`). Tokens are
|
|
|
145
86
|
cached with expiry tracking and refreshed transparently (plus one retry on
|
|
146
87
|
401); secrets are redacted from all errors and logs.
|
|
147
88
|
|
|
89
|
+
---
|
|
90
|
+
|
|
148
91
|
## Environment Variables
|
|
149
92
|
|
|
150
93
|
<!-- ENV-VARS-TABLE:START -->
|
|
@@ -181,7 +124,6 @@ cached with expiry tracking and refreshed transparently (plus one retry on
|
|
|
181
124
|
| `SALESFORCE_JWT_AUDIENCE` | — | |
|
|
182
125
|
| `SALESFORCE_ACCESS_TOKEN` | secret-injected | Static access token (testing / short-lived sessions) |
|
|
183
126
|
| `SALESFORCE_TOKEN_TTL_SECONDS` | secret-injected | Cached-token TTL when the token response has no expires_in |
|
|
184
|
-
| `SALESFORCE_ALLOW_DESTRUCTIVE` | `False` | Gate for record delete, collections delete, and bulk delete/hardDelete jobs |
|
|
185
127
|
| `SALESFORCE_MAX_QUERY_RECORDS` | `2000` | Per-call cap on auto-paginated SOQL results |
|
|
186
128
|
| `SALESFORCE_BULK_RESULTS_MAX_BYTES` | `5000000` | Per-call cap on Bulk API 2.0 result downloads (bytes) |
|
|
187
129
|
| `SALESFORCE_REPORT_MAX_ROWS` | `2000` | Synchronous report row note (Salesforce platform caps at 2000 detail rows) |
|
|
@@ -231,7 +173,6 @@ _38 package + 16 inherited variable(s). Auto-generated from `.env.example` + the
|
|
|
231
173
|
| `SALESFORCE_TOKEN_TTL_SECONDS` | `1800` | Cached-token TTL fallback |
|
|
232
174
|
| `SALESFORCE_TLS_PROFILE` | `system` | TLS verification |
|
|
233
175
|
| `SALESFORCE_TIMEOUT` | `30` | HTTP timeout (seconds) |
|
|
234
|
-
| `SALESFORCE_ALLOW_DESTRUCTIVE` | `False` | Gate for all delete paths |
|
|
235
176
|
| `SALESFORCE_MAX_QUERY_RECORDS` | `2000` | Per-call SOQL pagination cap |
|
|
236
177
|
| `SALESFORCE_BULK_RESULTS_MAX_BYTES` | `5000000` | Bulk result download cap |
|
|
237
178
|
| `SALESFORCE_REPORT_MAX_ROWS` | `2000` | Sync report detail-row note (platform cap) |
|
|
@@ -243,6 +184,8 @@ _38 package + 16 inherited variable(s). Auto-generated from `.env.example` + the
|
|
|
243
184
|
|
|
244
185
|
See `.env.example` for the full annotated list.
|
|
245
186
|
|
|
187
|
+
---
|
|
188
|
+
|
|
246
189
|
## Quick Start
|
|
247
190
|
|
|
248
191
|
```bash
|
|
@@ -259,10 +202,11 @@ rows = api.soql.query("SELECT Id, Name FROM Account", max_records=200)
|
|
|
259
202
|
api.records.upsert("Account", "External_Id__c", "X-1", {"Name": "Acme"})
|
|
260
203
|
```
|
|
261
204
|
|
|
262
|
-
Typed
|
|
263
|
-
`salesforce_agent.salesforce_input_models`; typed error envelopes in
|
|
205
|
+
Typed error envelopes live in
|
|
264
206
|
`salesforce_agent.salesforce_response_models`.
|
|
265
207
|
|
|
208
|
+
---
|
|
209
|
+
|
|
266
210
|
## Deployment
|
|
267
211
|
|
|
268
212
|
```bash
|
|
@@ -297,6 +241,8 @@ the detailed transport contract.
|
|
|
297
241
|
`MCP_ALLOWED_HOSTS` in `AgentConfig`.
|
|
298
242
|
<!-- END GENERATED: additional-deployment-options -->
|
|
299
243
|
|
|
244
|
+
---
|
|
245
|
+
|
|
300
246
|
## Development
|
|
301
247
|
|
|
302
248
|
```bash
|
|
@@ -305,10 +251,93 @@ pytest # mocked httpx suite — no live org required
|
|
|
305
251
|
pre-commit run --all-files # must be fully green before committing
|
|
306
252
|
```
|
|
307
253
|
|
|
254
|
+
---
|
|
255
|
+
|
|
308
256
|
## License
|
|
309
257
|
|
|
310
258
|
MIT — see [LICENSE](LICENSE).
|
|
311
259
|
|
|
260
|
+
---
|
|
261
|
+
|
|
262
|
+
## Installation
|
|
263
|
+
|
|
264
|
+
> **Install the connector-focused `[mcp]` extra.** Examples use `salesforce-agent[mcp]` to add
|
|
265
|
+
> FastMCP / FastAPI through `scion-sdk[mcp]`; the required Meristem core
|
|
266
|
+
> still carries `medulla[full]`. The `[agent]` extra also
|
|
267
|
+
> enables model orchestration.
|
|
268
|
+
|
|
269
|
+
Pick the extra that matches what the operator want to run:
|
|
270
|
+
|
|
271
|
+
| Extra | Installs | Use when |
|
|
272
|
+
|-------|----------|----------|
|
|
273
|
+
| `salesforce-agent` (core) | Owned thin httpx Salesforce client (no server tooling) | The operator only use the **Python `Api` client** |
|
|
274
|
+
| `salesforce-agent[mcp]` | Connector-focused MCP server (`scion-sdk[mcp]` — FastMCP/FastAPI + `medulla[full]`) | The operator run the **MCP server** (smallest server install / image) |
|
|
275
|
+
| `salesforce-agent[agent]` | Agent runtime (`scion-sdk[agent-runtime,logfire]` — model orchestration + `medulla[full]`) | The operator run the **integrated agent** |
|
|
276
|
+
| `salesforce-agent[jwt]` | + `cryptography` for the JWT bearer flow | The operator authenticate via OAuth2 JWT bearer |
|
|
277
|
+
| `salesforce-agent[all]` | Everything (`mcp` + `agent` + `jwt` + `logfire`) | Development / all surfaces |
|
|
278
|
+
|
|
279
|
+
```bash
|
|
280
|
+
pip install salesforce-agent # core client only
|
|
281
|
+
pip install "salesforce-agent[mcp]" # + FastMCP server
|
|
282
|
+
pip install "salesforce-agent[agent]" # + Pydantic AI A2A agent (medulla engine)
|
|
283
|
+
pip install "salesforce-agent[jwt]" # + cryptography for the JWT bearer flow
|
|
284
|
+
pip install "salesforce-agent[all]" # everything
|
|
285
|
+
```
|
|
286
|
+
|
|
287
|
+
### Container images (`:mcp` vs `:agent`)
|
|
288
|
+
|
|
289
|
+
One multi-stage `docker/Dockerfile` builds two right-sized images, selected by `--target`:
|
|
290
|
+
|
|
291
|
+
| Image tag | Build target | Contents | Entrypoint |
|
|
292
|
+
|-----------|--------------|----------|------------|
|
|
293
|
+
| `example/salesforce-agent:mcp` | `--target mcp` | `salesforce-agent[mcp]` — **connector-focused**, includes `medulla[full]`; no model-orchestration stack | `salesforce-mcp` |
|
|
294
|
+
| `example/salesforce-agent@sha256:<digest>` | `--target agent` (default) | `salesforce-agent[agent]` — **agent runtime**, model orchestration + `medulla[full]` | `salesforce-agent` |
|
|
295
|
+
|
|
296
|
+
```bash
|
|
297
|
+
docker build --target mcp -t example/salesforce-agent:mcp docker/ # connector-focused MCP server
|
|
298
|
+
docker build --target agent -t example/salesforce-agent:agent-local docker/ # agent runtime
|
|
299
|
+
```
|
|
300
|
+
|
|
301
|
+
`docker/mcp.compose.yml` runs the connector-focused `:mcp` server; `docker/agent.compose.yml` runs the
|
|
302
|
+
agent (`immutable agent digest`) with a co-located `:mcp` sidecar.
|
|
303
|
+
|
|
304
|
+
### Knowledge-graph database (`medulla`)
|
|
305
|
+
|
|
306
|
+
Both `[mcp]` and `[agent]` carry the **medulla** engine through the required
|
|
307
|
+
Meristem core dependency (`medulla[full]`). The `[mcp]` extra keeps
|
|
308
|
+
the server connector-focused; `[agent]` also enables model orchestration. Local
|
|
309
|
+
deployments can use the bundled engine. For production or shared state, run
|
|
310
|
+
**medulla as a dedicated database service** and configure the runtime to use it.
|
|
311
|
+
Deployment recipes (single-node + Raft HA), connection configuration, and architecture
|
|
312
|
+
diagrams are documented in the
|
|
313
|
+
[medulla deployment guide](https://knuckles-team.github.io/medulla/deployment/).
|
|
314
|
+
|
|
315
|
+
---
|
|
316
|
+
|
|
317
|
+
## Documentation
|
|
318
|
+
|
|
319
|
+
The complete documentation is published as the
|
|
320
|
+
[official documentation site](https://knuckles-team.github.io/salesforce-agent/) and is
|
|
321
|
+
the recommended reference for installation, deployment, and day-to-day operation.
|
|
322
|
+
|
|
323
|
+
---
|
|
324
|
+
|
|
325
|
+
## Repository Owners
|
|
326
|
+
|
|
327
|
+
<img width="100%" height="180em" src="https://github-readme-stats.vercel.app/api?username=example&show_icons=true&hide_border=true&&count_private=true&include_all_commits=true" />
|
|
328
|
+
|
|
329
|
+

|
|
330
|
+

|
|
331
|
+
|
|
332
|
+
---
|
|
333
|
+
|
|
334
|
+
## Contribute
|
|
335
|
+
|
|
336
|
+
Contributions are welcome! Please ensure code quality by running local checks before submitting pull requests:
|
|
337
|
+
- Format code using `ruff format .`
|
|
338
|
+
- Lint code using `ruff check .`
|
|
339
|
+
- Validate type-safety with `mypy .`
|
|
340
|
+
- Run test suites using `pytest`
|
|
312
341
|
|
|
313
342
|
<!-- BEGIN scion-sdk-deployment (generated; do not edit between markers) -->
|
|
314
343
|
|
|
@@ -4,12 +4,12 @@ build-backend = "setuptools.build_meta"
|
|
|
4
4
|
|
|
5
5
|
[project]
|
|
6
6
|
name = "salesforce-agent"
|
|
7
|
-
version = "2.
|
|
7
|
+
version = "2.4.2"
|
|
8
8
|
description = "Salesforce REST/SOQL/Bulk API 2.0 connector + MCP Server + A2A Server for Agentic AI!"
|
|
9
9
|
readme = "README.md"
|
|
10
10
|
classifiers = [ "Development Status :: 4 - Beta", "License :: OSI Approved :: MIT License", "Environment :: Console", "Operating System :: POSIX :: Linux", "Programming Language :: Python :: 3",]
|
|
11
11
|
requires-python = ">=3.12, <3.15"
|
|
12
|
-
dependencies = [ "scion-sdk[mcp]>=0.
|
|
12
|
+
dependencies = [ "scion-sdk[mcp]>=0.14.1,<0.15", "httpx>=0.28.1",]
|
|
13
13
|
[[project.authors]]
|
|
14
14
|
name = "Repository Maintainers"
|
|
15
15
|
email = "maintainers@knuckles.team"
|
|
@@ -19,16 +19,12 @@ text = "MIT"
|
|
|
19
19
|
|
|
20
20
|
[project.optional-dependencies]
|
|
21
21
|
jwt = [ "cryptography>=50.0.2",]
|
|
22
|
-
all = [ "scion-sdk[mcp]>=0.
|
|
22
|
+
all = [ "scion-sdk[mcp]>=0.14.1,<0.15", "cryptography>=50.0.2",]
|
|
23
23
|
test = [ "pytest-xdist>=3.8.0", "pytest>=9.1.1", "pytest-asyncio>=1.4.0", "pytest-cov>=7.1.0", "cryptography>=50.0.2",]
|
|
24
24
|
|
|
25
25
|
[project.scripts]
|
|
26
26
|
salesforce-mcp = "scion_sdk.cli:serve"
|
|
27
27
|
|
|
28
|
-
[project.entry-points."scion_sdk.prompt_providers"]
|
|
29
|
-
salesforce-agent = "salesforce_agent.prompts"
|
|
30
|
-
|
|
31
|
-
# The one declared connector identity: the fleet name (SCION-CONNECTOR-CONTROL-R071).
|
|
32
28
|
[project.entry-points."scion_sdk.connector"]
|
|
33
29
|
salesforce-mcp = "salesforce_agent:connector"
|
|
34
30
|
|