@topolo/mcp 0.2.1 → 0.2.3

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.
Files changed (3) hide show
  1. package/README.md +21 -15
  2. package/dist/index.js +1336 -5
  3. package/package.json +1 -1
package/README.md CHANGED
@@ -27,7 +27,8 @@ Either:
27
27
  - **Long-lived**: mint an API key at the Topolo Developers console
28
28
  (`TOPOLO_API_KEY=topo_live_...`). Preferred for persistent agent installs.
29
29
  - **Short-lived**: `topolo auth login` with the CLI, then copy the access token
30
- from `~/.config/topolo/config.json`. Useful for dev and testing.
30
+ from `~/.config/topolo/config.json`. Useful for dev and testing. MCP does
31
+ not read the CLI config directly; pass the token in `TOPOLO_ACCESS_TOKEN`.
31
32
 
32
33
  ## Register with an MCP client
33
34
 
@@ -94,17 +95,24 @@ Startup is synchronous and fast (< 500 ms typical). If the credential is
94
95
  rejected, the process logs the error to stderr and exits non-zero — host
95
96
  clients surface that as a failed server launch.
96
97
 
97
- ## Tools (Phase 1)
98
-
99
- | Tool | Required scopes | Destructive |
100
- | ---------------------------- | --------------------- | ----------- |
101
- | `topolo_whoami` | (none) | no |
102
- | `topolo_crm_list_contacts` | `crm.contacts:read` | no |
103
- | `topolo_crm_get_contact` | `crm.contacts:read` | no |
104
-
105
- Phase 1 is intentionally read-only. Write tools will be added per-domain in
106
- later phases alongside typed SDK modules, each annotated with
107
- `destructiveHint: true` so host clients can surface confirmation UI.
98
+ ## Tools
99
+
100
+ | Tool | Required scopes | Destructive hint |
101
+ | ---------------------------- | --------------------- | ---------------- |
102
+ | `topolo_whoami` | (none) | no |
103
+ | `topolo_list_services` | (none) | no |
104
+ | `topolo_list_applications` | (none) | no |
105
+ | `topolo_get_application` | (none) | no |
106
+ | `topolo_list_application_requirements` | (none) | no |
107
+ | `topolo_audit_applications` | (none) | no |
108
+ | `topolo_crm_list_contacts` | `crm.contacts:read` | no |
109
+ | `topolo_crm_get_contact` | `crm.contacts:read` | no |
110
+ | `topolo_api_call` | (service-enforced) | yes |
111
+
112
+ `topolo_api_call` is the escape hatch for endpoints without typed MCP tools
113
+ yet. GET requests work without confirmation; mutating HTTP methods must pass
114
+ `confirm: true` or the SDK rejects the call. Backing services still enforce
115
+ permissions for every request.
108
116
 
109
117
  ## Safety rails
110
118
 
@@ -159,8 +167,6 @@ build, verify the tag matches `package.json`, and publish to npm via the
159
167
 
160
168
  ## Phase 2 (planned)
161
169
 
162
- - Accept OAuth 2.1 access tokens minted via authorization-code + device grants
163
- in TopoloAuth.
164
- - Dynamic tool registration as more `@topolo/sdk` modules ship.
170
+ - More typed tools as `@topolo/sdk` modules ship.
165
171
  - HTTP transport in addition to stdio, for hosted (non-subprocess) deployments.
166
172
  - Optional `--provenance` on npm publish once the repo is public.