server

server is a skill for Claude Code from toss/apps-in-toss-harness. It costs 281 tokens per session (1,552 once invoked), scanned A, original, BSD-3-Clause.

A guide for writing or reviewing the server side of an Apps in Toss mini-app. A server is the part that stores data or talks to outside services, such as login and partner APIs.

In plain words
What is it for?
Use it to build or review user-specific storage, login-token exchanges, anonymous-identifier exchanges, and other partner API calls on platforms such as Cloudflare Workers, Node, or hosted backend services.
Why use it?
It helps prevent client code from directly trusting user identifiers or exposing secret keys. It also keeps authentication, cross-origin access, and hosting choices aligned with the existing project.

Skill for Claude Code

Written for Claude Code: argument-hint in frontmatter.

Part of the ait plugin — 11 skills, 4 commands shipped together

Good fit Use it to build or review user-specific storage, login-token exchanges, anonymous-identifier exchanges, and other partner API calls on platforms such as Cloudflare Workers, Node, or hosted backend services.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/toss/apps-in-toss-harness/server
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add toss/apps-in-toss-harness --skill server
Clone the repo
git clone --depth 1 https://github.com/toss/apps-in-toss-harness

Made for: Claude Code.

Or install ait, the plugin that ships this one along with the rest of its 11 skills, 4 commands.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for server

