2026/2/25 cosense-mcp-server導入
hr.icon
code:log
metadata: {
args: [ '-s', 'dlx', '@yosider/cosense-mcp-server', length: 3 ], paths: [
'/usr/local/bin',
'/opt/homebrew/bin',
'/usr/bin',
'/bin',
'/usr/sbin',
'/sbin',
]
}
} %o
2026-02-24T17:04:49.964Z cosense-mcp-server info Server started and connected successfully { metadata: undefined } Failed to spawn process: No such file or directory
2026-02-24T17:04:49.968Z cosense-mcp-server info Server transport closed unexpectedly, this is likely due to the process exiting early. If you are developing this MCP server you can add output to stderr (i.e. console.error('...') in JavaScript, print('...', file=sys.stderr) in python) and it will appear in this log. { metadata: undefined } pnpmへのパスが通ってない
nixでいれてるからかも
code:.json
{
"env": {
"PATH": "/Users/taiseiue/.nix-profile/bin:/nix/var/nix/profiles/default/bin:/usr/local/bin:/System/Cryptexes/App/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/local/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/appleinternal/bin:/opt/pmk/env/global/bin:/opt/X11/bin:/Library/Apple/usr/bin:/Applications/Wireshark.app/Contents/MacOS:/opt/homebrew/bin"
},
とりあえずPATHぜんぶいれた
Claude再起動
やっぱりだめかも
一旦フルパスで指定してみる
code:.json
"mcpServers": {
"cosense-mcp-server": {
"command": "/Users/taiseiue/.nix-profile/bin/pnpm",
"args": [
"-s",
"dlx",
"@yosider/cosense-mcp-server"
],
"env": {
"COSENSE_PROJECT_NAME": "taiseiue",
"COSENSE_SID": "SECRET"
}
}
},
いけた
無茶ぶりしてみる
https://gyazo.com/fc08c5cb244124156ff3a36df6804286
https://gyazo.com/9cacc401de293977dae3115bc89e91fa
https://gyazo.com/e07d596782d1e28f35b9d11da5ab850a
なんかここでスタックしてる?
完全にとまったのでもういっかいやってみる
https://gyazo.com/07627dca981d245799e74de40d0d0fbd
https://gyazo.com/932cfd07b9690cd49206ca7a1d294f3e
うおおお
Cosence記法をわからせる
https://gyazo.com/da765b49ff270fe934efedd693cb6ed1