Repository navigation
feat(pi): package scaffold and MCP registration (PF-3852) #40
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,21 @@ | ||
| MIT License | ||
|
|
||
| Copyright (c) 2026 TinyFish | ||
|
|
||
| Permission is hereby granted, free of charge, to any person obtaining a copy | ||
| of this software and associated documentation files (the "Software"), to deal | ||
| in the Software without restriction, including without limitation the rights | ||
| to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | ||
| copies of the Software, and to permit persons to whom the Software is | ||
| furnished to do so, subject to the following conditions: | ||
|
|
||
| The above copyright notice and this permission notice shall be included in all | ||
| copies or substantial portions of the Software. | ||
|
|
||
| THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
| IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
| FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||
| AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | ||
| LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | ||
| OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE | ||
| SOFTWARE. |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,24 @@ | ||
| { | ||
| "mcpServers": { | ||
| "tinyfish": { | ||
| "url": "https://agent.tinyfish.ai/mcp", | ||
| "headers": { | ||
| "X-API-Key": "${TINYFISH_API_KEY}", | ||
| "X-TF-Client-Name": "pi", | ||
| "X-TF-Client-Version": "0.1.0" | ||
| }, | ||
| "directTools": [ | ||
| "search", | ||
| "fetch_content", | ||
| "run_web_automation", | ||
| "run_web_automation_async", | ||
| "get_run", | ||
| "cancel_run", | ||
| "batch_status", | ||
| "batch_cancel", | ||
| "create_browser_session", | ||
| "close_browser_session" | ||
| ] | ||
| } | ||
| } | ||
| } | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,43 @@ | ||
| { | ||
| "name": "@tiny-fish/pi", | ||
| "version": "0.1.0", | ||
| "description": "TinyFish for the Pi coding agent — free web search and page reading, plus goal-driven browser automation on live and logged-in sites. Skills work standalone; the bundled MCP server activates if you also install pi-mcp-adapter.", | ||
| "license": "MIT", | ||
| "homepage": "https://docs.tinyfish.ai", | ||
| "repository": { | ||
| "type": "git", | ||
| "url": "git+https://github.com/tinyfish-io/tinyfish-web-agent-integrations.git", | ||
| "directory": "pi" | ||
| }, | ||
| "author": { | ||
| "name": "TinyFish", | ||
| "email": "support@tinyfish.io", | ||
| "url": "https://tinyfish.ai" | ||
| }, | ||
| "keywords": [ | ||
| "pi-package", | ||
| "tinyfish", | ||
| "web-agent", | ||
| "browser-automation", | ||
| "web-scraping", | ||
| "data-extraction", | ||
| "search", | ||
| "fetch" | ||
| ], | ||
| "files": [ | ||
| "skills", | ||
| "rules", | ||
| "mcp.json", | ||
| "README.md", | ||
| "LICENSE" | ||
| ], | ||
| "publishConfig": { | ||
| "access": "public" | ||
| }, | ||
| "pi": { | ||
| "mcp": "./mcp.json", | ||
| "skills": [ | ||
| "./skills" | ||
| ] | ||
|
Comment on lines
+39
to
+41
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🎯 Functional Correctness | 🟡 Minor | ⚡ Quick win 🔎 Supported by static analysis🏁 Script executed: #!/bin/bash
set -euo pipefail
printf '%s\n' 'Declared package skill paths:'
rg -n -C 2 '"skills"|"\./skills"' pi/package.json
printf '%s\n' 'Bundled skill files:'
fd -t f '^SKILL\.md$' pi/skills 2>/dev/null || trueRepository: tinyfish-io/tinyfish-web-agent-integrations Length of output: 407 🏁 Script executed: #!/bin/bash
set -euo pipefail
printf '%s\n' 'pi/package.json:'
cat -n pi/package.json | sed -n '20,48p'
printf '%s\n' 'Files under pi/skills:'
if [ -d pi/skills ]; then
find pi/skills -maxdepth 3 -type f -print | sort
else
printf '%s\n' 'pi/skills does not exist'
fi
printf '%s\n' 'Tracked pi files relevant to skills:'
git ls-files pi | rg '(^|/)(skills|SKILL\.md)(/|$)' || true
printf '%s\n' 'Skill references in pi metadata and documentation:'
rg -n -i -C 2 'skills|SKILL\.md' pi/package.json pi/README* README* 2>/dev/null || trueRepository: tinyfish-io/tinyfish-web-agent-integrations Length of output: 2185 🤖 get_repo_knowledge executed:
Length of output: 26987 Remove the unavailable skill declaration.
🤖 Prompt for AI Agents |
||
| } | ||
| } | ||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🗄️ Data Integrity & Integration | 🟠 Major | ⚡ Quick win
Reduce
directToolsto the intended eight tools.directToolscontains 10 entries. The PR contract specifies eight explicitly named direct tools. Lines 19-20 exposecreate_browser_sessionandclose_browser_sessionas additional direct tools.Remove these entries, or update the declared integration contract and its validation coverage if 10 direct tools are intended.
🤖 Prompt for AI Agents