Skip to content

Commit 3b3c61a

Browse files
chore(ci): add publish workflows for agent-toolkit and mcp; update ts-sdk usage (#1)
* chore: publish toolkit, mcp packages and update ts-sdk usage * ci: separate publish workflows for agent-toolkit and mcp * chore: set @trysiren/agent-toolkit version to 0.1.0 and update references
1 parent 821ff39 commit 3b3c61a

32 files changed

+98
-50
lines changed
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
name: Publish Agent Toolkit
2+
3+
on:
4+
workflow_dispatch:
5+
6+
jobs:
7+
publish:
8+
runs-on: ubuntu-latest
9+
steps:
10+
- uses: actions/checkout@v4
11+
12+
- uses: actions/setup-node@v4
13+
with:
14+
node-version: 20
15+
registry-url: https://registry.npmjs.org/
16+
cache: npm
17+
18+
- name: Install workspace deps
19+
run: npm ci --workspaces
20+
21+
- name: Publish @trysiren/agent-toolkit
22+
run: npm publish --workspace ./typescript --access public
23+
env:
24+
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

.github/workflows/publish-mcp.yml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
name: Publish MCP
2+
3+
on:
4+
workflow_dispatch:
5+
6+
jobs:
7+
publish:
8+
runs-on: ubuntu-latest
9+
steps:
10+
- uses: actions/checkout@v4
11+
12+
- uses: actions/setup-node@v4
13+
with:
14+
node-version: 20
15+
registry-url: https://registry.npmjs.org/
16+
cache: npm
17+
18+
- name: Install workspace deps
19+
run: npm ci --workspaces
20+
21+
- name: Publish @trysiren/mcp
22+
run: npm publish --workspace ./mcp-server --access public
23+
env:
24+
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

mcp-server/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,10 @@ To run the Siren MCP server using npx, use the following command:
88

99
```bash
1010
# To set up all available tools
11-
npx -y @sirenapp/mcp --tools=all --api-key=YOUR_SIREN_API_KEY
11+
npx -y @trysiren/mcp --tools=all --api-key=YOUR_SIREN_API_KEY
1212

1313
# To set up specific tools
14-
npx -y @sirenapp/mcp --tools=messaging.send,templates.list,workflows.trigger --api-key=YOUR_SIREN_API_KEY
14+
npx -y @trysiren/mcp --tools=messaging.send,templates.list,workflows.trigger --api-key=YOUR_SIREN_API_KEY
1515
```
1616

1717
Make sure to replace `YOUR_SIREN_API_KEY` with your actual Siren API key. Alternatively, you could set the `SIREN_API_KEY` in your environment variables.

mcp-server/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"name": "@siren/mcp",
2+
"name": "@trysiren/mcp",
33
"version": "0.1.0",
44
"homepage": "https://github.com/KeyValueSoftwareSystems/siren-agent-toolkit/tree/main/mcp-server",
55
"description": "A command line tool for setting up Siren MCP server",
@@ -24,7 +24,7 @@
2424
},
2525
"dependencies": {
2626
"@modelcontextprotocol/sdk": "^1.4.1",
27-
"@sirenapp/agent-toolkit": "file:../typescript",
27+
"@trysiren/agent-toolkit": "^0.1.0",
2828
"colors": "^1.4.0"
2929
},
3030
"keywords": [

mcp-server/src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#!/usr/bin/env node
22

3-
import {SirenAgentToolkit} from '@sirenapp/agent-toolkit/mcp-server';
3+
import {SirenAgentToolkit} from '@trysiren/agent-toolkit/mcp-server';
44
import {StdioServerTransport} from '@modelcontextprotocol/sdk/server/stdio.js';
55

66
type ToolkitConfig = {

typescript/PUBLISHING.md

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Publishing Guide for @sirenapp/agent-toolkit
1+
# Publishing Guide for @trysiren/agent-toolkit
22

33
This guide covers how to publish the Siren Agent Toolkit TypeScript package to npm.
44

@@ -7,7 +7,7 @@ This guide covers how to publish the Siren Agent Toolkit TypeScript package to n
77
Before publishing, ensure you have:
88

99
1. **npm Account**: Create an account at [npmjs.com](https://www.npmjs.com)
10-
2. **Organization Access**: Must be added to the `@sirenapp` organization on npm
10+
2. **Organization Access**: Must be added to the `@trysiren` organization on npm
1111
3. **Authentication**: Configured npm authentication locally
1212
4. **Repository Access**: Push access to the GitHub repository
1313

@@ -24,10 +24,10 @@ Enter your npm credentials when prompted.
2424
### 2. Verify Organization Access
2525

2626
```bash
27-
npm access list packages @sirenapp
27+
npm access list packages @trysiren
2828
```
2929

30-
You should see the packages you have access to in the @sirenapp organization.
30+
You should see the packages you have access to in the @trysiren organization.
3131

3232
### 3. Configure npm Token (for CI/CD)
3333

@@ -88,10 +88,10 @@ The `prepublishOnly` script will automatically run:
8888

8989
```bash
9090
# Check if package is available
91-
npm view @sirenapp/agent-toolkit
91+
npm view @trysiren/agent-toolkit
9292

9393
# Test installation
94-
npm install @sirenapp/agent-toolkit
94+
npm install @trysiren/agent-toolkit
9595
```
9696

9797
## 🤖 Automated Publishing via GitHub Actions
@@ -180,8 +180,8 @@ npm version prerelease --preid=beta
180180
npm publish --tag beta
181181

182182
# Install pre-release
183-
npm install @sirenapp/agent-toolkit@alpha
184-
npm install @sirenapp/agent-toolkit@beta
183+
npm install @trysiren/agent-toolkit@alpha
184+
npm install @trysiren/agent-toolkit@beta
185185
```
186186

187187
## 🐛 Troubleshooting
@@ -190,13 +190,13 @@ npm install @sirenapp/agent-toolkit@beta
190190

191191
**1. Permission Denied**
192192
```
193-
npm ERR! 403 Forbidden - PUT https://registry.npmjs.org/@sirenapp%2fagent-toolkit
193+
npm ERR! 403 Forbidden - PUT https://registry.npmjs.org/@trysiren%2fagent-toolkit
194194
```
195-
Solution: Ensure you're added to the @sirenapp organization and have publish permissions.
195+
Solution: Ensure you're added to the @trysiren organization and have publish permissions.
196196

197197
**2. Version Already Exists**
198198
```
199-
npm ERR! 403 Forbidden - PUT https://registry.npmjs.org/@sirenapp%2fagent-toolkit - You cannot publish over the previously published versions
199+
npm ERR! 403 Forbidden - PUT https://registry.npmjs.org/@trysiren%2fagent-toolkit - You cannot publish over the previously published versions
200200
```
201201
Solution: Bump the version number in package.json.
202202

@@ -218,11 +218,11 @@ Solution: Use `npm publish --otp=123456` with your 2FA code.
218218
If you need to configure the npm registry:
219219

220220
```bash
221-
# Set registry for @sirenapp scope
222-
npm config set @sirenapp:registry https://registry.npmjs.org/
221+
# Set registry for @trysiren scope
222+
npm config set @trysiren:registry https://registry.npmjs.org/
223223

224224
# Verify configuration
225-
npm config get @sirenapp:registry
225+
npm config get @trysiren:registry
226226
```
227227

228228
## 📊 Post-Publication
@@ -240,13 +240,13 @@ View package information:
240240

241241
```bash
242242
# Latest version info
243-
npm view @sirenapp/agent-toolkit
243+
npm view @trysiren/agent-toolkit
244244

245245
# All versions
246-
npm view @sirenapp/agent-toolkit versions --json
246+
npm view @trysiren/agent-toolkit versions --json
247247

248248
# Download stats
249-
npm view @sirenapp/agent-toolkit --json
249+
npm view @trysiren/agent-toolkit --json
250250
```
251251

252252
## 🆘 Support

typescript/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ The Siren Agent Toolkit enables popular AI agent frameworks including OpenAI's A
55
## 🚀 Installation
66

77
```bash
8-
npm install @sirenapp/agent-toolkit
8+
npm install @trysiren/agent-toolkit
99
```
1010
### Framework-Specific Examples
1111

typescript/examples/ai-sdk/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { openai } from '@ai-sdk/openai';
22
import { generateText } from 'ai';
3-
import { SirenAgentToolkit } from '@sirenapp/agent-toolkit/ai-sdk';
3+
import { SirenAgentToolkit } from '@trysiren/agent-toolkit/ai-sdk';
44
import 'dotenv/config';
55

66
const sirenToolkit = new SirenAgentToolkit({

typescript/examples/ai-sdk/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
},
1010
"dependencies": {
1111
"@ai-sdk/openai": "^1.3.22",
12-
"@sirenapp/agent-toolkit": "file:../../",
12+
"@trysiren/agent-toolkit": "^0.1.0",
1313
"dotenv": "^16.4.5",
1414
"ai": "^4.0.0"
1515
},

typescript/examples/langchain/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import { ChatOpenAI } from '@langchain/openai';
22
import { AgentExecutor, createStructuredChatAgent } from 'langchain/agents';
33
import { ChatPromptTemplate } from '@langchain/core/prompts';
44
import {pull} from 'langchain/hub';
5-
import { SirenAgentToolkit } from '@sirenapp/agent-toolkit/langchain';
5+
import { SirenAgentToolkit } from '@trysiren/agent-toolkit/langchain';
66
import 'dotenv/config';
77

88
// ChatOpenAI apiKey defaults to process.env['OPENAI_API_KEY']

0 commit comments

Comments
 (0)