@ory/amp 1.5.3 → 1.6.0
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.
- package/README.md +3 -1
- package/dist/permission.js +3 -0
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -107,6 +107,8 @@ Amp gives the gate 10 seconds to answer and treats a slower gate as a reject, so
|
|
|
107
107
|
|
|
108
108
|
The Ory skills land under `<project>/.agents/skills/`. `uninstall` removes the gate, the plugin, and the skills.
|
|
109
109
|
|
|
110
|
+
**MCP servers.** Amp documents MCP tool names as `mcp__<server>__<tool>` ([Plugin API](https://ampcode.com/docs/plugin-api)). The plugin's `tool.call` handler checks a call with that name as `McpServer:<server>` and `McpTool:<server>:<tool>`, and the gate applies the same check when Amp's (undocumented) delegate payload carries that name; Agent Security resolves the reported server name to a cataloged server, and other tools keep the native check. By default, though, Amp does not send MCP tools to the model one by one: agents reach MCP servers through `code_exec` (with `tool_search`), and those calls arrive as a single `code_exec` tool call that names no server, so they are checked as the native `code_exec` tool. Only MCP tools an agent exposes directly carry the `mcp__` name. No fingerprints are sent, because Amp's payload does not say how a server is launched.
|
|
111
|
+
|
|
110
112
|
</details>
|
|
111
113
|
|
|
112
114
|
## Connect to Ory Agent Security
|
|
@@ -129,7 +131,7 @@ npx -y -p @ory/amp ory-amp configure \
|
|
|
129
131
|
|
|
130
132
|
**Ory Network or OEL.** Either works. For an Ory Network project the URL is `https://<slug>.projects.oryapis.com`; for a self-hosted **Ory Enterprise License** deployment, point `--project-url` at that deployment's base URL and use the sign-in client id from its Agent Security configuration. Everything downstream — sign-in, checks, delegation — is identical.
|
|
131
133
|
|
|
132
|
-
**There is nothing else for you to create.** The sign-in client, permission model, native-tool blocks, MCP
|
|
134
|
+
**There is nothing else for you to create.** The sign-in client, permission model, native-tool blocks, MCP server access, and observe/enforce posture are provisioned in the Console by someone with project access. At session start the plugin loads or enrolls Amp's Talos runtime credential in the OS credential store; tool paths only read it. Installing needs no workspace privilege.
|
|
133
135
|
|
|
134
136
|
Sign-in runs at the start of every session and never blocks — a declined, skipped, or timed-out login simply leaves that session without a user identity.
|
|
135
137
|
|
package/dist/permission.js
CHANGED
|
@@ -113,6 +113,9 @@ async function decideToolPermission(input, client) {
|
|
|
113
113
|
toolArgs: input.input ?? input.params ?? input.arguments ?? input.args,
|
|
114
114
|
subjectFallback: sessionId ? `session:${sessionId}` : undefined,
|
|
115
115
|
canBlock: true,
|
|
116
|
+
// Amp names MCP tools `mcp__<server>__<tool>` (ampcode.com/docs/plugin-api).
|
|
117
|
+
// MCP calls an agent makes inside `code_exec` arrive as `code_exec`.
|
|
118
|
+
mcpTool: (0, argus_1.parseMcpToolName)(toolName) ?? undefined,
|
|
116
119
|
}), timeoutMs);
|
|
117
120
|
if (raced === CHECK_TIMED_OUT) {
|
|
118
121
|
process.stderr.write(`[ory-agent] permission check for "${toolName}" timed out after ${timeoutMs}ms; allowing (fail-open)\n`);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ory/amp",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.6.0",
|
|
4
4
|
"description": "Ory plugin for Amp (Sourcegraph's coding agent): a permission delegate that authorizes every tool call plus an in-process plugin for session auth and activity auditing",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"homepage": "https://ory.com",
|
|
@@ -70,10 +70,10 @@
|
|
|
70
70
|
],
|
|
71
71
|
"dependencies": {
|
|
72
72
|
"reova": "^0.7.0",
|
|
73
|
-
"@ory/argus": "1.
|
|
73
|
+
"@ory/argus": "1.6.0"
|
|
74
74
|
},
|
|
75
75
|
"devDependencies": {
|
|
76
|
-
"typescript": "^
|
|
76
|
+
"typescript": "^7.0.2"
|
|
77
77
|
},
|
|
78
78
|
"engines": {
|
|
79
79
|
"node": ">=22"
|