개발자
Welley로 만들기
Welley API로 클라이언트, 스크립트, 커뮤니티 도구, 연동 기능을 만들 수 있어요. 실시간 Swagger 문서에 사용할 수 있는 작업과 스키마가 나와 있어요.
앞으로 Welley를 오픈 소스로 공개할 계획이에요. 공개 일정과 라이선스는 아직 발표되지 않았어요.
MCPModel Context Protocol
AI 에이전트 연결하기
Welley에는 MCP 서버가 있어서 Claude, Codex, Cursor 같은 AI 에이전트가 내 Welley 계정으로 일할 수 있어요. 에이전트에 서버를 추가하고 Welley로 로그인해 주세요. 그러면 내 그룹과 피드에 관해 물어보거나, 게시하기, 답글 달기, 이벤트 계획을 에이전트에게 맡길 수 있어요. 에이전트는 나를 대신해 행동하기 때문에, 내가 할 수 있는 일만 할 수 있어요.
- 서버
https://welley.social/mcp- 전송 방식
Streamable HTTP- 로그인
- OAuth, 클라이언트 ID
welley-mcp, 클라이언트 시크릿 없음 - 유효 기간
- 7일, 그 뒤에는 다시 로그인해요
- 로그아웃했을 때
- 에이전트는 API를 검색하고 공개 게시물을 읽을 수는 있어요
내 에이전트
Claude, Codex, Cursor, Gemini 등
welley.social/mcp
overviewfindcall
Welley API
게시물, 그룹, 이벤트, 메시지, 서버 설정
| 도구 | 하는 일 |
|---|---|
overview() | API가 할 수 있는 일을 영역별로 알려 줘요. |
find(query) | “게시물에 답글 달기” 같은 쉬운 말로 알맞은 작업을 찾아요. |
call(operation_id, params, body, mode) | 작업 하나를 설명하거나 확인하거나 실행해요. mode: "execute"일 때만 실제 요청을 보내요. |
에이전트에 Welley 추가하기
Claude Code
claude mcp add --transport http --client-id welley-mcp welley https://welley.social/mcp
claude mcp login welley
- 브라우저가 열려요. Welley에 로그인하고 연결을 승인해 주세요.
- 브라우저가 없는 컴퓨터에서는 로그인 명령에
--no-browser를 붙이고, 출력된 링크를 다른 기기에서 열어 주세요. 그런 다음 브라우저가 마지막으로 이동한 주소를 붙여 넣어 주세요.
Claude 앱
- claude.ai나 Claude Desktop에서 맞춤 설정, 커넥터를 차례로 열고 맞춤 커넥터를 추가해 주세요.
- 이름은
Welley로 하고, URL에는https://welley.social/mcp를 입력해 주세요. - OAuth 클라이언트에서 직접 OAuth 클라이언트 사용을 골라 주세요. 클라이언트 ID에
welley-mcp를 입력하고, 클라이언트 시크릿은 비워 두세요. - 인증 항목에서 필요할 때 로그인을 선택해 주세요. 그런 다음 커넥터를 추가해 연결하고, Welley에서 연결을 승인해 주세요.
- Team이나 Enterprise 요금제에서는 소유자가 모두를 위해 커넥터를 한 번만 추가하면 돼요.
ChatGPT
- ChatGPT에서 URL
https://welley.social/mcp로 맞춤 MCP 서버를 추가해 주세요. - 클라이언트 ID
welley-mcp로 OAuth를 설정하고, 클라이언트 시크릿은 비워 두세요.
Codex
[mcp_servers.welley]
url = "https://welley.social/mcp"
[mcp_servers.welley.oauth]
client_id = "welley-mcp"
codex mcp login welley
Cursor
{
"mcpServers": {
"welley": {
"url": "https://welley.social/mcp",
"auth": {
"CLIENT_ID": "welley-mcp",
"scopes": [
"welley:api"
]
}
}
}
}
VS Code
{
"servers": {
"welley": {
"type": "http",
"url": "https://welley.social/mcp",
"oauth": {
"clientId": "welley-mcp"
}
}
}
}
- VS Code는 처음 연결할 때 브라우저에서 Welley 로그인 창을 열어요.
Gemini CLI
{
"mcpServers": {
"welley": {
"url": "https://welley.social/mcp",
"type": "http",
"oauth": {
"enabled": true,
"clientId": "welley-mcp",
"scopes": [
"welley:api"
]
}
}
}
}
- 그런 다음 Gemini CLI에서
/mcp auth welley를 입력해 주세요.
opencode
opencode 2가 필요해요. 이전 버전에서는 Welley에 로그인할 수 없어요.
{
"$schema": "https://opencode.ai/config.json",
"mcp": {
"servers": {
"welley": {
"type": "remote",
"url": "https://welley.social/mcp",
"oauth": {
"client_id": "welley-mcp"
}
}
}
}
}
opencode mcp auth welley
모든 에이전트
셸과 Python 3가 있는 에이전트는 저희 도우미 스크립트로 로그인할 수 있어요. 같은 방식으로 로그인하고, 로그인 정보는 내 컴퓨터에 보관해요.
curl -fsSLO https://welley.social/mcp/connect/welley_connect.py
python3 welley_connect.py start https://welley.social/mcp
python3 welley_connect.py finish https://welley.social/mcp --code '<code>'
python3 welley_connect.py header https://welley.social/mcp
start를 실행하면 링크가 나와요. 링크를 열어 Welley에 로그인하고 연결을 승인해 주세요.- 페이지에 코드가 나와요. 그 코드를
finish에 입력해 주세요. header는 에이전트가 요청마다 보내는 HTTP 헤더를 출력해요. 7일이 지나면{}를 출력하고, 그때start를 다시 실행하면 돼요.- 스크립트나 봇에는 Welley 설정에서 개인 액세스 토큰을 만들어
Authorization: Bearer <token>형태로 보내는 방법도 있어요.
에이전트가 일하는 모습 보기
Claude Code에서 실제로 진행한 세션이에요. Maya는 동네 텃밭 커뮤니티 그룹인 Riverside Garden의 멤버예요. Maya가 Welley를 연결하고 놓친 소식을 물어본 다음, 에이전트에게 질문에 대신 답해 달라고 부탁해요. 이 그룹은 새 게시물이 올라가기 전에 검토하기 때문에, Maya의 답글은 모더레이터의 검토를 기다려요.
~/garden $ claude mcp add --transport http --client-id welley-mcp welley https://welley.social/mcp
Added HTTP MCP server welley with URL: https://welley.social/mcp to local config
~/garden $ claude mcp login welley --no-browser
Starting authentication for "welley"…
Visit this URL to authorize:
https://welley.social/oauth/authorize?response_type=code&client_id=welley-mcp&code_challenge=…
Waiting for authorization… (^C to cancel)
Or paste the redirect URL here:
# Maya opens the link, signs in to Welley and clicks Allow.
~/garden $ claude
> What's new in Riverside Garden lately? Is there a question nobody has answered yet?
⏺ welley - find (MCP)(query: "community feed recent posts and unanswered questions")
⎿ {"status":"task_not_finished_yet","candidates":[{"operationId":"get_api_v1_pos…
⏺ Riverside Garden is likely a group. Let me try the group feed with intent to resolve the id.
⏺ welley - call (MCP)(operation_id: "get_api_v1_groups_groupid_feed", mode: "execute")
⎿ {"ok":false,"operationId":"get_api_v1_groups_groupid_feed","error":{"type":"va…
⏺ welley - call (MCP)(operation_id: "get_api_v1_groups_search", params: {"query": "Riverside Garden"}, mode: "execute")
⎿ {"ok":false,"operationId":"get_api_v1_groups_search","error":{"type":"validati…
⏺ welley - call (MCP)(operation_id: "get_api_v1_groups_search", params: {"substring": "Riverside Garden"}, mode: "execute")
⎿ {"status":200,"body":{"groups":[{"groupId":"gr_01m4y6errre80b2101wdbn7kfm","gr…
⏺ welley - call (MCP)(operation_id: "get_api_v1_groups_groupid_feed", params: {"groupId": "gr_01m4y6errre80b2101wdbn7kfm", "limit": 30, "includeComments": true, "includePublisher": true}, mode: "execute")
⎿ {"status":200,"body":[{"id":"pt_01m67821z8e0qv7eqtf4jb44n3","uri":"https://wel…
⏺ The group has 22 posts but the feed returned only 7, so some channels may be missing. I'll look up the group's channels.
⏺ welley - find (MCP)(query: "list channels of a group")
⎿ {"status":"task_not_finished_yet","candidates":[{"operationId":"get_api_v1_gro…
⏺ welley - call (MCP)(operation_id: "get_api_v1_groups_groupid_channels", params: {"groupId": "gr_01m4y6errre80b2101wdbn7kfm"}, mode: "execute")
⎿ {"status":200,"body":[{"id":"gc_01m4y6nfrheyeszr37r94fh9r7","username":"rivers…
⏺ Questions most likely live in the "Growing advice" forum channel, which isn't in the main feed. Let me fetch its posts.
⏺ welley - call (MCP)(operation_id: "get_api_v1_posts", mode: "describe")
⎿ {"operationId":"get_api_v1_posts","method":"GET","path":"/api/v1/posts","title…
⏺ Pulling the forum posts (all forum categories) plus the volunteering channel in parallel.
⏺ welley - call (MCP)(operation_id: "get_api_v1_posts", params: {"groupId": "gr_01m4y6errre80b2101wdbn7kfm", "channelAppMeta": "welley.group.forum", "limit": 30, "htmlContent": "false"}, mode: "execute")
⎿ {"status":200,"body":[{"id":"pt_01m4y6wn9sejw9pyb4kkpf4fet","uri":"https://wel…
⏺ welley - call (MCP)(operation_id: "get_api_v1_posts", params: {"ownerId": "gc_01m4y6ndqte0naxpd23nxj2zpd", "limit": 20, "htmlContent": "false"}, mode: "execute")
⎿ {"status":200,"body":[{"id":"pt_01m6781k5weasa5819xvhzcxwy","uri":"https://wel…
⏺ Riverside Garden has been quiet since Oct 30. Nobody has posted in the last six days. And yes, there's one question with no replies.
Recent activity (Oct 30)
- Water shut-off on Nov 15 (Alex Morgan, Announcements): take your hoses home or hang them in the shed before then. That's 10 days away.
- Garlic for bed 4 is in (Maya Chen): three kinds from the seed library. It gets planted Saturday, after the compost work.
- First harvest from bed 12 (Noah Bennett): two pounds of cherry tomatoes. It got 4 likes and 2 comments.
- Watering shifts (Elena Ruiz, Volunteering): Elena will do Tuesdays until the water goes off and asked if anyone needs Thursday covered. One person has replied.
Older posts still around (Oct 14)
- Saturday workday plan (Garden projects): 9:00 at the main gate. Turn the compost, mulch the paths, plant the garlic. It has 2 replies.
- Second compost bay (Sam Rivera): needs about 8 pallets, wire and two people for an afternoon. It has 1 reply.
- Aphids on the kale in bed 7 (Maya Chen, Growing advice): asks about companion planting. It has 1 reply.
- Spring seed exchange: March 14 in the community room.
The question nobody has answered
"When should we sow the fava beans?", posted by Sam Rivera in Growing advice on Oct 14. It has no replies, one 👍 and one view. Sam says the October sowing came through winter well, but the March sowing gave a bigger harvest, and asks if anyone has notes from earlier seasons. If anyone is going to sow this fall, now is the time, so a reply would help soon.
I only read the public channels. I didn't open Staff discussion or Chess, which are private.
> Answer Sam for me: we sowed half in late October and half in March last year. The October ones flowered first, but the March ones gave more pods, so I'd do both again.
⏺ welley - find (MCP)(query: "reply to a post (create comment)")
⎿ {"status":"task_not_finished_yet","candidates":[{"operationId":"post_api_v1_po…
⏺ welley - call (MCP)(operation_id: "post_api_v1_posts_postid_comments", params: {"postId": "pt_01m4y6wgw9eve9me2bzs0dap01"}, body_json: {"text": "We sowed half in late October and half in March last year. The October ones flowered first, but the March ones gave more pods, so I'd do both again.", "privacy": "PUBLIC", "kind": "Note"}, mode: "execute")
⎿ {"status":202,"body":{"id":"pp_01m6pe5xzde5yttak8e857qfqs","groupId":"gr_01m4y…
⏺ The server accepted the reply but marked it as pending. I'll check whether it has gone live.
⏺ welley - find (MCP)(query: "get comments of a post", limit: 3)
⎿ {"status":"task_not_finished_yet","candidates":[{"operationId":"get_api_v1_pos…
⏺ welley - call (MCP)(operation_id: "get_api_v1_posts_postid_comments", params: {"postId": "pt_01m4y6wgw9eve9me2bzs0dap01", "htmlContent": "false"}, mode: "execute")
⎿ {"status":200,"body":[],"request":{"operationId":"get_api_v1_posts_postid_comm…
⏺ welley - call (MCP)(operation_id: "get_api_v1_posts_postid_comments", params: {"postId": "pt_01m4y6wgw9eve9me2bzs0dap01", "htmlContent": "false"}, mode: "execute")
⎿ {"status":200,"body":[],"request":{"operationId":"get_api_v1_posts_postid_comm…
⏺ I sent your reply to Sam's fava bean question, but it isn't showing in the thread yet.
The reply is under your account (Maya Chen) in Growing advice:
> We sowed half in late October and half in March last year. The October ones flowered first, but the March ones gave more pods, so I'd do both again.
Welley accepted it and marked it pending (pending post id pp_01m6pe5xzde5yttak8e857qfqs). I checked the thread twice right after, and both times it still had no comments. It may still be processing, or the group may have to approve it first. If it doesn't appear within a few minutes, look at the post in Growing advice. I can check it again for you if you like.
>
공개 요청으로 시작하기
API는 HTTPS로 동작하고, 대부분의 작업은 JSON을 받고 JSON으로 응답해요. 공개 읽기 작업은 계정 없이도 쓸 수 있어요.
서버 정보 읽기
이 요청은 서버의 공개 메타데이터를 돌려줘요. 서버 데이터는 바꾸지 않아요.
curl --fail --silent --show-error "https://welley.social/api/v1/instance"
Swagger에서 작업 찾아보기
클라이언트를 작성하기 전에 매개변수, 요청 스키마, 응답 스키마, 권한을 확인해 보세요.
연동 인증하기
보호된 작업에는 Authorization 헤더에 유효한 토큰이 필요해요. 공식 CLI는 토큰을 Bearer 접두사와 함께 보내요.
내 서버 유효 권한 읽기
WELLEY_TOKEN을 본인의 유효한 토큰으로 설정하세요. 평소 비밀 값을 다루는 방식대로 하면 돼요. 이 예시는 데이터를 읽기만 해요.
curl --fail --silent --show-error \ -H "Authorization: Bearer $WELLEY_TOKEN" \ "https://welley.social/api/v1/rbac/permissions"
- 연동을 만들 때는 계정 설정에서 개인 액세스 토큰을 만드세요.
- 이름과 만료 기간을 정해 주세요. API는 저장된 만료 기간이 없는 토큰을 위해 expiresInDays=0도 받아요.
- 토큰이 사용할 수 있는 전역 권한, 그룹 권한, 그룹을 제한할 수 있어요.
- 허용 목록을 비워 두면 해당 항목은 현재 내 접근 권한으로만 제한돼요. 토큰은 내가 가지고 있지 않은 권한을 줄 수 없어요.
- 토큰 비밀 값은 한 번만 볼 수 있어요. 생성 결과를 닫기 전에 저장해 두세요.
- 토큰을 관리하려면 계정 로그인 세션이 필요해요. 개인 액세스 토큰으로는 토큰을 만들거나, 목록을 보거나, 복사하거나, 폐기할 수 없어요.
권한과 범위 확인하기
인증은 API에 누가 호출하는지 알려줘요. 호출한 쪽이 어떤 작업을 쓸 수 있는지는 역할 권한이 정해요.
- 보호된 요청에 유효한 인증이 없으면 API는 401을 반환해요.
- 호출한 쪽에 필요한 권한이 없으면 API는 403을 반환해요.
- 권한 이름은 Resource.Action 형식이에요. 예를 들면 GroupSettings.Manage가 있어요.
- 범위가 있는 웹훅 및 권한 작업에서는 scope를 생략하면 서버 범위가 쓰여요. 그룹 범위를 쓰려면 그룹 TypeId를 전달하세요.
- 각 작업의 설명을 읽어 보세요. 일부 엔드포인트는 계정 토큰 대신 HTTP 서명이나 다른 프로토콜을 써요.
API 영역 고르기
레퍼런스는 소셜 기능, 연동, 서버 관리를 다뤄요. 여기 나온 예시는 API의 일부일 뿐이에요.
계정과 프로필
프로필을 읽고, 계정의 아이덴티티를 관리하고, 계정 내보내기나 이전 작업을 쓸 수 있어요.
| 메서드 | 경로 | 작업 | 접근 |
|---|---|---|---|
| GET | /api/v1/users | 사용자 이름으로 로컬 또는 원격 프로필을 읽어요. | 공개 또는 선택적 토큰 |
| POST | /api/v1/users | 현재 계정에 프로필을 하나 더 추가해요. 서버의 한도까지 추가할 수 있어요. | 토큰 필요 |
게시물과 피드
피드를 읽고 게시물을 만들 수 있어요. 다른 작업으로 답글, 투표, 반응, 임시 저장, 저장한 게시물을 다뤄요.
| 메서드 | 경로 | 작업 | 접근 |
|---|---|---|---|
| GET | /api/v1/posts | 게스트로는 공개 게시물을 읽고, 인증하면 맞춤 피드를 읽을 수 있어요. | 공개 또는 선택적 토큰 |
| POST | /api/v1/posts | 내용과 공개 범위를 정해 게시물을 만들어요. | 토큰 필요 |
그룹과 이벤트
그룹, 멤버십, 채널, 모더레이션, 이벤트로 커뮤니티 도구를 만들 수 있어요.
| 메서드 | 경로 | 작업 | 접근 |
|---|---|---|---|
| POST | /api/v1/groups | 인증된 사용자의 권한으로 그룹을 만들어요. | 토큰 필요 |
| GET | /api/v1/events | 공개 이벤트나 인증된 사용자가 볼 수 있는 이벤트의 목록을 가져와요. | 공개 또는 선택적 토큰 |
| POST | /api/v1/events | 이벤트를 만들어요. 그룹 이벤트에는 GroupEvents.Create가 필요해요. | 토큰 필요 |
대화와 알림
대화방과 메시지를 읽어요. 알림 모음을 읽고 읽음 여부를 업데이트해요.
| 메서드 | 경로 | 작업 | 접근 |
|---|---|---|---|
| GET | /api/v1/rooms | 현재 사용자의 대화방 목록을 가져와요. 목록을 이어서 가져오려면 응답 본문의 nextCursor를 사용하세요. | 토큰 필요 |
| GET | /api/v1/user-notifications | 현재 사용자의 알림 목록을 가져와요. | 토큰 필요 |
미디어, 검색, 번역
미디어를 업로드하고, 볼 수 있는 콘텐츠를 검색하고, 텍스트 번역을 요청할 수 있어요.
| 메서드 | 경로 | 작업 | 접근 |
|---|---|---|---|
| POST | /api/v1/uploads | 업로드 항목을 만든 다음, 응답으로 받은 업로드 URL에 파일 내용을 PUT으로 보내세요. | 토큰 필요 |
| GET | /api/v1/search | 호출한 쪽이 볼 수 있는 콘텐츠를 검색하거나, 지원되는 URL을 확인해요. | 공개 또는 선택적 토큰 |
| POST | /api/v1/translate/text | 텍스트를 요청한 언어로 번역해요. | 토큰 필요 |
웹훅과 AI 에이전트
웹훅으로 외부 서비스를 연결해요. 에이전트 API로 AI 에이전트를 설정해요.
| 메서드 | 경로 | 작업 | 접근 |
|---|---|---|---|
| GET | /api/v1/webhooks/events | 지원되는 웹훅 이벤트 유형의 목록을 가져와요. | 토큰 필요 |
| POST | /api/v1/webhooks | 권한이 있는 서버 또는 그룹 범위에 웹훅을 만들어요. HTTP 서명 비밀 값은 한 번만 표시돼요. | 토큰 필요 |
| GET | /api/v1/ai-agents | 호출한 쪽이 볼 수 있는 AI 에이전트의 목록을 가져와요. | 토큰 필요 |
서버와 그룹 관리
API로 설정, 신고, 모더레이션, 연합 제어, 할당량, 배포 관리를 할 수 있어요.
| 메서드 | 경로 | 작업 | 접근 |
|---|---|---|---|
| GET | /api/v1/rbac/permissions | 현재 사용자와 범위의 유효 권한을 읽어요. | 토큰 필요 |
| GET | /api/v1/settings | 계정에 필요한 권한이 있으면 플랫폼 설정을 읽어요. | 공개 또는 선택적 토큰 |
응답과 미디어 다루기
각 작업에 맞는 페이지 나누기와 업로드 흐름을 따르세요.
- 커서 방식 피드에서는 서버가 반환하는 페이지 나누기 링크를 따라가세요. ID를 추측해서 커서를 만들지 마세요.
- 대화방은 응답 본문에 알아볼 수 없는 형태의 nextCursor를 반환해요. 목록을 이어서 가져올 때는 같은 필터를 유지하세요.
- 미디어를 업로드하려면 업로드 항목을 만든 다음, 반환된 URL로 내용을 보내세요.
- 각 작업의 오류 응답과 한도를 확인하세요. 문서에 나온 작업이라도 역할, 서버 설정, 외부 제공자가 필요할 수 있어요.