Skip to content

Commit ecfdb1c

Browse files
committed
chore(ory-claude): release v0.3.0
1 parent c738f11 commit ecfdb1c

11 files changed

Lines changed: 1524 additions & 0 deletions

File tree

.claude-plugin/marketplace.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,12 @@
1515
"source": "url",
1616
"url": "https://github.com/ory/lumen.git"
1717
}
18+
},
19+
{
20+
"name": "ory-agent-plugin",
21+
"source": "./plugins/ory-agent-plugin",
22+
"category": "development",
23+
"description": "Ory plugin for Claude Code: scaffolding skills, a local Ory instance, and authentication, authorization, and audit for every tool call"
1824
}
1925
]
2026
}
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
{
2+
"name": "ory-agent-plugin",
3+
"version": "0.3.0",
4+
"description": "Ory plugin for Claude Code: scaffolding skills, a local Ory instance, and authentication, authorization, and audit for every tool call",
5+
"author": {
6+
"name": "Ory",
7+
"url": "https://ory.com"
8+
},
9+
"homepage": "https://www.npmjs.com/package/@ory/claude-code"
10+
}

plugins/ory-agent-plugin/.mcp.json

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
{
2+
"description": "Ory Claude Code MCP Server",
3+
"mcpServers": {
4+
"ory-claude-mcp": {
5+
"command": "npx",
6+
"args": [
7+
"-y",
8+
"@ory/mcp-server@0.3.0"
9+
]
10+
}
11+
}
12+
}
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
# Stop Local Ory Environment
2+
3+
Stop the local Ory development environment. This gracefully shuts down
4+
all Docker containers (Kratos, Keto, Hydra, Nginx gateway) while
5+
preserving data volumes so you can restart later without losing state.
6+
7+
Run:
8+
9+
```bash
10+
npx -y -p @ory/claude-code ory-claude local down
11+
```
12+
13+
To restart later, use `/ory:local-up`.
14+
15+
To stop **and** remove all data (full reset), run:
16+
17+
```bash
18+
npx -y -p @ory/claude-code ory-claude local reset
19+
```
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
# Start Local Ory Environment
2+
3+
Start the local Ory development environment using Docker Compose.
4+
This spins up Kratos (identity), Keto (permissions), Hydra (OAuth2),
5+
and an Nginx gateway on port 4000.
6+
7+
Run:
8+
9+
```bash
10+
npx -y -p @ory/claude-code ory-claude local up
11+
```
12+
13+
This will:
14+
15+
1. Start all Ory services in Docker containers
16+
2. Wait for the gateway to become healthy
17+
3. Seed test data (identity, session, and permission tuples)
18+
4. Print environment variables to connect
19+
20+
After it completes, set the printed environment variables in your shell:
21+
22+
```bash
23+
eval "$(npx -y -p @ory/claude-code ory-claude local env)"
24+
```
25+
26+
If services are already running, stop them first with `/ory:local-down`
27+
or use `npx -y -p @ory/claude-code ory-claude local status` to check the current state.
Lines changed: 104 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,104 @@
1+
{
2+
"description": "Ory Claude Code Hooks",
3+
"hooks": {
4+
"SessionStart": [
5+
{
6+
"matcher": "",
7+
"hooks": [
8+
{
9+
"type": "command",
10+
"command": "npx -y -p @ory/claude-code@0.3.0 ory-claude-hook"
11+
}
12+
]
13+
}
14+
],
15+
"SessionEnd": [
16+
{
17+
"matcher": "",
18+
"hooks": [
19+
{
20+
"type": "command",
21+
"command": "npx -y -p @ory/claude-code@0.3.0 ory-claude-hook"
22+
}
23+
]
24+
}
25+
],
26+
"UserPromptSubmit": [
27+
{
28+
"matcher": "",
29+
"hooks": [
30+
{
31+
"type": "command",
32+
"command": "npx -y -p @ory/claude-code@0.3.0 ory-claude-hook"
33+
}
34+
]
35+
}
36+
],
37+
"PreToolUse": [
38+
{
39+
"matcher": "",
40+
"hooks": [
41+
{
42+
"type": "command",
43+
"command": "npx -y -p @ory/claude-code@0.3.0 ory-claude-hook"
44+
}
45+
]
46+
}
47+
],
48+
"PostToolUse": [
49+
{
50+
"matcher": "",
51+
"hooks": [
52+
{
53+
"type": "command",
54+
"command": "npx -y -p @ory/claude-code@0.3.0 ory-claude-hook"
55+
}
56+
]
57+
}
58+
],
59+
"PostToolUseFailure": [
60+
{
61+
"matcher": "",
62+
"hooks": [
63+
{
64+
"type": "command",
65+
"command": "npx -y -p @ory/claude-code@0.3.0 ory-claude-hook"
66+
}
67+
]
68+
}
69+
],
70+
"SubagentStart": [
71+
{
72+
"matcher": "",
73+
"hooks": [
74+
{
75+
"type": "command",
76+
"command": "npx -y -p @ory/claude-code@0.3.0 ory-claude-hook"
77+
}
78+
]
79+
}
80+
],
81+
"SubagentStop": [
82+
{
83+
"matcher": "",
84+
"hooks": [
85+
{
86+
"type": "command",
87+
"command": "npx -y -p @ory/claude-code@0.3.0 ory-claude-hook"
88+
}
89+
]
90+
}
91+
],
92+
"PermissionRequest": [
93+
{
94+
"matcher": "",
95+
"hooks": [
96+
{
97+
"type": "command",
98+
"command": "npx -y -p @ory/claude-code@0.3.0 ory-claude-hook"
99+
}
100+
]
101+
}
102+
]
103+
}
104+
}

0 commit comments

Comments
 (0)