Sync vault notes: April-November 2026 sessions, projects, and architecture
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
fe4fe656be
commit
994c7ae577
379 files changed
+55216
-107
No files matched your search
@@ -0,0 +1,116 @@
|
||||
# Hermes MCP — LinkedIn Setup Guide
|
||||
|
||||
**Date:** 2026-05-01
|
||||
**Project:** hermes-mcp
|
||||
**Status:** Deployed, pending credentials
|
||||
|
||||
---
|
||||
|
||||
## What was deployed
|
||||
|
||||
LinkedIn integration added to hermes-mcp with 4 MCP tools:
|
||||
|
||||
| Tool | Status |
|
||||
|------|--------|
|
||||
| `linkedin_get_profile` | ✅ Works with valid token |
|
||||
| `linkedin_create_post` | ✅ Works with valid token |
|
||||
| `linkedin_search_connections` | ⚠️ Requires LinkedIn Partnership Program |
|
||||
| `linkedin_send_message` | ⚠️ Requires LinkedIn Partnership Program |
|
||||
|
||||
---
|
||||
|
||||
## How to get a LinkedIn access token
|
||||
|
||||
### Step 1: Create a LinkedIn app
|
||||
|
||||
1. Go to [linkedin.com/developers](https://www.linkedin.com/developers/)
|
||||
2. Sign in with your LinkedIn account
|
||||
3. Click **Create app**
|
||||
4. Fill in:
|
||||
- **App name**: `SquareMCP` (or whatever you want)
|
||||
- **LinkedIn Page**: Your company page (or personal page)
|
||||
- **Privacy policy URL**: Can be `https://fetcherpay.com/privacy` for now
|
||||
- **App logo**: Optional
|
||||
|
||||
### Step 2: Add the products you need
|
||||
|
||||
In your app dashboard, go to **Products** and request:
|
||||
- **Sign In with LinkedIn** (gives `r_liteprofile`)
|
||||
- **Share on LinkedIn** (gives `w_member_social`)
|
||||
|
||||
LinkedIn will review these — usually approved instantly for personal/developer use.
|
||||
|
||||
### Step 3: Get your Client ID and Secret
|
||||
|
||||
In the app dashboard → **Auth** tab:
|
||||
- **Client ID** (looks like: `86abcdef123456789`)
|
||||
- **Client Secret** (click the eye icon to reveal)
|
||||
|
||||
### Step 4: Generate an access token
|
||||
|
||||
#### Option A: OAuth 2.0 test tool (easiest)
|
||||
|
||||
1. In the app dashboard → **Auth** → scroll to **OAuth 2.0 tools**
|
||||
2. Click **Generate token**
|
||||
3. Select scopes: `r_liteprofile` + `w_member_social`
|
||||
4. Click **Request Access Token**
|
||||
5. Copy the token (starts with `AQ...` or `AQUA...`)
|
||||
|
||||
#### Option B: Manual OAuth flow
|
||||
|
||||
If the test tool doesn't work, use the manual flow:
|
||||
|
||||
```bash
|
||||
# 1. Open this URL in your browser (replace CLIENT_ID):
|
||||
https://www.linkedin.com/oauth/v2/authorization?response_type=code&client_id=YOUR_CLIENT_ID&redirect_uri=https://fetcherpay.com/callback&scope=r_liteprofile%20w_member_social
|
||||
|
||||
# 2. After approving, you'll get a code in the URL
|
||||
# 3. Exchange it for a token:
|
||||
curl -X POST https://www.linkedin.com/oauth/v2/accessToken \
|
||||
-H "Content-Type: application/x-www-form-urlencoded" \
|
||||
-d "grant_type=authorization_code" \
|
||||
-d "code=YOUR_CODE" \
|
||||
-d "client_id=YOUR_CLIENT_ID" \
|
||||
-d "client_secret=YOUR_CLIENT_SECRET" \
|
||||
-d "redirect_uri=https://fetcherpay.com/callback"
|
||||
```
|
||||
|
||||
### Step 5: Deploy the token
|
||||
|
||||
```bash
|
||||
microk8s kubectl set env deployment/hermes-mcp -n fetcherpay \
|
||||
LINKEDIN_DEFAULT_ACCESS_TOKEN="your-token-here"
|
||||
```
|
||||
|
||||
---
|
||||
|
||||
## Files changed for LinkedIn
|
||||
|
||||
- `src/clients/linkedin.ts` — LinkedIn API client
|
||||
- `src/tools.ts` — 4 LinkedIn tool definitions + dispatch cases
|
||||
- `src/index.ts` — 4 REST passthrough endpoints
|
||||
- `src/manifest.ts` — LinkedIn tools + category
|
||||
- `.env.example` — `LINKEDIN_DEFAULT_*` env vars
|
||||
|
||||
---
|
||||
|
||||
## Environment variables
|
||||
|
||||
```env
|
||||
LINKEDIN_DEFAULT_ACCESS_TOKEN=your-linkedin-access-token
|
||||
LINKEDIN_DEFAULT_CLIENT_ID=your-linkedin-client-id
|
||||
LINKEDIN_DEFAULT_CLIENT_SECRET=your-linkedin-client-secret
|
||||
```
|
||||
|
||||
For additional accounts, duplicate with `LINKEDIN_{ACCOUNT}_*`.
|
||||
|
||||
---
|
||||
|
||||
## Next steps
|
||||
|
||||
- [ ] Create LinkedIn app
|
||||
- [ ] Request `Sign In with LinkedIn` and `Share on LinkedIn` products
|
||||
- [ ] Generate access token
|
||||
- [ ] Add `LINKEDIN_DEFAULT_ACCESS_TOKEN` to K8s deployment
|
||||
- [ ] Smoke-test `linkedin_get_profile` and `linkedin_create_post`
|
||||
- [ ] Apply for LinkedIn Partnership Program if connections/messaging needed
|
||||
Reference in new issue
Block a user