.agent/skills/mcp-client-patterns/SKILL.md
Connecting to MCP servers, tool invocation, session management. Use when the orchestrator or any agent needs to call tools on an MCP server (bridge, cowork-mcp).
npx skillsauth add abzhaw/juliaz_agents mcp-client-patternsInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
async function callMcpTool(
serverUrl: string,
toolName: string,
args: Record<string, unknown>
): Promise<string> {
const response = await fetch(`${serverUrl}/mcp`, {
method: 'POST',
headers: { 'Content-Type': 'application/json' },
body: JSON.stringify({
jsonrpc: '2.0',
id: Date.now(),
method: 'tools/call',
params: { name: toolName, arguments: args }
}),
signal: AbortSignal.timeout(30_000), // 30s timeout
});
const data = await response.json();
if (data.error) throw new Error(data.error.message);
return data.result?.content?.[0]?.text ?? '';
}
// Usage
const summary = await callMcpTool(
'http://localhost:3003',
'claude_summarize',
{ content: longText, format: 'bullets' }
);
const response = await fetch(`${serverUrl}/mcp`, {
method: 'POST',
headers: { 'Content-Type': 'application/json' },
body: JSON.stringify({ jsonrpc: '2.0', id: 1, method: 'tools/list', params: {} })
});
const { result } = await response.json();
console.log(result.tools.map(t => t.name));
| Caller | Server | Tool |
|--------|--------|------|
| Orchestrator | bridge:3001 | telegram_get_pending, telegram_send_reply |
| Orchestrator | cowork-mcp:3003 | claude_task, claude_summarize |
| Frontend | bridge:3001 | get_messages, get_system_status |
development
Fortschrittsverfolgung der Masterarbeit. Wortanzahl pro Kapitel, Fertigstellungsgrad, fehlende Elemente, Deadlines. Haelt den Ueberblick.
development
Kapitelarchitektur und Gliederung der Masterarbeit. Verwaltet die Struktur, schlaegt vor wo Inhalte hingehoeren, validiert den logischen Fluss zwischen Kapiteln.
tools
Konvertiert Protokolleinträge und Session-Logs in thesis-fähiges deutsches Narrativ. Transformiert Entwicklungsdokumentation in akademische Prosa.
research
Sucht und analysiert akademische Literatur. Findet relevante Papers, erstellt strukturierte Zusammenfassungen. Zitiert NIEMALS — schlaegt nur vor.