README.md
[![agentmods](https://agentmods.dev/badge/skills/toss/apps-in-toss-harness/server/github.svg)](https://agentmods.dev/skills/toss/apps-in-toss-harness/server)
Your own site
<a href="https://agentmods.dev/skills/toss/apps-in-toss-harness/server"><img src="https://agentmods.dev/badge/skills/toss/apps-in-toss-harness/server/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for server

Your own site · 80×15
<a href="https://agentmods.dev/skills/toss/apps-in-toss-harness/server"><img src="https://agentmods.dev/badge/skills/toss/apps-in-toss-harness/server.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 281 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,552 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00281 $0.01552
Opus 5.5 $0.00112 $0.00621
Sonnet 5.5 $0.00056 $0.00310
Haiku 4.5 $0.00028 $0.00155

Measured 6d ago against content hash 2cf1787b67ae, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

server scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 6d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

packages/agent-plugin/shared/skills/server/SKILL.md · 107 lines

How it starts

The opening of the file, as written. The whole thing — 107 lines — stays where its author put it; the contents beside it link to each section on GitHub.

server skill

목적

미니앱이 쓰는 서버 코드를 쓰거나 고칠 때 앱인토스 고유의 판단과 연결부를 맡는다. 사용자별 저장, 파트너 API 호출(토스 로그인 토큰 교환, 익명 식별키 교환 등)이 대상이다. 프레임워크 템플릿을 새로 깔지 않고, 사용자가 고른 호스팅과 기존 코드를 따른다. 사실(경로, 스키마, 허용 origin)은 docs MCP로 읽는 개발자센터 문서가 정본이고, 이 skill은 판단 기준과 점검 순서를 더한다.

실행 순서

0. 범위 확인

작업 디렉터리부터 읽는다(클라이언트 package.json의 web-framework 버전, 서버 디렉터리, wrangler.jsonc·wrangler.toml 같은 호스팅 설정). 서버가 아직 없고 사용자가 호스팅을 정하지 않았으면 무엇으로 할지 한 번 묻는다. 사용자가 이미 고른 호스팅을 다른 것으로 바꾸자고 먼저 제안하지 않는다.

1. 기준 읽기

../launch/references/server-runtime.md를 처음부터 끝까지 Read로 읽는다. 서버 코드를 한 줄이라도 쓰기 전에 읽는다. 사용자 식별, mTLS 인증서, Workers 경로, 응답 봉투, CORS, 로컬 검증 기준이 모두 거기 있다. 경로와 스키마는 그 문서가 가리키는 docs 페이지를 getPage로 읽어 맞춘다.

2. 사용자 식별 정하기

  • 개인정보가 필요 없는 사용자별 저장이면 익명 식별키 교환을 먼저 제안한다. 클라이언트 User.createAnonymousKeyAuthCode() → 서버의 교환 API → success.anonKey.
  • 사용자가 토스 로그인을 콕 집었으면 따르되, 콘솔에서 토스 로그인 등록과 약관 설정이 먼저 돼 있어야 한다고 알린다(등록 전에는 토큰 발급이 errorCode 4050으로 실패한다). 클라이언트 쪽만 요청받아도 이 선행 조건과, 받은 인가 코드를 서버가 토큰으로 바꿔야 한다는 점을 함께 말한다.
  • 클라이언트가 getAnonymousKey()로 얻은 값을 서버가 그대로 믿게 짜지 않는다. 사용자가 그렇게 해 달라고 해도 이유(그 값은 요청자를 증명하지 않는다)를 말하고 교환 방식으로 짠다.
  • 사용자가 Supabase·Firebase를 골랐으면 사용자별 데이터는 서버를 거치게 하고, 클라이언트 직결은 공용 데이터에만 쓴다. secret key는 서버에만 두고 supabase.auth 같은 자체 로그인은 붙이지 않는다. 자세한 경계는 server-runtime.md의 BaaS 절.

3. 코드 쓰기·고치기

server-runtime.md의 기준대로 쓴다. 최소한 다음을 지킨다.

  • 파트너 API 호출에는 mTLS 클라이언트 인증서를 싣는다. Workers는 mtls_certificates 바인딩과 env.<BINDING>.fetch.
  • 성공 판정은 HTTP 상태가 아니라 resultType이고, 데이터는 success 안에 있다.
  • CORS는 *가 아니라 앱의 SDK 버전에 맞는 정확한 origin만 허용한다.
  • 인증서·키·토큰 값은 코드, 커밋, 로그, 응답에 넣지 않는다. 경로와 바인딩 이름만 다룬다.
  • 로컬 검증은 가짜 mTLS fetch로 봉투 경우를 돌린다. 로그인 우회 플래그를 두지 않는다.

4. 보고

사용자가 직접 해야 할 일을 빠뜨리지 않는다: 콘솔에서 mTLS 인증서 발급, 호스팅 로그인(! npx wrangler login 등), 배포 후 클라이언트 서버 주소 갱신과 재빌드.

서버 작업 결과
  식별 방식: <익명 식별키 교환 | 토스 로그인>
  확인한 것: <로컬 테스트·봉투 경우>
  사용자가 할 일: <인증서 발급, 로그인, 배포 등>

다음 단계
  /ait:test-on-device   # 서버 주소로 다시 빌드한 번들을 폰에서 확인
                        #   말로: "만든 미니앱을 실제 토스 앱에서 돌려보고 싶어. 번들 올려서 폰에서 확인하게 해줘"
  /ait:launch           # 출시 전 점검
                        #   말로: "검수 넣기 전에 한번 봐줘"

문서가 필요하면 docs MCP(searchDocumentation/getPage)로 조회하세요.

Read the full file on GitHub · 107 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 6d ago First seen · 107 lines · 281 tokens per session scan A 2cf1787b67ae

Subscribe to this mod's changes

server is a skill published in the GitHub repository toss/apps-in-toss-harness (186 stars, last pushed 3d ago), licensed BSD-3-Clause. It adds 281 tokens to every session and 1,552 once invoked, about $0.0011 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-10-23.

Related

Other skills, from other repositories

mem0-oss-to-platform

Plan, then execute, a migration of a project from the mem0 open-source / self-hosted SDK (local Memory class) to the mem0 Platform / hosted SDK (MemoryClient). TRIGGER when: the developer wants to move, switch, or migrate mem0 off OSS/self-hosted to the hosted API, e.g. "migrate my mem0 setup to the platform", "switch…

mem0ai/mem0 · 217 tokens

agui-dotnet-protobuf

Use the protobuf wire transport (instead of the default Server-Sent Events) for an AG-UI connection with the AG-UI .NET SDK — a compact binary event stream negotiated via the Accept header. USE FOR: making an AGUIChatClient prefer protobuf by wiring an AGUIEventStreamHandler with ProtobufEventStreamFormatter (then…

ag-ui-protocol/ag-ui · 162 tokens

azure-mgmt-botservice-dotnet

Azure Resource Manager SDK for Bot Service in .NET. Management plane operations for creating and managing Azure Bot resources, channels (Teams, DirectLine, Slack), and connection settings. Triggers: "Bot Service", "BotResource", "Azure Bot", "DirectLine channel", "Teams channel", "bot management .NET", "create bot".

microsoft/skills · 78 tokens

fastapi-router-py

Create FastAPI routers with CRUD operations, authentication dependencies, and proper response models. Use when building REST API endpoints, creating new routes, implementing CRUD operations, or adding authenticated endpoints in FastAPI applications.

microsoft/skills · 46 tokens

dev-runtime

How the Node side of a dev stack runs without haven, and the backend host: pnpm dev (UI built once, backend reloading), pnpm dev:hmr (adds the Vite ui lane), tools/dev-runtime (api + worker in one Node process), backend reload on a file change, the debounce (quiet window + max wait), ports derived from PORT. Use when…

langwatch/langwatch · 172 tokens

api-design

Use when settling the contract of an API you expose, before implementation: resources/URLs, REST vs GraphQL, versioning, one RFC 9457 error envelope, pagination, idempotency — emitted as OpenAPI 3.1. NOT implementing the endpoints (that is fastapi/nestjs/go/nodejs), NOT auth hardening (that is secure-coding), NOT…

ericrisco/rsc-harness · 105 tokens