Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Sign up for free
Menu
Search
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Pricing
Search
Sign in
Sign up for free
SlackからMCPを経由して社内業務アプリを動かせるようにした話
Search
Sponsored
·
Your Podcast. Everywhere. Effortlessly.
Share. Educate. Inspire. Entertain. You do you. We'll handle the rest.
→
ise208
November 16, 2025
Technology
110
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
SlackからMCPを経由して社内業務アプリを動かせるようにした話
JJUG CCC 2025 Fall LT
ise208
November 16, 2025
Other Decks in Technology
See All in Technology
日本語に強いオープンな大規模言語モデル「LLM-jp」
odashi
5
1.2k
AI コーディングと人間の認知スループット / CTO Night & Day 2026 Morning Session / AI Coding and Human Cognitive Throughput
prog893
5
1.3k
AIがコードを書く時代に、エンジニアは何で自分の価値を証明するのか / In an era where AI writes code how do engineers prove their value
carta_engineering
3
1.1k
Webの常識が通じないHTMLメールのダークモード
teamlab
PRO
0
140
10年後、Engineering 行為を剥奪されるとして、わたしたちは、どう、何を創ればいいだろうか。 / If Engineering Is Taken Away in 10 Years, How and What Should We Create?
bitkey
PRO
1
200
Claude の新機能を、 出た日に触って社内に届けるまで
rfdnxbro
1
190
Refining Active Record
shugo
0
170
「Docker Desktop不要の時代」は 来たのか?
ueponx
0
840
JAWS-UGグッズ職人仕事の流儀
kentapapa
0
120
AIにシークレットを見せない、WSL2で安全な開発環境
yazm
0
310
初海外で注意すべきこと12選!!!安全快適なre:invent生活にするために
yuuuuuuu168
1
180
サブエージェントと Claude Mods で作る独自 Advisor ツールの話
kenichiodo
2
170
Featured
See All Featured
Into the Great Unknown - MozCon
thekraken
41
2.8k
Gemini Prompt Engineering: Practical Techniques for Tangible AI Outcomes
mfonobong
2
590
Reality Check: Gamification 10 Years Later
codingconduct
0
2.3k
How to Talk to Developers About Accessibility
jct
2
580
Lightning talk: Run Django tests with GitHub Actions
sabderemane
0
300
A Guide to Academic Writing Using Generative AI - A Workshop
ks91
PRO
1
520
The Organizational Zoo: Understanding Human Behavior Agility Through Metaphoric Constructive Conversations (based on the works of Arthur Shelley, Ph.D)
kimpetersen
PRO
0
500
[SF Ruby Conf 2025] Rails X
palkan
3
1.5k
Optimizing for Happiness
mojombo
378
71k
It's Worth the Effort
3n
188
29k
No one is an island. Learnings from fostering a developers community.
thoeni
21
3.9k
How to train your dragon (web standard)
notwaldorf
96
6.9k
Transcript
SlackからMCPを経由して 社内業務アプリを動かせるようにした話 JJUG CCC 2025 Fall LT
じこしょうかい ・名前: いわせ ・年齢: 28 ・所属: 決済代行会社のアプリ開発者 ・JJUG: 参加2回目 LT
初 ・X: @ise_208
結論 Spring AIでMCPサーバーが簡単に作れた アプリから AIエージェント (Claude Code)を呼べた
なぜ ・SlackでClaude Codeの操作をしたい ・MCPで社内アプリの操作をしたい ・BotもMCPもJavaで作りたい
ぜんたい ・SlackからBotを操作するBotアプリを呼び出す ・BotアプリからClaude Codeを呼び出しMCPを確認する ・MCP(stdio形式)から社内アプリ叩く MCP Slack Botアプリ Slack 社内アプリ
Claude code
やったこと(Bot側) ・SlackのリクエストからJavaでshellを叩く return new ProcessBuilder( "\\path\\to\\bash.exe", "-c", claudePath +" "+
prompt); ・shでClaude Codeを呼ぶ→ 結果を一時ファイルに書き込む→ Javaに返す $CLAUDE_PATH -p --dangerously-skip-permissions "$PROMPT" --mcp-config "$MCP_CONFIG" < /dev/null > "$TEMP_STDOUT" 2> "$TEMP_STDERR" ・ -p: 非対話モード ・ --dangerously-skip-permissions: 権限チェックをスキップ(対話的な確認を防ぐ) ・ mcp-config: mcp-config.jsonのpathを明示的に指定する "mcpServers": { "java-mcp": { "type": "stdio", "command": "java", "args": [ "-jar", "C:\\path\\to\\java-mcp-app-1.0.0-SNAPSHOT.jar" ]}}
やったこと(MCP側) ・Spring AIのmcp-serverライブラリ使用 ・@ToolでToolの定義 ・設定ファイルにプロトコル記載 <dependency> <groupId>org.springframework.ai </groupId> <artifactId> spring-ai-starter-mcp-server
</artifactId> </dependency> @Tool(description = "ユーザー情報のサマリーを取得 | 引数: UserNumber | 例userSummary('12345678')" ) public String userSummary (String userNumber) { return companyApiService .callPost("/api/user/search" , Map.of("userNumber" , userNumber)); } } spring: ai: mcp: server: name: java-mcp protocol: STDIO # 標準入出力モード
さいごに ・Claude CodeのためAPI的な使い方が難しい Anthropic API が使えれば... ・権限/セキュリティが怖い ・Slack便利 ・MCP楽しい
ありがとうございました